/* =============================================================================
   iDocThis U — guides.css
   Guides & Downloads feature: library cards, download cards/chips, and the
   guide-page component vocabulary (steps, checklists, notes, roadmap, etc.).
   All colors/radii/shadows reference the :root tokens in theme.css.
   (Spec: iDocThisU-Guides-Downloads-Handoff.md)
   ============================================================================= */

/* ---------------------------------------------------------------- Landing — two path cards */
.sub-head {
    font-size: 15px; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: var(--ink-2);
}
.sub-note { font-size: 14.5px; font-weight: 600; color: var(--ink-3); margin: 6px 0 14px; }

.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }

.path {
    position: relative; display: block; overflow: hidden;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r-card); box-shadow: var(--sh-sm);
    padding: 28px; text-decoration: none; color: inherit;
    transition: transform .15s ease, box-shadow .2s ease;
}
.path::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: 5px; background: var(--grad);
}
.path:hover { transform: translateY(-3px); box-shadow: var(--sh); }

.path .icon-chip {
    width: 50px; height: 50px; border-radius: var(--r);
    background: var(--grad-soft); color: var(--violet-ink);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 14px;
}
.path .ey {
    font-size: 11.5px; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; color: var(--violet-ink); margin-bottom: 6px;
}
.path h3 { font-size: 23px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.path p  { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.path .more {
    font-size: 15px; font-weight: 800; color: var(--pink-ink);
    display: inline-flex; align-items: center; gap: 6px;
}
.path:hover .more { text-decoration: underline; }

/* ---------------------------------------------------------------- Landing — all-guides list */
.list-card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r-card); box-shadow: var(--sh-sm); overflow: hidden;
}
.art-row {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 16px 22px; border-bottom: 1px solid var(--line);
    transition: background .12s ease;
}
.art-row:last-child { border-bottom: 0; }
.art-row:hover { background: var(--surface); }
.art-row a.t {
    font-size: 16.5px; font-weight: 800; color: var(--ink); text-decoration: none;
}
.art-row a.t:hover { color: var(--violet-ink); text-decoration: underline; }
.art-row .rmeta { display: flex; align-items: center; gap: 14px; }
.art-row .rmeta .d { font-size: 13.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }

.dl-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 800; color: var(--pink-ink);
    background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-pill);
    padding: 6px 14px; text-decoration: none; white-space: nowrap;
    transition: border-color .15s ease, color .15s ease;
}
.dl-chip:hover { border-color: var(--violet); color: var(--violet-ink); }

/* ---------------------------------------------------------------- Library page */
.lib-hero { max-width: 880px; margin-inline: auto; text-align: center; }
.lib-hero h1 { font-size: clamp(36px, 5vw, 46px); font-weight: 800; letter-spacing: -.02em; margin: 10px 0 14px; }
.lib-hero .intro { font-size: 18px; font-weight: 600; color: var(--ink-2); max-width: 60ch; margin-inline: auto; }

.back-link {
    font-size: 14.5px; font-weight: 800; color: var(--pink-ink);
    text-decoration: none; white-space: nowrap;
}
.back-link:hover { color: var(--violet-ink); text-decoration: underline; }

.lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }

.gcard {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r-card); box-shadow: var(--sh-sm); padding: 28px;
    transition: transform .15s ease, box-shadow .2s ease;
}
.gcard::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: 5px; background: var(--grad);
}
.gcard:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.gcard .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.gcard .icon-chip {
    width: 48px; height: 48px; border-radius: var(--r);
    background: var(--grad-soft); color: var(--violet-ink);
    display: inline-flex; align-items: center; justify-content: center; font-size: 21px;
}
.gcard h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.gcard .desc { font-size: 15px; font-weight: 600; color: var(--ink-2); flex: 1; margin-bottom: 12px; }
.gcard .fmeta { font-size: 12.5px; font-weight: 800; color: var(--ink-3); white-space: nowrap; margin-bottom: 16px; }
.gcard .acts { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gcard .read {
    font-size: 15px; font-weight: 800; color: var(--pink-ink); text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}
.gcard .read:hover { text-decoration: underline; }

.btn-sm { padding: 9px 16px; font-size: 14.5px; min-height: 36px; }

/* ---------------------------------------------------------------- Guide page — chrome */
.guide-col { max-width: 824px; margin-inline: auto; padding-top: 40px; }

.g-back {
    display: inline-block; font-size: 14.5px; font-weight: 800;
    color: var(--pink-ink); text-decoration: none; margin-bottom: 18px;
}
.g-back:hover { color: var(--violet-ink); text-decoration: underline; }

.g-eyebrow {
    font-size: 12.5px; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; color: var(--violet-ink); margin-bottom: 10px;
}

.g-title {
    background: var(--grad-soft); border-radius: 18px;
    padding: 30px 32px; margin-bottom: 22px;
}
.g-title h1 {
    font-size: clamp(30px, 4.6vw, 40px); font-weight: 800;
    letter-spacing: -.03em; line-height: 1.12; text-wrap: balance; margin: 0 0 14px;
}
.g-title .g-intro {
    font-size: 15.5px; font-weight: 600; color: var(--ink-2);
    line-height: 1.65; margin: 0 0 16px; max-width: 64ch;
}
.g-stamp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.g-stamp .w {
    font-size: 13.5px; font-weight: 900;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.g-stamp .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink-soft); }
.g-stamp .site { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ink-3); }

/* ---------------------------------------------------------------- Download card */
.dl-card {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 18px; box-shadow: var(--sh); padding: 20px 24px; margin-bottom: 28px;
}
.dl-card .icon-chip {
    position: relative; width: 56px; height: 56px; border-radius: var(--r);
    background: var(--grad-soft); color: var(--violet-ink);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px; flex-shrink: 0;
}
.dl-card .icon-chip .fmt {
    position: absolute; right: -7px; bottom: -7px;
    font-size: 9px; font-weight: 900; letter-spacing: .04em; color: #fff;
    background: var(--violet); border-radius: 6px; padding: 2px 5px;
}
.dl-card .info { flex: 1; min-width: 180px; }
.dl-card .info .t { font-size: 16.5px; font-weight: 800; color: var(--ink); }
.dl-card .info .m { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-top: 2px; }

/* ---------------------------------------------------------------- Guide page — body blocks */
.g-body .lead { font-size: 18.5px; font-weight: 600; line-height: 1.6; margin-bottom: 18px; }
.g-body h2 { font-size: 27px; font-weight: 800; margin: 36px 0 12px; letter-spacing: -.01em; }
.g-body h3 { font-size: 19px; font-weight: 800; margin: 22px 0 8px; }
.g-body p  { font-size: 17px; font-weight: 500; line-height: 1.65; text-wrap: pretty; margin-bottom: 14px; }
.g-body strong { color: var(--violet-ink); font-weight: 800; }

.g-kicker {
    font-size: 12.5px; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; color: var(--violet-ink); margin: 30px 0 10px;
}

/* Bullet list with gradient dots */
.g-list { list-style: none; padding: 0; margin: 0 0 18px; }
.g-list li {
    position: relative; padding-left: 24px; margin-bottom: 10px;
    font-size: 16.5px; font-weight: 500; line-height: 1.6;
}
.g-list li::before {
    content: ""; position: absolute; left: 4px; top: .58em;
    width: 8px; height: 8px; border-radius: 50%; background: var(--grad);
}

/* Numbered step cards */
.g-steps { list-style: none; counter-reset: gstep; padding: 0; margin: 0 0 22px; }
.g-steps > li {
    counter-increment: gstep;
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r); box-shadow: var(--sh-sm);
    padding: 20px 22px; margin-bottom: 14px;
}
.g-steps > li::before {
    content: counter(gstep); flex-shrink: 0;
    width: 34px; height: 34px; border-radius: 11px;
    background: var(--grad); color: #fff;
    font-size: 16px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}
.g-steps .st { flex: 1; }
.g-steps .st h3 { margin: 4px 0 8px; font-size: 18px; font-weight: 800; }
.g-steps .st p { font-size: 16px; margin-bottom: 10px; }
.g-steps .st p:last-child { margin-bottom: 0; }

/* Numbered section headers (long step sections, full-width body) */
.steps-wrap { counter-reset: gsection; }
.g-stephead {
    counter-increment: gsection;
    display: flex; align-items: center; gap: 14px;
    font-size: 23px; font-weight: 800; margin: 38px 0 14px;
}
.g-stephead::before {
    content: counter(gsection); flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 12px;
    background: var(--grad); color: #fff;
    font-size: 18px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Indented sub-bullets */
.g-sub { list-style: none; padding: 0 0 0 12px; margin: 0 0 16px; }
.g-sub li {
    position: relative; padding-left: 22px; margin-bottom: 9px;
    font-size: 15.5px; font-weight: 500; color: var(--ink-2); line-height: 1.6;
}
.g-sub li::before {
    content: ""; position: absolute; left: 4px; top: .6em;
    width: 7px; height: 7px; background: var(--violet); transform: rotate(45deg); border-radius: 1.5px;
}
.g-sub li strong, .g-sub li b { color: var(--ink); font-weight: 800; }

/* Printable checklist */
.g-check {
    list-style: none; padding: 18px 22px; margin: 0 0 20px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.g-check li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 15.5px; font-weight: 600; margin-bottom: 10px; line-height: 1.5;
}
.g-check li:last-child { margin-bottom: 0; }
.g-check li .box {
    flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
    background: #fff; border: 2px solid var(--line-2); border-radius: 6px;
}
.g-check li.grp {
    display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--violet-ink); margin: 14px 0 8px;
}
.g-check li.grp:first-child { margin-top: 0; }
.g-check.cols { column-count: 2; column-gap: 32px; }
.g-check.cols li { break-inside: avoid; }
.g-check.cols li.grp { column-span: all; }

/* Roadmap flow */
.g-flow {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    margin: 18px 0 22px;
}
.g-flow .node {
    font-size: 13.5px; font-weight: 800; color: var(--ink);
    background: #fff; border: 1.5px solid var(--line-2);
    border-radius: var(--r-pill); padding: 8px 16px; white-space: nowrap;
}
.g-flow .node.end { background: var(--grad); border-color: transparent; color: #fff; }
.g-flow .arr { color: var(--ink-3); font-weight: 800; }

/* Callout note */
.g-note {
    display: flex; gap: 14px; align-items: flex-start;
    background: #efe9f8; border: 1px solid #ddd2f0; border-radius: var(--r);
    padding: 16px 20px; margin: 0 0 20px;
}
.g-note .ic { font-size: 22px; line-height: 1; color: var(--violet-ink); flex-shrink: 0; margin-top: 2px; }
.g-note p { font-size: 15px; font-weight: 600; line-height: 1.6; margin: 0; }
.g-note p strong, .g-note p b { color: var(--violet-ink); }
.g-note.warn { background: #fbe6f0; border-color: #f4cfe2; }
.g-note.warn .ic { color: var(--pink-ink); }
.g-note.warn p strong, .g-note.warn p b { color: var(--pink-ink); }

/* Contact / resource mini-cards */
.g-contacts { display: grid; gap: 14px; margin: 0 0 22px; }
.g-contacts .gc {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r); box-shadow: var(--sh-sm); padding: 16px 20px;
}
.g-contacts .gc h4 { font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.g-contacts .gc p { font-size: 15px; font-weight: 500; color: var(--ink-2); margin: 0; line-height: 1.6; }
.g-contacts .gc a { color: var(--blue-ink); font-weight: 700; word-break: break-word; }

/* Fill-in summary table */
.g-summary { width: 100%; border-collapse: collapse; margin: 0 0 22px; }
.g-summary th, .g-summary td { border: 1px solid var(--line-2); }
.g-summary th {
    width: 36%; text-align: left; vertical-align: top;
    background: var(--surface); font-size: 15px; font-weight: 800;
    padding: 14px 16px;
}
.g-summary td { padding: 14px 16px; }
.g-summary td .fill {
    display: block; min-height: 22px; border-bottom: 1.5px dashed var(--line-2);
    margin-bottom: 8px;
}
.g-summary td .fill:last-child { margin-bottom: 0; }

/* Closing CTA */
.g-callout {
    text-align: center; background: var(--grad-soft);
    border-radius: 20px; padding: 36px 28px; margin: 40px 0 32px;
}
.g-callout h2 { font-size: 25px; font-weight: 800; margin: 0 0 8px; }
.g-callout p { font-size: 16px; font-weight: 600; color: var(--ink-2); margin: 0 0 18px; }
.g-callout .acts { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Related guides */
.g-related-head {
    font-size: 13px; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px;
}
.g-rel {
    display: flex; align-items: center; gap: 16px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r); box-shadow: var(--sh-sm);
    padding: 14px 18px; margin-bottom: 12px;
    text-decoration: none; color: inherit;
    transition: transform .15s ease, border-color .15s ease;
}
.g-rel:hover { transform: translateX(3px); border-color: var(--violet); }
.g-rel .icon-chip {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: var(--grad-soft); color: var(--violet-ink);
    display: inline-flex; align-items: center; justify-content: center; font-size: 19px;
}
.g-rel .tt { flex: 1; }
.g-rel .tt .t { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.g-rel .tt .s { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.g-rel .arr { color: var(--ink-3); font-size: 18px; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 760px) {
    .paths, .lib-grid { grid-template-columns: 1fr; }
    .art-row { flex-wrap: wrap; }
    .art-row .rmeta { width: 100%; justify-content: space-between; }
}
@media (max-width: 620px) {
    .dl-card .btn { width: 100%; }
    .g-check.cols { column-count: 1; }
    .g-summary, .g-summary tbody, .g-summary tr, .g-summary th, .g-summary td { display: block; width: 100%; }
    .g-summary th { border-bottom: 0; }
    .g-summary tr { margin-bottom: 10px; }
    .guide-col { padding-top: 28px; }
}
