/* styles.css — статическая замена Tailwind Play CDN.
   Содержит только те утилиты, что реально используются на manual-hub.ru */

*,::before,::after{box-sizing:border-box;border:0 solid #e5e7eb}
html{-webkit-text-size-adjust:100%;line-height:1.5;font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif}
body{margin:0;line-height:inherit}
h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}
ul,ol{margin:0;padding:0}
a{color:inherit;text-decoration:inherit}
button{font-family:inherit;font-size:100%;margin:0;padding:0;background:none;cursor:pointer}
input{font-family:inherit;font-size:100%;margin:0;padding:0;line-height:inherit;color:inherit}
img,svg{display:block;vertical-align:middle;max-width:100%;height:auto}
table{border-collapse:collapse;text-indent:0;border-color:inherit}
strong{font-weight:bolder}

/* --- display / layout --- */
.block{display:block}
.inline-flex{display:inline-flex}
.flex{display:flex}
.grid{display:grid}
.hidden{display:none}
.flex-col{flex-direction:column}
.flex-wrap{flex-wrap:wrap}
.flex-1{flex:1 1 0%}
.items-center{align-items:center}
.justify-between{justify-content:space-between}
.justify-center{justify-content:center}
.overflow-hidden{overflow:hidden}
.fixed{position:fixed}
.sticky{position:sticky}
.top-0{top:0}
.right-4{right:1rem}
.bottom-4{bottom:1rem}
.bottom-20{bottom:5rem}
.z-10{z-index:10}
.z-20{z-index:20}

/* --- sizing --- */
.w-full{width:100%}
.w-5{width:1.25rem}
.w-11{width:2.75rem}
.h-5{height:1.25rem}
.h-11{height:2.75rem}
.min-h-screen{min-height:100vh}
.max-w-none{max-width:none}
.max-w-4xl{max-width:56rem}
.max-w-5xl{max-width:64rem}
.mx-auto{margin-left:auto;margin-right:auto}

/* --- spacing --- */
.gap-2{gap:.5rem}
.gap-3{gap:.75rem}
.gap-4{gap:1rem}
.gap-x-4{column-gap:1rem}
.gap-y-1{row-gap:.25rem}
.space-y-2>*+*{margin-top:.5rem}
.space-y-6>*+*{margin-top:1.5rem}
.p-5{padding:1.25rem}
.p-6{padding:1.5rem}
.px-2{padding-left:.5rem;padding-right:.5rem}
.px-3{padding-left:.75rem;padding-right:.75rem}
.px-4{padding-left:1rem;padding-right:1rem}
.px-6{padding-left:1.5rem;padding-right:1.5rem}
.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}
.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}
.py-2{padding-top:.5rem;padding-bottom:.5rem}
.py-3{padding-top:.75rem;padding-bottom:.75rem}
.py-4{padding-top:1rem;padding-bottom:1rem}
.py-6{padding-top:1.5rem;padding-bottom:1.5rem}
.py-8{padding-top:2rem;padding-bottom:2rem}
.ml-2{margin-left:.5rem}
.mb-1{margin-bottom:.25rem}
.mb-2{margin-bottom:.5rem}
.mb-3{margin-bottom:.75rem}
.mb-4{margin-bottom:1rem}
.mb-6{margin-bottom:1.5rem}
.mb-8{margin-bottom:2rem}
.mb-10{margin-bottom:2.5rem}
.mr-4{margin-right:1rem}
.mt-10{margin-top:2.5rem}
.mt-12{margin-top:3rem}
.my-6{margin-top:1.5rem;margin-bottom:1.5rem}

/* --- typography --- */
.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif}
.text-xs{font-size:.75rem;line-height:1rem}
.text-sm{font-size:.875rem;line-height:1.25rem}
.text-base{font-size:1rem;line-height:1.5rem}
.text-lg{font-size:1.125rem;line-height:1.75rem}
.text-xl{font-size:1.25rem;line-height:1.75rem}
.text-2xl{font-size:1.5rem;line-height:2rem}
.text-3xl{font-size:1.875rem;line-height:2.25rem}
.font-medium{font-weight:500}
.font-semibold{font-weight:600}
.font-bold{font-weight:700}
.font-extrabold{font-weight:800}
.italic{font-style:italic}
.capitalize{text-transform:capitalize}
.text-left{text-align:left}
.text-center{text-align:center}
.leading-normal{line-height:1.5}
.tracking-normal{letter-spacing:0}
.tracking-tight{letter-spacing:-.025em}
.whitespace-nowrap{white-space:nowrap}
.list-none{list-style-type:none}

/* --- colors --- */
.text-white{color:#fff}
.text-gray-400{color:#9ca3af}
.text-gray-500{color:#6b7280}
.text-gray-600{color:#4b5563}
.text-gray-700{color:#374151}
.text-gray-800{color:#1f2937}
.text-gray-900{color:#111827}
.text-blue-600{color:#2563eb}
.bg-white{background-color:#fff}
.bg-gray-50{background-color:#f9fafb}
.bg-gray-100{background-color:#f3f4f6}
.bg-blue-50{background-color:#eff6ff}
.bg-blue-600{background-color:#2563eb}

/* --- borders --- */
.border{border-width:1px}
.border-b{border-bottom-width:1px}
.border-t{border-top-width:1px}
.border-gray-100{border-color:#f3f4f6}
.border-gray-200{border-color:#e5e7eb}
.border-gray-300{border-color:#d1d5db}
.border-blue-200{border-color:#bfdbfe}
.rounded{border-radius:.25rem}
.rounded-md{border-radius:.375rem}
.rounded-lg{border-radius:.5rem}
.rounded-full{border-radius:9999px}
.last\:border-0:last-child{border-width:0}

/* --- effects --- */
.shadow{box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)}
.shadow-sm{box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}
.shadow-md{box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)}
.transition-colors{transition-property:color,background-color,border-color;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}

/* --- states --- */
.hover\:underline:hover{text-decoration-line:underline}
.hover\:text-blue-600:hover{color:#2563eb}
.hover\:text-blue-700:hover{color:#1d4ed8}
.hover\:bg-blue-700:hover{background-color:#1d4ed8}
.hover\:border-blue-400:hover{border-color:#60a5fa}
.hover\:border-blue-500:hover{border-color:#3b82f6}
.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}
.focus\:ring-2:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(96,165,250,.5)}
.focus\:ring-blue-400:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(96,165,250,.5)}

/* --- prose (минимальная типографика статьи) --- */
.prose h2{font-size:1.5rem;line-height:2rem;font-weight:700;margin-top:1.75rem;margin-bottom:.75rem;color:#111827}
.prose h3{font-size:1.15rem;line-height:1.6rem;font-weight:600;margin-top:1.4rem;margin-bottom:.5rem;color:#1f2937}
.prose p{margin-bottom:.9rem;line-height:1.75}
.prose ul,.prose ol{padding-left:1.5rem;margin-bottom:1rem}
.prose ul{list-style-type:disc}
.prose ol{list-style-type:decimal}
.prose li{margin-bottom:.4rem;line-height:1.7}
.prose table{width:100%;margin:1.25rem 0}
.prose a{color:#2563eb}
.prose a:hover{text-decoration-line:underline}

/* --- каталог на главной: результаты сразу под полем поиска --- */
#catalog>section:first-of-type>h2{margin-top:0}

/* --- responsive --- */
@media (min-width:640px){
  .sm\:flex-row{flex-direction:row}
  .sm\:max-w-xs{max-width:20rem}
  .sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:768px){
  .md\:p-8{padding:2rem}
  .md\:py-10{padding-top:2.5rem;padding-bottom:2.5rem}
  .md\:text-2xl{font-size:1.5rem;line-height:2rem}
  .md\:text-3xl{font-size:1.875rem;line-height:2.25rem}
}

/* мобильные: таблицы прокручиваются внутри блока, страница не уезжает вбок (30.09.2026) */
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
.table-scroll table{min-width:100%}
@media (max-width:639px){
  article.prose{padding:1rem}
  .table-scroll th,.table-scroll td{padding-left:.5rem;padding-right:.5rem}
}
/* таблицы от 3 колонок на телефоне: строка = карточка, подпись колонки над значением */
@media (max-width:639px){
  .table-stack{overflow-x:visible}
  .table-stack table,.table-stack tbody,.table-stack tr,.table-stack td{display:block;width:100%}
  .table-stack thead,.table-stack tr:has(th){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .table-stack tr{border:1px solid #e5e7eb;border-radius:.5rem;margin-bottom:.75rem;overflow:hidden}
  .table-stack td{border:0;border-bottom:1px solid #f3f4f6;padding:.4rem .75rem}
  .table-stack td:last-child{border-bottom:0}
  .table-stack td[data-label]:not([data-label=""])::before{content:attr(data-label);display:block;font-weight:600;font-size:.75rem;color:#6b7280;margin-bottom:.1rem}
}
/* телефоны: поле поиска 16px (иначе iPhone увеличивает страницу при нажатии), кнопка скачивания не ниже 44px */
@media (max-width:639px){
  input[type=text],input[type=search]{font-size:16px}
  a[download]{min-height:44px;display:flex;align-items:center;justify-content:center}
}
/* главная: навигация (30.09.2026) */
.home-chips{display:flex;flex-wrap:wrap;gap:.5rem}
.home-chip{display:inline-flex;align-items:center;gap:.4rem;border:1px solid #d1d5db;border-radius:9999px;padding:.35rem .8rem;color:#1f2937;text-decoration:none;background:#fff;font-size:.95rem}
.home-chip:hover{border-color:#3b82f6;color:#2563eb}
.home-count{background:#f3f4f6;border-radius:9999px;padding:0 .45rem;font-size:.75rem;color:#6b7280}
.home-top{display:grid;grid-template-columns:1fr;gap:.5rem;padding:0;margin:0}
@media (min-width:640px){.home-top{grid-template-columns:1fr 1fr}}
.home-top li{border:1px solid #e5e7eb;border-radius:.5rem;padding:.6rem .8rem;background:#fff}
article.prose ul.home-top{list-style:none;padding-left:0}
article.prose ul.home-top li::marker{content:''}
/* дата обновления под заголовком */
article.prose p.page-updated{margin:-.5rem 0 1rem;font-size:.8125rem;color:#6b7280}
/* подзаголовки внутри влитых разделов */
.prose h4{font-size:1.02rem;line-height:1.5rem;font-weight:600;margin-top:1.1rem;margin-bottom:.4rem;color:#374151}
