/* hinaenv.com — design direction A ("engineering"): navy, site photography, figures set in a mono face.
   Single visual world (the site has no dark mode); every colour is set explicitly. */

@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #0e2350; --navy-2: #173a7a; --navy-3: #0a1a3c; --steel: #5b6f8f; --paper: #f4f6f9;
  --rule: #d9dee6; --signal: #f2b81d; --ink: #16202f; --ink-2: #566175; --white: #fff;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gut: 28px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 16px/1.75 var(--sans); }
/* Short pages: the main area takes the leftover height so the footer sits at the bottom of the window. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) { :root { --gut: 16px; } body { font-size: 15px; } }

/* ---------- admin / preview bars ---------- */
#admin-bar { background: #111827; color: #d1d5db; font-size: 13px; }
#admin-bar .wrap { display: flex; gap: 18px; align-items: center; min-height: 34px; }
#admin-bar a { color: #fff; text-decoration: none; }
#admin-bar .private { color: var(--signal); }
#admin-bar form { margin: 0 0 0 auto; }
#admin-bar button { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; }
#preview-bar { background: var(--signal); color: #111; text-align: center; font-size: 14px; line-height: 36px; position: sticky; top: 0; z-index: 100; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--rule); backdrop-filter: saturate(1.2) blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { flex: none; display: block; }
.logo img { height: 42px; width: auto; display: block; }
.mainnav { margin-left: auto; }
.mainnav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mainnav li { position: relative; }
.mainnav > ul > li > a { display: block; padding: 24px 12px; font-size: 15.5px; font-weight: 500; color: #243049; text-decoration: none; white-space: nowrap; box-shadow: inset 0 -3px 0 transparent; transition: box-shadow .15s, color .15s; }
.mainnav > ul > li > a:hover, .mainnav > ul > li.open > a { color: var(--navy-2); }
.mainnav > ul > li > a.active { color: var(--navy-2); box-shadow: inset 0 -3px 0 var(--signal); }
.mainnav .sub { position: absolute; left: 0; top: 100%; min-width: 240px; list-style: none; margin: 0; padding: 8px 0; background: var(--navy); box-shadow: 0 14px 30px rgba(10, 20, 45, .25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.mainnav li.open > .sub { opacity: 1; visibility: visible; transform: none; }
/* Menus near the right edge open leftwards, or a hidden one would still widen the page. */
.mainnav > ul > li:nth-last-child(-n+3) > .sub { left: auto; right: 0; }
.mainnav .sub a { display: block; padding: 8px 18px; color: #d8e0ee; text-decoration: none; font-size: 14.5px; line-height: 1.5; }
.mainnav .sub a:hover, .mainnav .sub a.active { color: #fff; background: var(--navy-2); }
.hotline { flex: none; font-family: var(--mono); font-size: 13.5px; color: var(--navy); border: 1px solid var(--navy); padding: 6px 12px; text-decoration: none; white-space: nowrap; }
.hotline:hover { background: var(--navy); color: #fff; }
.search-link { flex: none; width: 34px; height: 34px; display: grid; place-items: center; color: #243049; }
.search-link svg { width: 18px; height: 18px; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1080px) {
  .mainnav > ul > li > a { padding-inline: 8px; font-size: 14.5px; }
  .hotline { display: none; }
}
@media (max-width: 860px) {
  .site-header .wrap { min-height: 60px; gap: 8px; }
  .logo img { height: 34px; }
  .menu-btn { display: block; }
  .search-link { order: 3; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rule); box-shadow: 0 16px 30px rgba(10, 20, 45, .12); max-height: calc(100vh - 60px); overflow-y: auto; }
  .menu-open .mainnav { display: block; }
  .mainnav > ul { flex-direction: column; gap: 0; padding: 6px var(--gut) 14px; }
  .mainnav > ul > li { border-bottom: 1px solid var(--rule); }
  .mainnav > ul > li > a { padding: 13px 0; font-size: 16px; box-shadow: none; }
  .mainnav > ul > li > a.active { box-shadow: inset 3px 0 0 var(--signal); padding-left: 12px; }
  .mainnav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--paper); display: none; padding: 4px 0 8px; }
  .mainnav li.open > .sub { display: block; }
  .mainnav .sub a { color: #2b3753; padding: 7px 14px; }
  .mainnav .sub a:hover, .mainnav .sub a.active { background: none; color: var(--navy-2); }
}

/* ---------- shared section scaffolding ---------- */
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--signal); }
.blk { padding-block: 64px; }
.blk.paper { background: var(--paper); }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 28px; }
.head h2 { margin: 0; font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: .02em; }
.head a { font-size: 14px; color: var(--steel); text-decoration: none; white-space: nowrap; }
.head a:hover { color: var(--navy-2); }
.lede { margin: -12px 0 28px; max-width: 46em; color: var(--ink-2); }
@media (max-width: 640px) { .blk { padding-block: 40px; } .head h2 { font-size: 22px; } }

/* ---------- home: hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-slides img.active { opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 26, 60, .88) 0%, rgba(10, 26, 60, .55) 55%, rgba(10, 26, 60, .2) 100%); }
.hero .wrap { position: relative; z-index: 1; min-height: 480px; display: flex; flex-direction: column; justify-content: flex-end; padding-block: 72px 56px; }
.hero h1 { font-size: 48px; line-height: 1.22; font-weight: 800; margin: 12px 0 14px; max-width: 14em; text-wrap: balance; letter-spacing: .02em; }
.hero p { max-width: 34em; margin: 0 0 26px; color: #d5dcea; font-size: 17px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 24px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; }
.btn.pri { background: var(--signal); color: var(--navy); }
.btn.pri:hover { background: #ffc934; color: var(--navy); }
.btn.sec { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn.sec:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.hero-dots { position: absolute; z-index: 2; right: var(--gut); bottom: 24px; display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 3px; border: 0; padding: 0; background: rgba(255, 255, 255, .35); cursor: pointer; }
.hero-dots button.active { background: var(--signal); }
@media (max-width: 640px) {
  .hero .wrap { min-height: 420px; padding-block: 48px 40px; }
  .hero h1 { font-size: 29px; }
  .hero p { font-size: 15px; }
  .hero::after { background: linear-gradient(0deg, rgba(10, 26, 60, .92) 0%, rgba(10, 26, 60, .5) 100%); }
}

/* ---------- home: figures strip ---------- */
.spec { background: var(--navy); color: #fff; border-top: 1px solid rgba(255, 255, 255, .1); }
.spec .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec .cell { padding: 24px 20px; border-left: 1px solid rgba(255, 255, 255, .14); }
.spec .cell:first-child { border-left: 0; padding-left: 0; }
.spec b { display: block; font-family: var(--mono); font-size: 28px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.spec small { color: #a9b6cc; font-size: 13px; }
.spec .note { font-size: 12px; color: #7e8ca6; padding-bottom: 14px; margin: -6px 0 0; }
@media (max-width: 760px) {
  .spec .grid { grid-template-columns: 1fr 1fr; }
  .spec .cell { padding: 16px 10px 16px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .spec b { font-size: 21px; }
}

/* ---------- home: services ---------- */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.svc a { background: #fff; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.svc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--paper); }
.svc .t { padding: 14px 16px 18px; }
.svc h3 { margin: 0 0 4px; font-size: 17px; color: var(--navy); line-height: 1.45; }
.svc p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc a:hover h3 { color: var(--navy-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .svc { grid-template-columns: repeat(2, 1fr); } }

/* ---------- home: cases ---------- */
.cases { display: grid; grid-template-columns: 1.45fr 1fr; gap: 32px; align-items: start; }
.case-main { text-decoration: none; color: inherit; display: block; }
.case-main img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; background: #e6eaf0; }
.case-main h3 { font-size: 21px; margin: 16px 0 6px; color: var(--navy); line-height: 1.45; }
.case-main p { margin: 0; color: var(--ink-2); font-size: 15px; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { border-bottom: 1px solid var(--rule); }
.plist li:first-child { border-top: 1px solid var(--rule); }
.plist a { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 0; text-decoration: none; color: inherit; }
.plist img { width: 112px; height: 76px; object-fit: cover; background: #e6eaf0; }
.plist b { font-size: 15px; color: #1c2a44; display: block; line-height: 1.5; font-weight: 600; }
.plist span { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; margin-top: 2px; }
.plist a:hover b, .case-main:hover h3 { color: var(--navy-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }

/* ---------- home: advantages + news ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.adv { color: var(--ink-2); }
.adv p { margin: 0 0 14px; padding-left: 18px; border-left: 3px solid var(--signal); }
.news { list-style: none; margin: 0; padding: 0; }
.news li { border-bottom: 1px solid var(--rule); }
.news a { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; text-decoration: none; color: inherit; align-items: baseline; }
.news time { font-family: var(--mono); font-size: 13px; color: var(--steel); }
.news b { font-weight: 600; color: #1c2a44; line-height: 1.55; }
.news a:hover b { color: var(--navy-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .news a { grid-template-columns: 1fr; gap: 0; } }

/* ---------- inner pages: band ---------- */
.band { background: var(--navy); color: #fff; }
.band .wrap { padding-block: 34px 38px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.crumbs { font-size: 13px; color: #a9b6cc; margin-bottom: 10px; }
.crumbs a { color: #d4dcea; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 8px; color: #6f7f9d; }
.band h1 { margin: 0; font-size: 34px; line-height: 1.3; font-weight: 800; text-wrap: balance; letter-spacing: .02em; }
.band .desc { margin: 12px 0 0; max-width: 44em; color: #cdd6e6; font-size: 15.5px; }
.band .meta { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: #a9b6cc; }
.band .lead { width: 240px; aspect-ratio: 3 / 2; object-fit: cover; display: block; border: 3px solid rgba(255, 255, 255, .15); }
@media (max-width: 760px) {
  .band .wrap { grid-template-columns: 1fr; padding-block: 24px 28px; gap: 18px; }
  .band h1 { font-size: 25px; }
  .band .lead { width: 100%; max-width: 360px; }
}

/* ---------- inner pages: body with optional table of contents ---------- */
.main { padding-block: 44px 72px; }
.main.has-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 96px; font-size: 14px; border-left: 2px solid var(--rule); }
.toc b { display: block; font-size: 12px; letter-spacing: .12em; color: var(--steel); padding: 0 0 8px 14px; }
.toc a { display: block; padding: 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.5; }
.toc a:hover, .toc a.active { color: var(--navy-2); border-left-color: var(--signal); }
@media (max-width: 900px) {
  .main.has-toc { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; border: 1px solid var(--rule); padding: 12px 0; }
  .toc a { display: inline-block; border: 0; padding: 3px 14px; }
}

/* ---------- rich text (page bodies written in the editor, old and new) ---------- */
.prose { max-width: 820px; color: #273247; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--navy); line-height: 1.45; text-wrap: balance; }
.prose h2 { font-size: 23px; margin: 2em 0 .6em; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.prose h3 { font-size: 19px; margin: 1.8em 0 .5em; }
.prose h4 { font-size: 16.5px; margin: 1.5em 0 .4em; }
.prose p { margin: 0 0 1em; }
.prose p[align="left"] { text-align: left; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose li { margin: .25em 0; }
.prose a { text-underline-offset: 3px; }
.prose img { display: inline-block; vertical-align: middle; }
.prose .image-left { float: left; margin: .3em 1.4em .8em 0; max-width: 50%; }
.prose .image-right { float: right; margin: .3em 0 .8em 1.4em; max-width: 50%; }
.prose .image-inline { margin: .4em 0; }
.prose::after { content: ""; display: table; clear: both; }
.prose table { border-collapse: collapse; margin: 1.2em 0; max-width: 100%; }
.prose table:not(.invisible) td, .prose table:not(.invisible) th { border: 1px solid var(--rule); padding: 8px 10px; vertical-align: top; }
.prose table.invisible td, .prose table.invisible th, .prose table.plain td, .prose table.plain th { border: 0; padding: 8px 14px 8px 0; vertical-align: top; }
.prose table.invisible td:first-child img { max-width: 360px; }
.prose blockquote { margin: 1.2em 0; padding: .4em 1.2em; border-left: 3px solid var(--signal); background: var(--paper); color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.prose .discreet { color: var(--steel); font-size: .9em; }
.prose .smaller-text { font-size: .9em; }
/* Where a picture was lost in the migration. Visitors see nothing; logged-in editors see a reminder. */
.prose .missing-image { display: none; }
.is-editor .prose .missing-image { display: block; margin: 1em 0; padding: 14px 16px 14px 44px; border: 2px dashed #d99a00; background: #fff8e1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b07a00' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") 14px 50% / 20px no-repeat; color: #7a5600; font-size: 14px; }
/* Old-editor text styles: .font22/.font20 were its section headings, .font16/.font14 body sizes. */
.prose .font22, .prose .font20 { display: block; font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.45; margin: 1.6em 0 .5em; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.prose p:first-child > .font22, .prose p:first-child > .font20 { margin-top: 0; }
.prose .font16 { font-size: 16px; }
.prose .font14 { font-size: 15px; }
/* Layout tables put whole sections in <th>; don't let the browser centre and bold them. */
.prose table.plain th, .prose table.invisible th { text-align: left; font-weight: inherit; }
.prose table.plain td:empty, .prose table.plain th:empty, .prose table.invisible td:empty, .prose table.invisible th:empty { display: none; }
.prose table.plain, .prose table.invisible { width: 100%; }
.prose a.anchor-link { color: inherit; text-decoration: none; }
.prose .LogoTiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.prose .LogoTiles > a { display: flex; align-items: center; justify-content: center; border: 1px solid var(--rule); padding: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.prose .LogoTiles > a:hover { border-color: var(--navy-2); box-shadow: 0 6px 16px rgba(10, 30, 70, .1); }
.prose .LogoTiles img { width: 100%; max-width: 210px; max-height: 62px; object-fit: contain; margin: 0; }
/* A lazy image with no size of its own inside a flex/grid cell is 0×0 until it loads, and Chrome then
   never starts loading it. Give every lazy picture a box to be seen by. */
.prose img[loading="lazy"] { min-width: 1px; min-height: 1px; }
@media (max-width: 640px) {
  .prose .image-left, .prose .image-right { float: none; margin: .6em 0; max-width: 100%; }
  .prose table.invisible, .prose table.invisible tbody, .prose table.invisible tr, .prose table.invisible td { display: block; width: auto !important; }
  .prose table:not(.invisible) { display: block; overflow-x: auto; }
  .prose table.invisible td:first-child img { max-width: 100%; }
}

/* ---------- listings ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.cards a { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-bottom: 1px solid var(--rule); padding-bottom: 18px; }
.cards .img { aspect-ratio: 4 / 3; background: var(--paper) center / cover no-repeat; display: block; overflow: hidden; }
.cards .img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.cards a:hover .img img { transform: scale(1.03); }
.cards .noimg { display: grid; place-items: center; color: var(--steel); font-family: var(--mono); font-size: 13px; letter-spacing: .1em; }
.cards h2 { font-size: 18px; margin: 14px 0 6px; color: var(--navy); line-height: 1.45; }
.cards p { margin: 0; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.7; }
.cards .kind { font-family: var(--mono); font-size: 12px; color: var(--steel); margin-top: 10px; }
.cards a:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.rows li { border-bottom: 1px solid var(--rule); }
.rows a { display: grid; grid-template-columns: 110px 1fr 160px; gap: 24px; padding: 22px 0; text-decoration: none; color: inherit; align-items: start; }
.rows time { font-family: var(--mono); font-size: 13.5px; color: var(--steel); padding-top: 3px; }
.rows h2 { margin: 0 0 6px; font-size: 18px; color: #1c2a44; line-height: 1.5; }
.rows p { margin: 0; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rows img { width: 160px; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.rows a:hover h2 { color: var(--navy-2); text-decoration: underline; text-underline-offset: 3px; }
.rows a.noimg { grid-template-columns: 110px 1fr; }
@media (max-width: 700px) {
  .rows a, .rows a.noimg { grid-template-columns: 1fr 104px; gap: 4px 14px; }
  .rows time { grid-column: 1; grid-row: 1; padding: 0; }
  .rows .t { grid-column: 1; grid-row: 2; }
  .rows img { grid-column: 2; grid-row: 1 / span 2; width: 104px; }
  .rows a.noimg .t { grid-column: 1 / -1; }
}

.sections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.sections .head h2 { font-size: 22px; }
@media (max-width: 800px) { .sections { grid-template-columns: 1fr; } }

.full-item + .full-item { margin-top: 56px; }
.full-item > h2 { font-size: 24px; color: var(--navy); margin: 0 0 18px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.full-item > h2 a { color: inherit; text-decoration: none; }
.full-item .entries { list-style: none; margin: 0; padding: 0; }
.full-item .entries a { display: block; padding: 8px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }

.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.album a { text-decoration: none; color: var(--ink-2); font-size: 13px; }
.album img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; margin-bottom: 6px; background: var(--paper); }

.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 36px; }
.pager a, .pager span { min-width: 38px; padding: 6px 10px; text-align: center; border: 1px solid var(--rule); text-decoration: none; font-family: var(--mono); font-size: 14px; }
.pager span { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty { color: var(--ink-2); }

/* ---------- file download ---------- */
.file-card { display: flex; align-items: center; gap: 20px; border: 1px solid var(--rule); border-left: 4px solid var(--navy); padding: 18px 22px; max-width: 640px; margin-bottom: 32px; }
.file-card .ext { font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--navy); border: 1px solid var(--navy); padding: 10px 8px; min-width: 56px; text-align: center; }
.file-card .name { font-weight: 600; word-break: break-all; }
.file-card .size { font-family: var(--mono); font-size: 13px; color: var(--steel); }
.file-card .btn { margin-left: auto; background: var(--navy); color: #fff; }
.file-card .btn:hover { background: var(--navy-2); color: #fff; }
@media (max-width: 560px) { .file-card { flex-wrap: wrap; } .file-card .btn { margin-left: 0; } }

/* ---------- search ---------- */
.search-form { display: flex; gap: 0; max-width: 640px; margin: 0 0 28px; }
.search-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 2px solid var(--navy); border-right: 0; font: inherit; font-size: 16px; }
.search-form button { padding: 0 26px; border: 0; background: var(--navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.search-count { color: var(--ink-2); font-size: 14px; }
.search-results { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.search-results li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.search-results h2 { font-size: 18px; margin: 0 0 2px; }
.search-results h2 a { text-decoration: none; }
.search-results .path { font-family: var(--mono); font-size: 12.5px; color: #3a7d44; word-break: break-all; }
.search-results p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; }
.search-results mark, .search-results h2 mark { background: #fff0bf; color: inherit; padding: 0 1px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-3); color: #a9b6cb; font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-block: 48px 28px; }
.site-footer h2 { color: #fff; font-size: 16px; margin: 0 0 12px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #d4dcea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.site-footer .contact b { font-family: var(--mono); font-weight: 500; color: #fff; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #7e8ca6; }
@media (max-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, #admin-bar, .toc, .hero-dots { display: none; }
  .band { background: none; color: #000; }
}
