/*
    The article shell — _ArticleLayout.cshtml: the /learn guides, the /blog posts, and the
    trust pages (/about, /pricing/why, /migration, /who-its-for, /contact-sales), and the docs.
    Loaded after site.css. No Bootstrap on these pages, as there never was.

    Small grey text here is --gray, not --gray-light: the lighter one is 2.6:1 on white, which
    fails WCAG AA for the bylines, breadcrumbs and table headings it used to color.
*/

body { line-height: 1.65; }

/* ══ BREADCRUMB ══ */
.crumbs { max-width: 760px; margin: 0 auto; padding: 22px 24px 0; font-size: .8rem; color: var(--gray); }
/* Underlined, because color alone cannot tell a crumb link from the current page's name. */
.crumbs a { color: var(--gray); text-decoration: underline; text-decoration-color: var(--light-border); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--blue); text-decoration-color: currentColor; }
.crumbs a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.crumbs span { margin: 0 6px; color: var(--gray-light); }

/* ══ ARTICLE ══ */
.wrap { max-width: 760px; margin: 0 auto; padding: 20px 24px 72px; }
.eyebrow { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
h1 { font-family: var(--font-display); font-size: 2.5rem; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 16px; }
.lede { font-size: 1.1rem; color: var(--gray); line-height: 1.6; margin-bottom: 10px; }
/* The other names for the same thing, directly under the h1 — a reader who searched a
   synonym needs to see they landed in the right place before they decide to leave. */
.also-known { font-size: .84rem; color: var(--gray); margin-bottom: 14px; }
.byline { font-size: .78rem; color: var(--gray); border-bottom: 1px solid var(--light-border); padding-bottom: 22px; margin-bottom: 34px; }
.byline-note { display: block; margin-top: 8px; line-height: 1.55; max-width: 62ch; }
article h2 { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.2; letter-spacing: -.01em; margin: 42px 0 14px; }
article h3 { font-size: 1.05rem; font-weight: 700; margin: 30px 0 10px; }
article p { margin-bottom: 17px; color: var(--ink); }
article ul, article ol { margin: 0 0 18px 22px; color: var(--ink); }
article li { margin-bottom: 8px; }
article a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
article a:hover { color: var(--blue-hover); }
article a:focus-visible, .wrap a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
article strong { color: var(--navy); }
code { font-family: var(--font-mono); font-size: .88em; overflow-wrap: anywhere; background: var(--off-white); border: 1px solid var(--light-border); border-radius: 4px; padding: 1px 5px; }

/* A block of code scrolls inside itself rather than widening the page — a command line is
   the one piece of prose here that cannot be wrapped without changing what it means. The
   inner <code> drops the inline pill styling so the block reads as one box, not a row of
   bordered fragments. */
pre { background: var(--off-white); border: 1px solid var(--light-border); border-radius: 8px; padding: 16px 18px; margin: 24px 0; overflow-x: auto; }
pre:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
pre code { background: none; border: 0; padding: 0; overflow-wrap: normal; font-size: .86rem; line-height: 1.6; }

/* Answer-first definition block. Assistants and featured snippets both lift the first
   clean two-sentence definition they find; this makes sure there is one to lift. */
.definition { border-left: 3px solid var(--teal); background: #f2fdfb; border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 26px 0; }
.definition p { margin-bottom: 0; font-size: 1.02rem; }
/* A definition block held one paragraph until the zero-standing-access sentence needed its
   own. Without this the second one butts straight against the first. */
.definition p + p { margin-top: 12px; }

/* Figures are <img> files in wwwroot/img rather than inline SVG, so they are indexed as
   images — Google's generative-AI guidance asks for images alongside text. Each file carries
   its own white background, so it reads the same wherever it is shown. */
figure { margin: 28px 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--light-border); border-radius: 8px; }
figcaption { font-size: .82rem; color: var(--gray); margin-top: 8px; line-height: 1.55; }

/* /learn/glossary: a definition list whose terms are link targets (#term-id), so each
   <dt> leaves room for the sticky nav when scrolled to. */
.glossary dt { font-weight: 700; color: var(--navy); margin-top: 26px; scroll-margin-top: 80px; }
.glossary dt:first-child { margin-top: 0; }
.glossary dt .aka { font-weight: 400; color: var(--gray); font-size: .88rem; }
.glossary dd { margin: 6px 0 0; color: var(--ink); }
.glossary dd a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.callout { border: 1px solid var(--light-border); background: var(--off-white); border-radius: 10px; padding: 20px 22px; margin: 28px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; font-size: .92rem; margin-bottom: 8px; }

.ticket { background: var(--navy); color: #dbe4f0; border-radius: 12px; padding: 24px 26px; margin: 28px 0; }
.ticket .label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.ticket p { color: #dbe4f0; font-size: 1.06rem; font-style: italic; margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: .9rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--light-border); vertical-align: top; }
th { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); font-weight: 700; }
/* Focusable (tabindex="0" in the markup) so a keyboard user can scroll a wide table. */
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ══ RELATED + CTA ══ */
.related { border-top: 1px solid var(--light-border); margin-top: 52px; padding-top: 28px; }
.related h2 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); margin: 0 0 14px; }
.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 10px; }
.related a { color: var(--navy); text-decoration: none; font-weight: 600; }
.related a:hover { color: var(--blue); text-decoration: underline; }
.related .note { display: block; font-weight: 400; font-size: .85rem; color: var(--gray); }
/* On the two hubs the list *is* the page, so it drops the rule and gap that separate it from
   an article above. Formerly a style="" attribute on each hub. */
.related.related--flush { border-top: none; margin-top: 0; padding-top: 0; }
/* /learn's "new to the vocabulary?" line, between the lede and the list. */
.hub-intro { margin-bottom: 28px; }

.cta { background: var(--off-white); border: 1px solid var(--light-border); border-radius: 12px; padding: 28px; margin-top: 40px; text-align: center; }
.cta h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 8px; }
.cta p { color: var(--gray); margin-bottom: 18px; }
.btn { display: inline-block; background: var(--blue); color: #fff; padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: .9rem; text-decoration: none; }
.btn:hover { background: var(--blue-hover); }

/* Page experience counts, and the type above was scaled for a desktop column. */
@media (max-width: 640px) {
  h1 { font-size: 1.85rem; }
  .lede { font-size: 1rem; }
  article h2 { font-size: 1.3rem; }
  .wrap { padding: 16px 18px 56px; }
  .crumbs { padding: 18px 18px 0; }
  .ticket { padding: 20px; }
  .ticket p { font-size: .98rem; }
}
