/* Night Catalog 1.1.1 — Deep Teal palette. */
:root {
    color-scheme: dark;
    --bg: #173e39;
    --panel: #1f4b45;
    --panel-hover: #27594f;
    --surface-deep: #153b34;
    --header: #163b35f5;
    --footer: #12352f;
    --line: #3f695e;
    --line-soft: #3f695e80;
    --line-strong: #83a797;
    --ink: #f1f8f5;
    --text: #d1e2da;
    --muted: #bad0c8;
    --quiet: #b0c9bf;
    --accent: #84ddb0;
    --accent-hover: #a3ecc8;
    --accent-ink: #10382d;
    --accent-soft: #245448;
    --rating: #edcf85;
    --badge-gold: #e8ce91;
    --badge-gold-ink: #42351d;
    --danger-bg: #492d32;
    --danger-border: #c38389;
    --danger-ink: #ffccd0;
    --fallback-start: #2b6257;
    --fallback-end: #17463c;
    --hero-glow: #3a8c6c40;
    --hero-shade-start: #0c302930;
    --hero-shade-end: #0c3029ed;
    --decorative-ink: #a3ecc82b;
    --cover-ink: #a3ecc870;
    --backdrop: #0b2420d9;
    --drawer-backdrop: #0b2420c4;
    --lightbox: #0e2d28f7;
    --lightbox-backdrop: #0e2d28;
    --lightbox-control: #d4f7e918;
    --lightbox-control-border: #d4f7e938;
    --lightbox-control-hover: #d4f7e92e;
    --shadow-soft: #092a2533;
    --shadow-medium: #092a2544;
    --shadow-drawer: #092a2566;
    --shadow-dialog: #092a2588;
    --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { min-width: 0; background: var(--surface-deep); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; }
input::placeholder, textarea::placeholder { color: var(--quiet); opacity: 1; }
input, select, textarea { accent-color: var(--accent); }
select option { background: var(--surface-deep); color: var(--ink); }
textarea { resize: vertical; min-height: 120px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color: var(--accent-ink); background: var(--accent-hover); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
h2 { font-size: 22px; line-height: 1.35; letter-spacing: -.015em; }
h3 { font-size: 17px; line-height: 1.4; }
small { color: var(--muted); font-size: 12px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; flex-shrink: 0; }
.shell, .am-container { width: min(1184px, calc(100% - 48px)); margin-inline: auto; }
.night-site { min-height: 100vh; display: flex; flex-direction: column; }
.night-site > main { flex: 1; }
.am-sr, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 100; inset: 12px auto auto 12px; padding: 12px; background: var(--accent); color: var(--accent-ink); }
.site-header { border-bottom: 1px solid var(--line); background: var(--header); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); }
.header-main { min-height: 78px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 24px; font-weight: 800; letter-spacing: -.6px; }
.brand-icon { width: 36px; height: 36px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border-radius: 11px; font-size: 22px; }
.catalog-logo { width: auto; height: auto; max-width: 200px; max-height: 48px; object-fit: contain; }
.top-nav { margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.top-nav a { color: var(--muted); font-size: 14px; font-weight: 650; padding: 26px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.top-nav a:hover, .top-nav a[aria-current] { color: var(--accent); border-color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.language-select { border: 0; font-size: 12px; background: transparent; padding: 6px; color: var(--muted); max-width: 72px; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; width: 38px; height: 38px; background: transparent; border: 1px solid transparent; border-radius: 9px; font-size: 24px; }
.icon-button:hover { background: var(--panel); border-color: var(--line); color: var(--accent); }
.home-view { padding-bottom: 24px; }
.home-hero { display: grid; grid-template-columns: .86fr 1.14fr; gap: 44px; align-items: center; padding-block: 36px 16px; position: relative; }
.home-hero::before { content: ""; position: absolute; width: 65%; height: 90%; top: -25px; left: -10%; pointer-events: none; z-index: -1; background: radial-gradient(ellipse, var(--hero-glow), transparent 65%); }
.hero-solo { grid-template-columns: 1fr; min-height: 300px; }
.hero-solo .hero-copy { max-width: 680px; }
.hero-copy h1 { margin-block: 18px; font-size: clamp(28px, 3.1vw, 40px); }
.hero-copy > p { color: var(--muted); font-size: 15px; max-width: 510px; }
.eyebrow { display: block; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 6px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; margin: 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.button-primary, .button-secondary, .download-button, .am-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 10px; padding: 11px 22px; min-height: 44px; font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; }
.button-primary, .download-button, .am-button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover, .download-button:hover, .am-button-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.button-secondary { background: var(--panel); border-color: var(--line-strong); color: var(--text); }
.button-secondary:hover { background: var(--panel-hover); border-color: var(--accent); color: var(--ink); }
.hero-carousel { min-width: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); box-shadow: 0 18px 36px var(--shadow-soft); }
.hero-slide { display: block; aspect-ratio: 1.7; min-height: 320px; position: relative; overflow: hidden; color: var(--ink); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 15%, var(--hero-shade-start) 35%, var(--hero-shade-end) 100%); }
.hero-image { position: absolute; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hero-slide:hover .hero-image { transform: scale(1.035); }
.hero-slide:hover { color: var(--ink); }
.hero-slide.no-cover { background: radial-gradient(circle at 76% 20%, var(--fallback-start), transparent 52%), linear-gradient(135deg, var(--fallback-start), var(--fallback-end)); }
.hero-app-icon { width: 108px; height: 108px; object-fit: cover; border-radius: 24px; position: absolute; right: 36px; top: 32px; transform: rotate(8deg); box-shadow: 0 16px 50px var(--shadow-medium); }
.hero-monogram { position: absolute; right: 12%; top: -35px; color: var(--decorative-ink); font-size: 230px; font-weight: 800; }
.hero-caption { display: block; position: absolute; z-index: 1; bottom: 24px; left: 24px; right: 24px; }
.hero-caption h2 { margin-block: 10px 6px; font-size: 23px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-date { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text); }
.label-badge { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 3px 8px; border-radius: 5px; text-transform: uppercase; font-size: 10px; letter-spacing: .06em; font-weight: 800; line-height: 1.5; }
.label-badge.violet { background: var(--badge-gold); color: var(--badge-gold-ink); }
.carousel-controls { padding: 4px 12px; display: flex; align-items: center; justify-content: space-between; background: var(--surface-deep); }
.carousel-controls .icon-button { font-size: 17px; width: 32px; height: 28px; }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dots button { width: 24px; height: 24px; background: transparent; border: 0; padding: 10px 0; }
.carousel-dots button::after { content: ""; display: block; height: 3px; background: var(--line-strong); border-radius: 4px; }
.carousel-dots button[aria-pressed=true]::after { background: var(--accent); }
.content-section, .am-section { margin-block: 38px; }
.section-head, .am-section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-link, .text-action { color: var(--muted); font-size: 13px; font-weight: 650; white-space: nowrap; }
.feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.app-grid, .am-appgrid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.app-card { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; display: flex; flex-direction: column; transition: background .15s,border-color .15s; }
.app-card:hover { background: var(--panel-hover); border-color: var(--line-strong); }
.app-card-main { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.app-icon { flex: 0 0 auto; width: 60px; height: 60px; display: block; border-radius: 14px; overflow: hidden; background: var(--surface-deep); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.icon-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg,var(--fallback-start),var(--fallback-end)); color: var(--accent-hover); font-size: 26px; font-weight: 800; }
.app-card-copy { flex: 1; min-width: 0; }
.app-card-copy > strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; font-size: 14px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 11px; color: var(--muted); margin-top: 7px; line-height: 1.6; }
.card-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.65; color: var(--muted); margin-top: 6px; }
.card-bottom { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-action { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--line-strong); border-radius: 7px; padding: 4px 10px; font-weight: 650; font-size: 11px; white-space: nowrap; }
.card-action:hover { background: var(--accent); color: var(--accent-ink); }
.card-rating { color: var(--rating); font-size: 12px; }
.card-version { font-size: 11px; color: var(--quiet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-wide .app-icon { width: 76px; height: 76px; border-radius: 16px; }
.card-wide .card-bottom { padding-left: 90px; }
.card-compact .app-card-main { flex-direction: column; }
.card-compact .app-card-copy { width: 100%; }
.card-compact .app-card-copy > strong { min-height: 39px; }
.rank-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 28px; }
.rank-card { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.rank-number { font-size: 19px; color: var(--quiet); font-weight: 800; }
.rank-card .app-icon { width: 45px; height: 45px; border-radius: 11px; }
.rank-card > span:last-child { min-width: 0; }
.rank-card strong { display: block; font-size: 13px; line-height: 1.4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rank-card small { font-size: 11px; }
.filter-tabs { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 4px; flex-shrink: 0; }
.filter-tabs a { font-size: 12px; padding: 5px 14px; border-radius: 6px; color: var(--muted); }
.filter-tabs a:hover { background: var(--panel-hover); color: var(--ink); }
.filter-tabs a[aria-selected=true] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.browse-more { display: block; text-align: center; color: var(--muted); margin-top: 18px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; }
.tab-panel + .tab-panel:not([hidden]) { margin-top: 24px; }
.category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.sidebar-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.sidebar-panel h2 { font-size: 16px; margin-bottom: 15px; }
.category-links { display: flex; flex-direction: column; gap: 2px; }
.category-links a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.category-links a:hover, .category-links a.selected { color: var(--accent); }
.category-links em { font-style: normal; color: var(--quiet); }
.category-more { margin-top: 10px; color: var(--muted); font-size: 12px; }
summary { cursor: pointer; }
.category-grid .category-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
.editorial-grid, .am-newsgrid, .am-topicgrid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.editorial-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.editorial-card:hover { border-color: var(--line-strong); color: var(--ink); }
.editorial-visual { aspect-ratio: 1.9; display: block; position: relative; overflow: hidden; background: linear-gradient(130deg,var(--fallback-start),var(--fallback-end)); }
.editorial-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.editorial-card:hover img { transform: scale(1.025); }
.editorial-visual .label-badge { position: absolute; bottom: 12px; left: 16px; }
.cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--cover-ink); font-size: 90px; font-weight: 800; }
.editorial-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.editorial-body h3 { margin-bottom: 8px; }
.editorial-body p { font-size: 12px; color: var(--muted); }
.editorial-action { display: flex; align-items: center; justify-content: space-between; color: var(--quiet); font-size: 12px; margin-top: auto; padding-top: 15px; }
.interior-view, .detail-view, main > .am-container { padding-block: 20px 32px; }
.breadcrumb, .am-breadcrumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 20px; color: var(--quiet); font-size: 12px; overflow-wrap: anywhere; }
.am-breadcrumb [aria-current] { color: var(--text); }
.interior-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-block: 12px 28px; }
.interior-heading h1 { margin-bottom: 8px; }
.interior-heading p, .result-count { color: var(--muted); }
.result-count { font-size: 13px; white-space: nowrap; }
.catalog-layout { display: grid; grid-template-columns: minmax(0,1fr) 258px; gap: 24px; align-items: start; }
.catalog-filter { grid-column: 2; grid-row: 1; }
.catalog-results { grid-column: 1; grid-row: 1; min-width: 0; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.result-toolbar select { padding: 6px 8px; font-size: 12px; margin-left: 6px; }
.result-toolbar form { flex-shrink: 0; }
.result-toolbar noscript button { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 8px; }
.result-toolbar noscript button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.catalog-list { display: flex; flex-direction: column; gap: 14px; }
.catalog-list .card-wide .app-card-copy > strong { font-size: 16px; }
.catalog-list .card-wide .card-bottom { padding-top: 6px; }
.catalog-list.editorial-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.catalog-row { display: flex; align-items: center; gap: 18px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.catalog-row-copy { flex: 1; min-width: 0; }
.catalog-row-copy strong, .catalog-row-copy small, .catalog-row-summary { display: block; }
.catalog-row-summary { font-size: 13px; color: var(--muted); }
.catalog-row-action { color: var(--accent); font-size: 12px; white-space: nowrap; }
.search-layout { display: grid; grid-template-columns: minmax(0,1fr) 258px; gap: 24px; }
.search-layout > *, .detail-columns > *, .download-layout > *, .versions-layout > * { min-width: 0; }
.search-aside { background: var(--panel); padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); align-self: start; }
.search-aside h2 { font-size: 16px; }
.filter-links { display: grid; gap: 8px; margin-top: 15px; font-size: 13px; color: var(--muted); }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface-deep); border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px 10px; }
.search svg { color: var(--muted); margin-left: 4px; }
.search input { width: 100%; border: 0; background: transparent; padding: 6px; font-size: 14px; }
.search button { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 7px; padding: 7px 14px; font-weight: 700; font-size: 13px; }
.search button:hover { background: var(--accent-hover); color: var(--accent-ink); }
.search-dialog { width: min(620px, calc(100% - 32px)); margin: 15vh auto; padding: 26px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); box-shadow: 0 30px 120px var(--shadow-dialog); }
.search-dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(5px); }
.search-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; font-size: 12px; color: var(--muted); }
.search-shortcuts a { border: 1px solid var(--line); padding: 5px 12px; border-radius: 6px; }
.search-inline { margin-bottom: 24px; max-width: 720px; }
.am-pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin-block: 28px 12px; flex-wrap: wrap; font-size: 13px; }
.am-pagination a, .am-pagination span { padding: 7px 13px; min-width: 36px; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.am-pagination a:hover, .browse-more:hover, .search-shortcuts a:hover { background: var(--panel-hover); border-color: var(--accent); color: var(--ink); }
.am-pagination .is-current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.panel, .app-hero, .detail-section, .info-panel, .related-panel, .file-main, .file-facts, .version-aside, .release-card, .am-contentpanel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 24px; }
.app-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.app-hero-main { display: flex; align-items: center; gap: 24px; min-width: 0; }
.detail-icon, .app-hero-main > .app-icon { width: 100px; height: 100px; border-radius: 22px; }
.app-identity { min-width: 0; }
.app-identity h1 { font-size: clamp(25px,3vw,34px); }
.developer { font-size: 13px; color: var(--muted); }
.app-identity p { font-size: 13px; color: var(--muted); margin-top: 8px; max-width: 640px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.hero-tags span { border-radius: 5px; padding: 2px 8px; font-size: 11px; background: var(--accent-soft); color: var(--accent-hover); }
.app-hero-actions { min-width: 190px; display: grid; gap: 9px; flex-shrink: 0; text-align: center; }
.app-hero-actions small { font-size: 11px; }
.detail-tabs, .page-tabs { display: flex; flex-wrap: wrap; gap: 24px; border-bottom: 1px solid var(--line); margin-block: 20px; padding-bottom: 12px; font-size: 13px; color: var(--muted); }
.page-tabs .active { color: var(--accent); }
.detail-columns { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 20px; align-items: start; }
.detail-primary, .detail-sidebar { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
.detail-primary > *, .detail-sidebar > * { min-width: 0; }
.detail-section .section-head { padding: 0; border: 0; margin-bottom: 18px; }
.detail-section h2, .info-panel h2, .related-panel h2, .file-facts h2, .file-main h2, .version-aside h2, .am-contentpanel > h2 { font-size: 18px; margin-bottom: 16px; }
.screenshot-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; scrollbar-color: var(--line-strong) var(--surface-deep); }
.screenshot-row img { height: 300px; width: auto; max-width: none; border-radius: 10px; object-fit: contain; scroll-snap-align: start; }
.am-prose { color: var(--text); line-height: 1.85; overflow-wrap: anywhere; }
.am-prose h2, .am-prose h3, .am-prose h4 { color: var(--ink); margin-block: 26px 10px; }
.am-prose p + p, .am-prose p + ul, .am-prose p + ol { margin-top: 16px; }
.am-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.am-prose a:hover { color: var(--accent-hover); }
.am-prose img, .am-prose iframe, .am-prose video { max-width: 100%; border-radius: 10px; }
.am-prose pre { white-space: pre-wrap; background: var(--surface-deep); padding: 18px; border-radius: 10px; }
.am-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.am-prose td, .am-prose th { padding: 10px; border: 1px solid var(--line); }
.am-prose blockquote { border-left: 3px solid var(--accent); margin: 20px 0; padding-left: 20px; }
dl { margin: 0; }
dl > div { display: flex; justify-content: space-between; gap: 18px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
dl > div:last-child { border-bottom: 0; }
dt { color: var(--quiet); flex-shrink: 0; }
dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.catalog-related { display: flex; gap: 10px; align-items: center; padding-block: 12px; }
.catalog-related .app-icon { width: 42px; height: 42px; border-radius: 10px; }
.catalog-related > span:last-child { min-width: 0; }
.catalog-related strong { font-size: 12px; display: block; line-height: 1.4; }
.catalog-related small { display: block; font-size: 11px; margin-top: 4px; }
.version-preview { display: flex; align-items: center; gap: 14px; padding-block: 14px; border-top: 1px solid var(--line); }
.version-preview > span:last-child { margin-left: auto; color: var(--accent); }
.version-preview strong { font-size: 14px; }
.version-preview p { font-size: 12px; color: var(--muted); }
.version-mark, .file-symbol { display: grid; place-items: center; width: 43px; height: 43px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; border-radius: 10px; flex-shrink: 0; }
.file-symbol { font-size: 24px; }
.am-faq { padding: 15px 0; border-top: 1px solid var(--line); }
.am-faq summary { font-weight: 650; font-size: 14px; }
.am-faq p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.am-reviews-summary { display: flex; align-items: center; gap: 20px; margin-block: 20px; color: var(--rating); }
.am-score { font-size: 46px; font-weight: 750; line-height: 1; }
.am-avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-weight: 700; flex-shrink: 0; }
.am-comment { padding-block: 18px; border-bottom: 1px solid var(--line); }
.am-comment-head, .am-authorline { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.am-comment-head small, .am-authorline small { display: block; }
.am-comment p { margin-top: 12px; color: var(--muted); }
.am-commentform { margin-top: 24px; display: grid; gap: 14px; }
.am-commentform label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.am-commentform button { justify-self: start; }
.am-help { font-size: 12px; color: var(--quiet); }
.am-message, .am-demo { margin-block: 18px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--accent-soft); padding: 14px 18px; color: var(--text); }
.am-error { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger-ink); }
.compact-app-heading, .file-heading { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.compact-icon { width: 76px; height: 76px; border-radius: 18px; }
.compact-app-heading p, .file-heading p { color: var(--muted); font-size: 13px; }
.download-layout, .versions-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 24px; align-items: start; }
.file-facts > a, .version-aside > a { display: block; color: var(--accent); margin-block: 16px; font-size: 13px; }
.file-facts .sidebar-panel, .version-aside .sidebar-panel { border: 0; padding: 16px 0 0; border-top: 1px solid var(--line); border-radius: 0; }
.file-status { display: flex; align-items: center; gap: 14px; margin-block: 22px 14px; }
.file-status h2 { margin: 0; font-size: 17px; }
.file-status p { color: var(--muted); font-size: 12px; }
.catalog-source { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 18px; border-top: 1px solid var(--line); }
.catalog-source small { display: block; }
.file-help { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.file-help h2 { margin-bottom: 8px; }
.file-help p { color: var(--muted); font-size: 13px; }
.hash-value { font-family: monospace; overflow-wrap: anywhere; }
.release-card { margin-top: 16px; }
.release-card-top { display: flex; gap: 14px; align-items: center; }
.release-card-top p { color: var(--muted); font-size: 12px; }
.release-badge { margin-left: auto; padding: 3px 9px; background: var(--accent-soft); color: var(--accent); font-size: 11px; border-radius: 6px; }
.release-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-block: 20px 12px; color: var(--muted); font-size: 12px; }
.release-meta strong { display: block; color: var(--ink); font-size: 13px; }
.version-aside p { color: var(--muted); overflow-wrap: anywhere; }
.topic-hero { display: flex; align-items: center; gap: 26px; }
.topic-cover { width: 240px; height: 180px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.topic-hero h1 { margin-block: 12px; font-size: 30px; }
.topic-hero p { color: var(--muted); margin-bottom: 14px; }
.topic-hero + .am-contentpanel { margin-top: 20px; }
.am-article-header { max-width: 860px; margin: 12px auto 30px; }
.am-article-header h1 { margin-block: 14px; font-size: clamp(30px,4vw,46px); }
.am-article-header > p { color: var(--muted); font-size: 17px; margin-bottom: 22px; }
.am-newslabel { font-size: 12px; color: var(--accent); }
.am-articlevisual { max-width: 900px; margin: 0 auto 24px; }
.am-articlevisual img { width: 100%; max-height: 550px; object-fit: cover; border-radius: var(--radius); }
.am-container > .am-contentpanel { max-width: 900px; margin: 20px auto; }
.am-download-wrap { max-width: 900px; margin-inline: auto; }
.am-pagehead { margin-block: 20px 28px; }
.am-pagehead p { margin-top: 14px; color: var(--muted); }
.empty, .archive-empty { padding: 36px 20px; color: var(--muted); text-align: center; grid-column: 1/-1; }
.am-empty { max-width: 640px; margin: 30px auto; text-align: center; }
.am-errornumber { font-size: 110px; font-weight: 800; color: var(--accent); line-height: 1.2; }
.am-empty p { margin-block: 16px 24px; color: var(--muted); }
.am-empty .search { margin-top: 24px; text-align: left; }
.site-footer { margin-top: 50px; border-top: 1px solid var(--line); background: var(--footer); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding-block: 40px 32px; }
.footer-navigation { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--muted); }
.footer-separator { color: var(--quiet); }
.footer-custom { display: block; line-height: 2; }
.footer-custom a { margin-inline: 7px; }
.footer-copyright { color: var(--quiet); font-size: 12px; }
@media (min-width: 1450px) {
    .shell, .am-container { width: min(1240px, calc(100% - 64px)); }
    .app-grid, .am-appgrid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 1050px) {
    .header-main { gap: 20px; }
    .top-nav { gap: 16px; }
    .catalog-logo { max-width: 170px; }
    .home-hero { gap: 26px; }
    .hero-slide { min-height: 310px; }
    .hero-copy h1 { font-size: 31px; }
    .app-grid, .am-appgrid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .catalog-layout, .search-layout { grid-template-columns: minmax(0,1fr) 220px; gap: 18px; }
    .detail-columns, .download-layout, .versions-layout { grid-template-columns: minmax(0,1fr) 255px; }
    .app-hero { align-items: flex-start; }
    .app-hero-main { gap: 18px; }
    .detail-icon { width: 80px; height: 80px; }
    .app-hero-actions { min-width: 165px; }
    .rank-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .shell, .am-container { width: calc(100% - 32px); }
    .header-main { flex-wrap: wrap; gap: 0; padding-top: 12px; min-height: auto; }
    .brand { font-size: 22px; }
    .catalog-logo { max-width: 174px; max-height: 40px; }
    .header-tools { margin-left: auto; }
    .top-nav { order: 3; width: 100%; gap: 26px; overflow-x: auto; margin: 10px 0 0; scrollbar-width: none; }
    .top-nav a { padding: 10px 0 12px; font-size: 13px; }
    .home-hero { grid-template-columns: 1fr; padding-top: 28px; gap: 26px; }
    .hero-copy h1 { font-size: 34px; max-width: 560px; }
    .hero-copy p { font-size: 14px; }
    .hero-actions { margin-top: 20px; }
    .hero-slide { min-height: 0; aspect-ratio: 1.8; }
    .hero-caption h2 { font-size: 22px; }
    .feature-grid { grid-template-columns: 1fr; }
    .editorial-grid, .am-newsgrid, .am-topicgrid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
    .app-grid, .am-appgrid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
    .app-card { padding: 14px; border-radius: 12px; }
    .card-bottom { flex-wrap: wrap; gap: 7px; }
    .card-compact .card-action { width: 100%; text-align: center; }
    .card-wide .card-bottom { flex-wrap: nowrap; }
    .category-grid { grid-template-columns: 1fr; gap: 16px; }
    .catalog-layout, .search-layout, .detail-columns, .download-layout, .versions-layout { display: flex; flex-direction: column; }
    .catalog-results, .catalog-filter, .search-layout > *, .detail-columns > *, .download-layout > *, .versions-layout > * { width: 100%; }
    .catalog-filter { order: 2; }
    .search-aside .filter-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .app-hero { flex-direction: column; padding: 20px; }
    .app-hero-actions { width: 100%; }
    .app-hero-main { align-items: flex-start; }
    .app-hero-main > .app-icon { width: 78px; height: 78px; }
    .app-identity h1 { font-size: 26px; }
    .detail-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .detail-sidebar .sidebar-panel { grid-column: 1/-1; }
    .topic-cover { width: 170px; height: 145px; }
    .topic-hero { gap: 20px; padding: 20px; }
    .topic-hero h1 { font-size: 25px; }
    .screenshot-row img { height: 270px; }
    .am-contentpanel, .detail-section, .file-main, .file-facts { padding: 20px; }
}
@media (max-width: 480px) {
    .top-nav { gap: 18px; }
    .top-nav a { font-size: 12px; }
    .hero-copy h1 { font-size: 32px; }
    .hero-slide { aspect-ratio: 1.35; }
    .hero-caption { left: 18px; right: 18px; bottom: 20px; }
    .hero-caption h2 { font-size: 21px; }
    .content-section, .am-section { margin-block: 30px; }
    h2 { font-size: 21px; }
    .section-head { gap: 10px; }
    .section-link { font-size: 11px; }
    .app-grid, .am-appgrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .card-meta { gap: 2px 6px; font-size: 11px; }
    .card-wide .app-icon { width: 62px; height: 62px; border-radius: 13px; }
    .card-wide .card-bottom { padding-left: 76px; }
    .card-wide .app-card-main { gap: 14px; }
    .rank-grid { grid-template-columns: 1fr; }
    .editorial-grid, .am-newsgrid, .am-topicgrid, .catalog-list.editorial-grid { grid-template-columns: 1fr; }
    .filter-tabs a { padding-inline: 10px; }
    .topic-hero { flex-direction: column; align-items: flex-start; }
    .topic-cover { width: 100%; height: auto; aspect-ratio: 1.9; }
    .detail-sidebar { grid-template-columns: 1fr; }
    .detail-tabs { gap: 16px; font-size: 12px; }
    .app-hero-main { gap: 14px; }
    .app-hero-main > .app-icon { width: 62px; height: 62px; border-radius: 14px; }
    .app-identity h1 { font-size: 23px; }
    .app-identity p { font-size: 12px; }
    .interior-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .result-toolbar { flex-wrap: wrap; }
    .catalog-row { gap: 12px; padding: 16px; flex-wrap: wrap; }
    .catalog-row-action { margin-left: 72px; }
    .catalog-source { flex-direction: column; align-items: stretch; }
    .catalog-source .download-button { width: 100%; }
    .file-heading { gap: 14px; }
    .file-heading h1, .compact-app-heading h1 { font-size: 24px; }
    .compact-icon { width: 60px; height: 60px; border-radius: 12px; }
    .release-card-top { flex-wrap: wrap; }
    .release-badge { margin-left: 57px; }
    .search-dialog { padding: 20px; }
    .search { padding: 6px; gap: 6px; }
    .search button { padding-inline: 10px; }
    .footer-inner { padding-block: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 1.1: catalogue modules, mobile navigation and pointer interactions. */
.nc-arrow { width: 18px; height: 18px; vertical-align: middle; }
.section-link, .text-action, .card-action, .catalog-row-action, .browse-more { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.browse-more { display: flex; }
.card-action .nc-arrow, .breadcrumb .nc-arrow { width: 14px; height: 14px; }
.am-pagination a { display: inline-flex; align-items: center; justify-content: center; }
.category-links em { display: flex; align-items: center; }
.section-intro { color: var(--muted); font-size: 13px; margin-top: 6px; }
.rank-file { display: block; color: var(--quiet); }
.hero-icon-background { object-fit: contain; padding: 42px; background: var(--surface-deep); }
.hero-track { touch-action: pan-y pinch-zoom; cursor: grab; user-select: none; -webkit-user-select: none; }
.hero-track.is-dragging { cursor: grabbing; }
.hero-track.is-dragging .hero-slide { transform: translateX(var(--swipe-offset, 0)); }
.hero-track img { -webkit-user-drag: none; }
.carousel-controls .icon-button { width: 44px; height: 44px; }
.carousel-dots button { height: 44px; padding: 20px 0; }
.editorial-four, .news-apps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.topic-card .editorial-visual { aspect-ratio: 1.55; }
.topic-card .editorial-body h3 { font-size: 16px; }
.topic-count { color: var(--accent); margin-top: 12px; }
.result-title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.result-title h1 { color: var(--ink); font-size: clamp(24px, 2.4vw, 30px); }
.category-description { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.collection-heading { padding: 18px 0 28px; }
.collection-heading h1 { margin: 8px 0 12px; }
.collection-heading p { color: var(--muted); max-width: 680px; }
.news-featured { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0 38px; }
.news-featured .story-card:first-child { grid-row: 1 / 3; }
.news-featured .story-card:first-child .editorial-visual { aspect-ratio: 1.85; }
.news-featured .story-card:first-child h3 { font-size: 26px; }
.news-featured .story-card:not(:first-child) { flex-direction: row; }
.news-featured .story-card:not(:first-child) .editorial-visual { width: 38%; flex-shrink: 0; aspect-ratio: auto; }
.news-featured .story-card:not(:first-child) .editorial-body { padding: 16px; }
.news-featured .story-card:not(:first-child) p { display: none; }
.news-featured .story-card:not(:first-child) h3 { font-size: 16px; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.news-archive, .news-sidebar { min-width: 0; }
.news-sidebar { display: grid; gap: 24px; }
.news-side-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-side-row:last-child { border: 0; padding-bottom: 0; }
.news-side-row strong { display: block; font-size: 13px; line-height: 1.5; }
.news-side-row small { display: block; margin-top: 5px; font-size: 11px; }
.archive-month { margin: 22px 0 5px; font-size: 13px; color: var(--quiet); }
.news-row { display: flex; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news-row > div { flex: 1; min-width: 0; }
.news-row h3 { margin-bottom: 8px; }
.news-row p { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.news-row-image { position: relative; width: 160px; aspect-ratio: 1.5; flex: 0 0 auto; background: var(--panel); border-radius: 10px; overflow: hidden; }
.news-row-image img { width: 100%; height: 100%; object-fit: cover; }
.news-row-image .cover-fallback { font-size: 48px; }
.menu-toggle { display: none; }
.mobile-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(340px, 88vw); height: 100%; height: 100dvh; max-height: 100%; max-width: 100%; padding: max(20px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); border: 0; border-left: 1px solid var(--line); background: var(--panel); color: var(--ink); box-shadow: -20px 0 70px var(--shadow-drawer); overflow-y: auto; }
.mobile-drawer[open] { animation: drawer-enter .22s ease-out; }
.mobile-drawer::backdrop { background: var(--drawer-backdrop); }
.drawer-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 20px; }
.drawer-nav { display: flex; flex-direction: column; gap: 5px; padding-top: 22px; }
.drawer-nav a { display: flex; padding: 14px 12px; border-radius: 9px; font-size: 16px; font-weight: 650; }
.drawer-nav a:hover, .drawer-nav a[aria-current] { background: var(--accent-soft); color: var(--accent); }
@keyframes drawer-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
.screenshot-row > a { display: block; flex: 0 0 auto; cursor: zoom-in; scroll-snap-align: start; border-radius: 10px; }
.image-lightbox { position: fixed; inset: 0; margin: 0; padding: 0; border: 0; width: 100vw; max-width: 100vw; height: 100%; height: 100dvh; max-height: 100%; background: var(--lightbox); color: var(--ink); overflow: hidden; }
.image-lightbox::backdrop { background: var(--lightbox-backdrop); }
.image-lightbox[open] { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; }
.lightbox-stage { grid-column: 2; grid-row: 1; height: calc(100% - 120px); display: flex; align-items: center; justify-content: center; min-width: 0; touch-action: pan-y pinch-zoom; user-select: none; }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; -webkit-user-drag: none; }
.image-lightbox .icon-button { background: var(--lightbox-control); border-color: var(--lightbox-control-border); width: 44px; height: 44px; margin-inline: auto; }
.image-lightbox .icon-button:hover { background: var(--lightbox-control-hover); color: var(--ink); }
.lightbox-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; z-index: 1; }
.lightbox-counter { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-size: 14px; color: var(--text); pointer-events: none; }
@media (max-width: 1050px) {
    .editorial-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; }
    .news-row-image { width: 125px; }
}
@media (max-width: 900px) {
    .nc-menu-ready .header-main { flex-wrap: nowrap; min-height: 70px; gap: 12px; padding-block: 10px; }
    .nc-menu-ready .header-main .top-nav { display: none; }
    .nc-menu-ready .header-tools { margin-left: auto; gap: 4px; flex-shrink: 0; }
    .nc-menu-ready .menu-toggle { display: inline-flex; }
    .nc-menu-ready .header-tools .icon-button { width: 42px; height: 42px; }
    .news-featured { grid-template-columns: 1.3fr 1fr; }
    .news-featured .story-card:not(:first-child) .editorial-visual { width: 30%; }
}
@media (max-width: 760px) {
    .news-layout { grid-template-columns: minmax(0, 1fr); }
    .news-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 14px; }
    .news-featured .story-card:first-child { grid-column: 1 / -1; grid-row: auto; }
    .news-featured .story-card:not(:first-child) { flex-direction: column; }
    .news-featured .story-card:not(:first-child) .editorial-visual { width: 100%; aspect-ratio: 1.7; }
    .news-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-head:has(.filter-tabs) { flex-wrap: wrap; }
    .section-head .filter-tabs { margin-left: auto; }
    .result-title { gap: 8px 14px; }
}
@media (max-width: 480px) {
    .nc-menu-ready .catalog-logo { max-width: min(145px, 36vw); }
    .nc-menu-ready .brand { font-size: 20px; gap: 7px; min-width: 0; }
    .nc-menu-ready .language-select { max-width: 56px; padding-inline: 2px; }
    .nc-menu-ready .header-main { gap: 6px; }
    .editorial-four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .editorial-four .editorial-body { padding: 13px; }
    .editorial-four h3 { font-size: 14px; }
    .editorial-four .editorial-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .editorial-four .editorial-visual .label-badge { left: 10px; font-size: 9px; }
    .editorial-four .editorial-action { font-size: 10px; }
    .news-sidebar { grid-template-columns: minmax(0, 1fr); }
    .news-row { gap: 12px; }
    .news-row-image { width: 94px; aspect-ratio: 1; }
    .news-row h3 { font-size: 15px; }
    .news-row p { display: none; }
    .news-row > .nc-arrow { display: none; }
    .news-featured .story-card:first-child h3 { font-size: 23px; }
    .image-lightbox[open] { grid-template-columns: 44px minmax(0, 1fr) 44px; }
    .image-lightbox .lightbox-prev, .image-lightbox .lightbox-next { width: 36px; height: 44px; }
}

.lightbox-prev { grid-column: 1; grid-row: 1; }
.lightbox-next { grid-column: 3; grid-row: 1; }
/* Dedicated 404 page: native navigation, responsive and keyboard accessible. */
.nc-notfound { --nf-ink: var(--ink); --nf-muted: var(--muted); --nf-line: var(--line); --nf-accent: var(--accent); --nf-accent-ink: var(--accent-ink); --nf-accent-hover: var(--accent-hover); --nf-accent-soft: var(--accent-soft); --nf-bg: var(--panel); width: min(1120px, calc(100% - 40px)); margin: clamp(28px, 6vw, 72px) auto; color: var(--nf-ink); }
.nc-notfound-hero { display: grid; grid-template-columns: minmax(0, 1fr); text-align: center; align-items: center; gap: 24px; padding: clamp(24px, 5vw, 64px); border: 1px solid var(--nf-line); border-radius: 24px; background: var(--nf-bg); }
.nc-notfound-code { color: var(--nf-accent); font-size: clamp(88px, 14vw, 176px); font-weight: 850; line-height: 1; letter-spacing: -.06em; text-align: center; }
.nc-notfound-copy { min-width: 0; }
.nc-notfound h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; letter-spacing: -.025em; color: var(--nf-ink); }
.nc-notfound-copy > p { margin: 16px 0 24px; color: var(--nf-muted); line-height: 1.7; }
.nc-notfound-home { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 12px; background: var(--nf-accent); color: var(--nf-accent-ink); text-decoration: none; font-weight: 700; line-height: 1.4; }
.nc-notfound-home:hover { color: var(--nf-accent-ink); background: var(--nf-accent-hover); text-decoration: none; }
.nc-notfound-home:focus-visible { outline: 3px solid var(--nf-accent); outline-offset: 4px; }
.nc-notfound-home svg { display: block; flex: none; width: 20px; height: 20px; }
.nc-notfound-search { width: 100%; max-width: 520px; margin: 28px auto 0; }
.nc-notfound-search form { margin: 0; max-width: none; width: 100%; }
.nc-notfound-related { margin-top: 40px; }
.nc-notfound-related h2 { margin: 0 0 20px; font-size: 24px; line-height: 1.3; }
.nc-notfound-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) {
    .nc-notfound { width: calc(100% - 28px); margin: 24px auto; }
    .nc-notfound-hero { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 28px 18px; gap: 24px; }
    .nc-notfound-search { margin: 24px auto 0; }
    .nc-notfound-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) { .nc-notfound-grid { grid-template-columns: minmax(0, 1fr); } }
