/* Generated by _scripts/build_pages.py from _scripts/page_css.py - do not edit directly. */

/* ---- Page frame ---- */
body { display: flex; flex-direction: column; }
.page-wrap { max-width: 960px; margin: 0 auto; padding: 0 2rem; position: relative; }
.page-wrap.wide { max-width: 1200px; }
.tool-hero .intro, .page-section li, .page-section p { overflow-wrap: anywhere; }
main { flex: 1 0 auto; padding-bottom: 3.5rem; }

/* Header band: breadcrumb, H1, intro and page actions */
.page-band {
    background: var(--surface-1);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0 1.75rem;
    margin-bottom: 2rem;
    background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
    background-size: 22px 22px;
    background-position: -11px -11px;
}

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; border-radius: 4px; }
.breadcrumb a:hover { color: var(--accent-text); text-decoration: underline; }
.breadcrumb .crumb-sep { display: inline-flex; color: var(--border-strong); }
.breadcrumb [aria-current] { color: var(--text-primary); font-weight: 600; }

.tool-hero { display: flex; align-items: flex-start; gap: 1.1rem; }
.tool-hero-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--appbar-bg);
    color: var(--teal-300);
    border: 1px solid var(--appbar-border);
    box-shadow: var(--shadow-md), inset 0 -3px 0 var(--amber);
}
.tool-hero-icon .ic { width: 26px; height: 26px; }
.tool-hero-text { flex: 1; min-width: 0; }
.tool-hero h1 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin: 0.15rem 0 0.5rem; text-wrap: balance; }
.tool-hero .intro { color: var(--text-secondary); max-width: 72ch; margin-bottom: 0.85rem; font-size: 1rem; }
.tool-hero .intro + .intro { margin-top: -0.25rem; }
.tool-hero-actions { display: flex; flex-direction: column; gap: 0.5rem; flex-shrink: 0; }
.tool-hero-actions .btn { min-height: 40px; font-size: 0.86rem; justify-content: flex-start; }
.tool-hero-actions .ic { width: 18px; height: 18px; }
.fav-toggle .ic { fill: transparent; color: var(--amber-text); transition: fill 0.15s ease; }
.fav-toggle[aria-pressed="true"] { background: var(--amber-wash); border-color: var(--amber-line); color: var(--amber-text); }
.fav-toggle[aria-pressed="true"] .ic { fill: var(--amber); }

.badges { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; padding: 0.22rem 0.65rem; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-secondary); background: var(--surface-1); }
.badge .ic-sm { width: 15px; height: 15px; }
.badge.ok { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-wash); }
.badge.lib { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, transparent); background: var(--info-wash); }
.badge.net { color: var(--amber-text); border-color: var(--amber-line); background: var(--amber-wash); }

/* ---- Tool workspace ---- */
.tool-panel {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.tool-panel::before { content: ''; display: block; height: 4px; background: linear-gradient(90deg, var(--accent) 0 82%, var(--amber) 82% 100%); }
.tool-panel > .modal-body { padding: 1.75rem; }

.net-note { border: 1px solid var(--amber-line); background: var(--amber-wash); border-radius: var(--radius-md); padding: 0.85rem 1.1rem; color: var(--text-primary); font-size: 0.9rem; margin-bottom: 2rem; }

/* ---- Documentation below the tool ---- */
.doc-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.page-wrap:not(.wide) .doc-layout { grid-template-columns: 1fr; gap: 1.25rem; }
.doc-toc { position: sticky; top: calc(var(--appbar-h) + 1.25rem); }
.doc-toc-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.5rem; }
.doc-toc ul { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--border); }
.doc-toc a { display: block; padding: 0.3rem 0 0.3rem 0.85rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-secondary); text-decoration: none; font-size: 0.88rem; }
.doc-toc a:hover { color: var(--text-primary); border-left-color: var(--amber); }
.page-wrap:not(.wide) .doc-toc { position: static; }
.page-wrap:not(.wide) .doc-toc ul { display: flex; flex-wrap: wrap; gap: 0.4rem; border: 0; }
.page-wrap:not(.wide) .doc-toc a { border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.75rem; margin: 0; background: var(--surface-1); }
.page-wrap:not(.wide) .doc-toc a:hover { border-color: var(--accent-line); }
.doc-body { min-width: 0; max-width: 74ch; }

.page-section { margin-bottom: 2.5rem; }
.page-section h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 0.6rem; }
.page-section h2::before { content: ''; width: 6px; height: 1.1em; border-radius: 3px; background: var(--amber); flex-shrink: 0; }
.page-section h3 { font-size: 1.02rem; font-weight: 650; margin: 1.25rem 0 0.35rem; }
.page-section p, .page-section li { color: var(--text-secondary); font-size: 0.97rem; line-height: 1.7; }
.page-section p + p { margin-top: 0.65rem; }
.page-section a, .summary-box a { color: var(--accent-text); }
.page-section ol, .page-section ul { padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.page-section ol li::marker { color: var(--accent-text); font-weight: 700; }
.page-section code, .example-block code { font-family: var(--font-mono); font-size: 0.84em; background: var(--surface-3); border-radius: 5px; padding: 0.1rem 0.35rem; color: var(--text-primary); }
.example-block { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.8rem 1rem; margin-top: 0.6rem; }
.example-block .label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 0.35rem; }
.example-block pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-primary); }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.65rem; }
.related-grid a { display: flex; align-items: center; gap: 0.7rem; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.7rem 0.85rem; text-decoration: none; color: var(--text-primary); font-size: 0.9rem; font-weight: 600; line-height: 1.3; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.related-grid a:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.related-grid .rel-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; }
.related-grid .rel-text { min-width: 0; }
.related-grid a small { display: block; color: var(--text-muted); font-size: 0.76rem; font-weight: 500; margin-top: 0.1rem; }
.more-link { margin-top: 0.9rem; }
.more-link a { font-size: 0.9rem; font-weight: 600; color: var(--accent-text); }

/* ---- Category pages ---- */
.cat-bar { display: flex; gap: 0.45rem; overflow-x: auto; scrollbar-width: none; margin-top: 1.25rem; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); text-decoration: none; padding: 0.35rem 0.85rem 0.35rem 0.65rem; border: 1px solid var(--border); border-radius: 999px; min-height: 36px; background: var(--surface-1); }
.cat-bar a:hover { color: var(--text-primary); border-color: var(--border-strong); }
.cat-bar a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.col-group > p { max-width: 75ch; }
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.col-grid .col-tile { display: flex; flex-direction: column; gap: 0.5rem; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.05rem; text-decoration: none; color: var(--text-primary); box-shadow: var(--shadow-sm); transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.col-tile:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.col-tile-head { display: flex; align-items: center; gap: 0.65rem; }
.col-tile .tool-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; }
.col-tile:hover .tool-icon { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.col-tile-title { font-family: var(--font-display); font-weight: 650; font-size: 1rem; line-height: 1.3; }
.col-tile-desc { color: var(--text-secondary); font-size: 0.87rem; flex: 1; line-height: 1.5; }
.col-tile .net-flag { align-self: flex-start; }

/* ---- Guides ---- */
.guide-meta { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 1rem; }
.guide-meta a { color: var(--text-secondary); }
.guide-cta { margin-bottom: 0.25rem; }
.guide-body { max-width: 74ch; }
.guide-body h2 { margin-top: 2rem; }
.guide-body p, .guide-body li { font-size: 1rem; line-height: 1.72; }
.guide-body pre { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.9rem 1rem; overflow-x: auto; margin: 0.6rem 0 1rem; }
.guide-body pre code { background: none; border: 0; padding: 0; font-size: 0.82rem; line-height: 1.6; white-space: pre; }
.guide-body ol, .guide-body ul { margin: 0.4rem 0 1rem; }

/* ---- Privacy page ---- */
.summary-box { background: var(--surface-1); border: 1px solid var(--accent-line); border-radius: var(--radius); padding: 1.15rem 1.35rem; margin-bottom: 2.5rem; box-shadow: var(--shadow-sm); }
.summary-box h2 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.summary-box ul { padding-left: 1.2rem; display: grid; gap: 0.45rem; color: var(--text-secondary); font-size: 0.96rem; }
.consent-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }

/* ---- 404 ---- */
.notfound-code { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.notfound-code b { color: var(--amber-text); }
.notfound h1 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: 0.6rem; }
.notfound .intro { color: var(--text-secondary); margin-bottom: 1.25rem; max-width: 62ch; }
.notfound-links { margin-bottom: 1.25rem; }
.notfound-cats { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.notfound-cats a { color: var(--text-secondary); }

@media (max-width: 900px) {
    .doc-layout { grid-template-columns: 1fr; gap: 1.25rem; }
    .doc-toc { position: static; }
    .doc-toc ul { display: flex; flex-wrap: wrap; gap: 0.4rem; border: 0; }
    .doc-toc a { border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.75rem; margin: 0; background: var(--surface-1); }
    .tool-hero { flex-wrap: wrap; }
    .tool-hero-actions { flex-direction: row; flex-wrap: wrap; width: 100%; padding-left: calc(52px + 1.1rem); }
}

@media (max-width: 640px) {
    .nav-menu > summary .nav-menu-label { display: inline; font-size: 0.88rem; }
    .page-wrap { padding: 0 1rem; }
    .page-band { padding: 1rem 0 1.25rem; margin-bottom: 1.25rem; }
    .tool-hero { gap: 0.8rem; }
    .tool-hero-icon { width: 42px; height: 42px; border-radius: 12px; }
    .tool-hero-icon .ic { width: 22px; height: 22px; }
    .tool-hero h1 { font-size: 1.45rem; }
    .tool-hero .intro { font-size: 0.94rem; }
    .tool-hero-actions { padding-left: 0; }
    .tool-hero-actions .btn { flex: 1 1 auto; justify-content: center; }
    .tool-panel { border-radius: var(--radius); margin-left: -0.25rem; margin-right: -0.25rem; }
    .tool-panel > .modal-body { padding: 1.1rem; }
    .page-section h2 { font-size: 1.2rem; }
}

@media (max-width: 340px) {
    .nav-menu > summary .nav-menu-label { display: none; }
}
