/* guides.css — reading/article styles for the public CONTENT pages
   (guides, glossary, contact). Those pages are built on the Trezo "finance"
   landing theme (static/landing/css/style.css) via website/base_marketing.html,
   so this file only adds the article/reading layer on top: prose typography,
   tables, cards and the draft/review notices. Values from Trezo --bs-* tokens.

   Chrome (navbar, footer, page banner) belongs to the theme + landing-trezo.css;
   nothing here should style it. */

/* Reading measure for content (narrower than the wide navbar/footer container). */
.vodic-container {
    max-width: 760px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* Article CTA button. */
.vodic-cta {
    display: inline-block;
    background: var(--bs-primary, #605DFF);
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: filter .15s ease;
}
.vodic-cta:hover { filter: brightness(1.07); }

/* ---- breadcrumb ---- */
.vodic-breadcrumb {
    margin-top: 22px;
    font-size: .85rem;
    color: var(--bs-secondary-color, #6b7280);
}
.vodic-breadcrumb a { color: var(--bs-secondary-color, #6b7280); text-decoration: none; }
.vodic-breadcrumb a:hover { color: var(--bs-primary, #605DFF); }
.vodic-breadcrumb span[aria-hidden] { margin-inline: 7px; }

/* ---- hub hero + pillars ---- */
.vodic-hero { padding: 18px 0 8px; }
.vodic-hero h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.vodic-hero__lead { font-size: 1.1rem; color: var(--bs-secondary-color, #4b5563); margin: 0; }
.vodic-hero__glossary { margin: 14px 0 0; font-size: .95rem; }
.vodic-hero__glossary a { color: var(--bs-primary, #605DFF); text-decoration: none; font-weight: 550; }
.vodic-hero__glossary a:hover { text-decoration: underline; }

.vodic-pillar { margin-top: 40px; }
.vodic-pillar__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bs-primary, #605DFF);
}
.vodic-pillar__title a { color: inherit; text-decoration: none; }
.vodic-pillar__title a:hover { color: var(--bs-primary, #605DFF); }
.vodic-cardgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
/* Guide card. `.vodic-card-link` is the current markup (a link filling a Bootstrap
   grid column on the /vodic/ hub); `.vodic-card a` is kept for any older listing. */
.vodic-card-link,
.vodic-card a {
    display: block;
    position: relative;
    height: 100%;
    padding: 20px 22px;
    border: 1px solid var(--bs-border-color, #e5e7eb);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: var(--bs-body-bg, #fff);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.vodic-card-link:hover,
.vodic-card a:hover {
    border-color: var(--bs-primary, #605DFF);
    box-shadow: 0 6px 20px rgba(96, 93, 255, .12);
    transform: translateY(-2px);
}
.vodic-card__title { display: block; font-weight: 650; font-size: 1.02rem; color: var(--bs-primary, #605DFF); }
.vodic-card__desc { display: block; margin-top: 5px; font-size: .9rem; color: var(--bs-secondary-color, #6b7280); }

/* ---- draft / review notices ---- */
.vodic-badge-draft {
    position: absolute; top: 12px; right: 14px;
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: #92400e; background: #fef3c7; padding: 2px 7px; border-radius: 5px;
}
.vodic-draftnote {
    margin-top: 20px; font-size: .85rem; color: #92400e;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 10px 14px;
}
.vodic-draftbanner {
    margin: 22px 0 0; padding: 14px 18px;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
    color: #92400e; font-size: .92rem;
}

/* ---- article ---- */
.vodic-article { padding: 8px 0 24px; }
.vodic-article__head h1 { font-size: 2.15rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 20px 0 8px; }
.vodic-article__meta { font-size: .85rem; color: var(--bs-secondary-color, #6b7280); margin: 0 0 8px; }
.vodic-article__meta--review {
    display: inline-block;
    color: #92400e; background: #fffbeb; border: 1px solid #fde68a;
    border-radius: 7px; padding: 5px 11px;
}

.vodic-content { font-size: 1.06rem; line-height: 1.7; }
.vodic-content h2 { font-size: 1.5rem; font-weight: 700; margin: 34px 0 12px; letter-spacing: -0.01em; }
.vodic-content h3 { font-size: 1.2rem; font-weight: 650; margin: 26px 0 10px; }
.vodic-content p { margin: 0 0 16px; }
.vodic-content ul, .vodic-content ol { margin: 0 0 16px; padding-left: 24px; }
.vodic-content li { margin-bottom: 6px; }
.vodic-content a { color: var(--bs-primary, #605DFF); text-decoration: underline; text-underline-offset: 2px; }
.vodic-content strong { font-weight: 700; }

.vodic-content blockquote {
    margin: 20px 0; padding: 12px 18px;
    border-left: 4px solid var(--bs-primary, #605DFF);
    background: var(--bs-tertiary-bg, #f8f9fb);
    border-radius: 0 8px 8px 0;
}
.vodic-content blockquote p:last-child { margin-bottom: 0; }

.vodic-content code {
    background: var(--bs-tertiary-bg, #f1f2f6);
    padding: 1px 6px; border-radius: 5px;
    font-size: .92em; color: var(--bs-primary, #605DFF);
}

/* Responsive tables without a wrapper: the raw markdown <table> scrolls
   horizontally on narrow screens instead of overflowing the page. */
.vodic-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: .95rem;
}
.vodic-content thead th {
    text-align: left;
    background: var(--bs-tertiary-bg, #f8f9fb);
    border-bottom: 2px solid var(--bs-border-color, #e5e7eb);
}
.vodic-content th, .vodic-content td {
    padding: 9px 12px;
    border: 1px solid var(--bs-border-color, #e5e7eb);
    vertical-align: top;
}

/* ---- cta box + related ---- */
.vodic-cta-box {
    margin: 34px 0 8px; padding: 22px;
    text-align: center;
    background: var(--bs-tertiary-bg, #f8f9fb);
    border: 1px solid var(--bs-border-color, #e5e7eb);
    border-radius: 12px;
}
/* Starter-catalog reassurance under the sign-up button (LUP-254). */
.vodic-cta-box__note {
    margin: 14px 0 0;
    font-size: 0.9rem;
    color: var(--bs-secondary-color, #6b7280);
}
.vodic-related { margin-top: 40px; border-top: 1px solid var(--bs-border-color, #e5e7eb); padding-top: 22px; }
.vodic-related h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 12px; }
.vodic-related ul { list-style: none; margin: 0; padding: 0; }
.vodic-related li { margin-bottom: 8px; }
.vodic-related a { color: var(--bs-primary, #605DFF); text-decoration: none; font-weight: 550; }
.vodic-related a:hover { text-decoration: underline; }

/* ---- contact form ---- */
.pub-form { max-width: 560px; margin: 8px 0 4px; }
.pub-field { margin-bottom: 18px; display: flex; flex-direction: column; }
.pub-field label { font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.pub-field input, .pub-field textarea {
    font: inherit; padding: 10px 12px;
    border: 1px solid var(--bs-border-color, #d1d5db); border-radius: 8px;
    background: var(--bs-body-bg, #fff); color: var(--bs-body-color, #1f2937);
}
.pub-field input:focus, .pub-field textarea:focus {
    outline: none; border-color: var(--bs-primary, #605DFF);
    box-shadow: 0 0 0 3px rgba(96, 93, 255, .15);
}
.pub-field textarea { resize: vertical; }
.pub-field__err, .pub-form__err { color: #b91c1c; font-size: .85rem; margin-top: 5px; }
/* Submit reuses .vodic-cta for the primary look; only reset the native <button>
   chrome here (font-family so it inherits Inter, but keep vodic-cta's weight). */
.pub-form__submit { border: none; cursor: pointer; font-family: inherit; margin-top: 4px; }
.pub-form__alt { margin-top: 18px; font-size: .9rem; color: var(--bs-secondary-color, #6b7280); }
/* honeypot — hidden from humans, still submitted by bots */
.pub-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* flash messages */
.pub-messages { margin: 18px 0; }
.pub-message { padding: 12px 16px; border-radius: 8px; margin: 0 0 10px; }
.pub-message--success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.pub-message--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.pub-message--info { background: var(--bs-tertiary-bg, #f8f9fb); border: 1px solid var(--bs-border-color, #e5e7eb); }

@media (max-width: 600px) {
    .vodic-hero h1, .vodic-article__head h1 { font-size: 1.7rem; }
    .vodic-content { font-size: 1rem; }
}

/* Long unbreakable strings in article prose (URLs, law references, codes) overflow
   a phone viewport without enlarging their own box — so they never show up as an
   oversized element, only as a wider document. Let them wrap. */
.vodic-content { overflow-wrap: break-word; }
.vodic-content pre { white-space: pre-wrap; word-break: break-word; }
.vodic-content a { word-break: break-word; }

/* -------------------------------------------------------------------------
   Public KPD finder (/tools/kpd/ — website/templates/website/tools/kpd.html).
   Self-contained; brand indigo pulled from the landing theme's primary.
   ------------------------------------------------------------------------- */
/* Layout: one centered, comfortable measure so lines don't run full width and
   the content sits balanced under the (centered) page banner. */
.kpd-section { padding: 56px 0 96px; }
.kpd-col { max-width: 840px; }          /* caps the col-12; centered by the row */

.kpd-intro { margin-bottom: 30px; }
.kpd-intro p { font-size: 17px; line-height: 1.7; }
.kpd-intro p:last-child { margin-bottom: 0; }
.kpd-disclaimer { font-size: 14px; color: #667085; }

/* The tool reads as one focal card (like the contact form), not loose fields
   floating under the banner. */
.kpd-tool { margin: 0 0 28px; }
.kpd-card {
    background: #fff; border: 1px solid #eaecf0; border-radius: 16px;
    padding: 28px 28px 24px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); text-align: left;
}
@media (max-width: 575px) { .kpd-card { padding: 20px 18px; } }
.kpd-tool__label { display: block; font-weight: 600; margin-bottom: 8px; }
.kpd-tool__input {
    width: 100%; padding: 14px 16px; border: 1px solid #d0d5dd; border-radius: 10px;
    font: inherit; line-height: 1.6; resize: vertical; margin-bottom: 16px;
}
.kpd-tool__input:focus { outline: none; border-color: #605DFF; box-shadow: 0 0 0 3px rgba(96,93,255,.15); }

.kpd-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 18px; }
.kpd-examples__label { font-size: 14px; color: #667085; }
.kpd-chip {
    border: 1px solid #d0d5dd; background: #fff; color: #344054; border-radius: 999px;
    padding: 5px 12px; font-size: 14px; cursor: pointer; transition: border-color .15s, color .15s;
}
.kpd-chip:hover { border-color: #605DFF; color: #605DFF; }

.kpd-notice, .kpd-truncated {
    background: #f4f3ff; border: 1px solid #e0deff; border-radius: 12px;
    padding: 18px 20px; margin: 20px 0;
}
.kpd-notice .default-btn { margin-top: 8px; }

.kpd-results { margin: 28px 0; }
.kpd-results > h2 { font-size: 22px; margin-bottom: 16px; }
.kpd-result {
    border: 1px solid #eaecf0; border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
}
.kpd-result__query { font-weight: 600; margin: 0 0 10px; }
.kpd-result__list { list-style: none; padding: 0; margin: 0; }
.kpd-result__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 4px 0; }
.kpd-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600;
    background: #605DFF; color: #fff; border: 0; border-radius: 6px; padding: 2px 8px;
    white-space: nowrap; cursor: pointer; transition: background-color .15s;
}
.kpd-code:hover { background: #4b48e0; }
.kpd-code.copied { background: #12b76a; }              /* success green */
.kpd-code.copied::after { content: " ✓"; }
.kpd-name { color: #475467; }
.kpd-result__none { color: #667085; font-style: italic; margin: 0; }
/* Honest low-confidence nudge under a weak result → the AI-tier upsell (LUP-262). */
.kpd-result__uncertain { font-size: 14px; color: #667085; margin: 8px 0 0; }
.kpd-result__uncertain a { color: #605DFF; font-weight: 600; }

/* Profession mode (LUP-263): the trade picker is a single-line input, and the
   paste box becomes a collapsed secondary affordance. */
.kpd-tool__input--single { min-height: 0; height: auto; }
.kpd-paste { margin: 0 0 28px; }
.kpd-paste > summary {
    cursor: pointer; font-weight: 600; color: #475467; font-size: 15px;
    padding: 6px 0; list-style: none;
}
.kpd-paste > summary::-webkit-details-marker { display: none; }
.kpd-paste > summary:hover { color: #605DFF; }
.kpd-paste[open] > summary { margin-bottom: 14px; }

/* The payoff block: a trade's whole service list, each line KPD-tagged. */
.kpd-catalog { margin: 28px 0; }
.kpd-catalog > h2 { font-size: 22px; margin-bottom: 8px; }
.kpd-catalog__lead { color: #475467; margin-bottom: 18px; }
/* Wide content scrolls inside its own container — the page never scrolls sideways. */
.kpd-catalog__scroll { overflow-x: auto; }
.kpd-catalog__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.kpd-catalog__table th, .kpd-catalog__table td {
    text-align: left; padding: 10px 12px; border-bottom: 1px solid #eaecf0;
    vertical-align: top;
}
.kpd-catalog__table th {
    font-size: 13px; text-transform: uppercase; letter-spacing: .02em; color: #667085;
}
.kpd-catalog__table .kpd-num { text-align: right; white-space: nowrap; }
.kpd-catalog__name { display: block; font-weight: 600; color: #101828; }
.kpd-catalog__unit { font-size: 13px; color: #667085; }
.kpd-catalog__official { display: block; font-size: 13px; color: #667085; margin-top: 2px; }
.kpd-catalog__codes { margin-top: 4px; }
.kpd-catalog__alts {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: 14px; color: #667085; margin: 18px 0 0;
}

/* Results action bar: primary "save to account" + secondary copy/CSV (LUP-262). */
.kpd-results__actions {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin: 22px 0 8px;
}
.kpd-save-form { margin: 0; }
.kpd-btn-secondary {
    border: 1px solid #d0d5dd; background: #fff; color: #344054;
    border-radius: 8px; padding: 9px 16px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: border-color .15s, color .15s;
}
.kpd-btn-secondary:hover { border-color: #605DFF; color: #605DFF; }
.kpd-btn-secondary.copied { border-color: #12b76a; color: #12b76a; }
.kpd-btn-secondary.copied::after { content: " ✓"; }
.kpd-results__save-note { font-size: 14px; color: #667085; margin: 0 0 20px; }

.kpd-cta {
    background: #f9fafb; border: 1px solid #eaecf0; border-radius: 16px;
    padding: 28px 30px; margin: 32px 0;
}
.kpd-cta h2 { font-size: 22px; margin-bottom: 10px; }
.kpd-cta p { color: #475467; margin-bottom: 18px; }

.kpd-faq { margin-top: 40px; }
.kpd-faq > h2 { font-size: 24px; margin-bottom: 20px; }
.kpd-faq__item { margin-bottom: 22px; }
.kpd-faq__item h3 { font-size: 18px; margin-bottom: 6px; }
.kpd-faq__item p { color: #475467; line-height: 1.7; margin: 0; }
.kpd-faq__more { margin-top: 24px; }

/* NKD activity chooser (LUP-271): shown when no curated trade matched. The matcher
   is not reliable enough to assert here, so the visitor picks — styled as a list of
   choices, deliberately not as a result. */
.kpd-chooser { margin: 28px 0; }
.kpd-chooser > h2 { font-size: 22px; margin-bottom: 8px; }
.kpd-chooser__list { list-style: none; padding: 0; margin: 0 0 14px; }
.kpd-chooser__list li { margin-bottom: 8px; }
.kpd-chooser__item {
    display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left;
    border: 1px solid #eaecf0; background: #fff; border-radius: 10px;
    padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.kpd-chooser__item:hover { border-color: #605DFF; background: #f9f9ff; }
.kpd-chooser__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600;
    color: #605DFF; white-space: nowrap;
}
.kpd-chooser__name { color: #344054; }

/* ── /vodic/struke/ — the per-profession KPD guide DIRECTORY (LUP-274) ──────────
   Denser than the hub's guide cards on purpose: this page is a lookup table that
   grows toward a few hundred rows, so trades are compact rows in a responsive
   grid, grouped by sector. Values from the same --bs-* tokens as the rest of the
   file; no new framework, nothing here styles the theme chrome. */

/* Filter + sector jump-nav. */
.struke-toolbar { margin: 32px 0 8px; }
.struke-filter { position: relative; display: block; max-width: 520px; margin: 0 auto; }
.struke-filter__icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #98a2b3; font-size: 18px; pointer-events: none;
}
.struke-filter__input {
    width: 100%; border: 1px solid #eaecf0; border-radius: 10px;
    padding: 12px 16px 12px 42px; font-size: 15px; background: #fff; color: #344054;
}
.struke-filter__input:focus {
    outline: none; border-color: var(--bs-primary, #605DFF);
    box-shadow: 0 0 0 3px rgba(96, 93, 255, .12);
}
.struke-jump {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px;
}
.struke-jump__chip {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid #eaecf0; border-radius: 999px; background: #fff;
    padding: 6px 13px; font-size: 13.5px; color: #475467; text-decoration: none;
    transition: border-color .15s, color .15s;
}
.struke-jump__chip:hover { border-color: var(--bs-primary, #605DFF); color: var(--bs-primary, #605DFF); }
.struke-jump__n { color: #98a2b3; font-size: 12.5px; }

/* Sector group. `scroll-margin-top` keeps the heading clear of the sticky navbar
   when a jump chip lands on it. */
.struke-sector { margin-top: 40px; scroll-margin-top: 100px; }
.struke-sector__title {
    font-size: 20px; margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 1px solid #eaecf0;
}
.struke-sector__n { color: #98a2b3; font-size: 14px; font-weight: 500; }

.struke-grid {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.struke-item {
    display: block; border: 1px solid #eaecf0; border-radius: 10px;
    background: #fff; padding: 13px 15px; text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.struke-item:hover {
    border-color: var(--bs-primary, #605DFF);
    box-shadow: 0 4px 14px rgba(16, 24, 40, .06);
}
.struke-item__label {
    display: block; font-weight: 600; font-size: 15px; color: var(--bs-primary, #605DFF);
}
.struke-item__desc {
    display: block; margin-top: 4px; font-size: 13.5px; color: #667085; line-height: 1.5;
}
.struke-empty { text-align: center; color: #667085; margin: 28px 0 0; }

/* Fallback CTA into the KPD finder for trades with no guide yet. */
.struke-fallback {
    margin-top: 48px; background: #f9fafb; border: 1px solid #eaecf0;
    border-radius: 16px; padding: 28px 30px;
}
.struke-fallback h2 { font-size: 22px; margin-bottom: 10px; }
.struke-fallback p { color: #475467; margin-bottom: 18px; }

/* Directory tile on the /vodic/ hub (stands in for the whole series). */
.struke-tile {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    border: 1px solid #eaecf0; border-radius: 12px; background: #f9f9ff;
    padding: 18px 22px; margin-bottom: 20px;
    transition: border-color .15s, box-shadow .15s;
}
.struke-tile:hover {
    border-color: var(--bs-primary, #605DFF);
    box-shadow: 0 4px 14px rgba(16, 24, 40, .06);
}
.struke-tile__title { display: block; font-weight: 650; font-size: 1.02rem; color: var(--bs-primary, #605DFF); }
.struke-tile__desc { display: block; margin-top: 5px; font-size: .9rem; color: #667085; }
.struke-tile__go { color: var(--bs-primary, #605DFF); font-size: 20px; line-height: 1; }

/* Sibling-trades block on a profession guide (below the article). */
.struke-siblings__all { margin: 12px 0 0; font-size: 14px; }
