/* The FinOps Directory — shared blog / article styles.
   Reuses the brand tokens from index.html so guides match the directory. */
:root {
  --paper: #f4f1e8; --ink: #1b1a16; --muted: #6c685c; --line: #d9d3c2;
  --c-yellow:#ecd24f; --c-amber:#e6a93f; --c-orange:#df7536; --c-coral:#dd8a6b;
  --c-green:#4f9d74; --c-forest:#356f52; --c-blue:#6ba2dd;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --accent: var(--c-orange);
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
a { color: var(--ink); }

/* Header (matches directory) */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(244,241,232,.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .inner { max-width: 820px; margin: 0 auto; padding: 14px clamp(18px,4vw,40px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.wordmark .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-orange); flex: none; }
.head-cta { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--ink); background: transparent; text-decoration: none; border: 1px solid var(--ink); border-radius: 8px; padding: 8px 14px; transition: background .14s, color .14s; }
.head-cta:hover { background: var(--ink); color: var(--paper); }

/* Article container */
.article-wrap { max-width: 820px; margin: 0 auto; padding: 0 clamp(18px,4vw,40px); }
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 28px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { color: var(--line); }

article { padding: 8px 0 20px; }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-orange); margin: 22px 0 14px; }
article h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(28px,4.6vw,44px); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 16px; max-width: 22ch; }
.byline { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 0 0 8px; display: flex; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.lede { font-size: clamp(17px,2.1vw,20px); line-height: 1.55; color: var(--ink); margin: 26px 0 8px; }

article h2 { font-family: var(--sans); font-weight: 700; font-size: clamp(21px,3vw,29px); letter-spacing: -.01em; margin: 44px 0 6px; scroll-margin-top: 80px; }
article h3 { font-family: var(--sans); font-weight: 700; font-size: 18.5px; margin: 30px 0 4px; }
article p { font-size: 16.5px; line-height: 1.62; color: #2a2822; margin: 14px 0; }
article ul, article ol { font-size: 16.5px; line-height: 1.62; color: #2a2822; padding-left: 22px; margin: 14px 0; }
article li { margin: 7px 0; }
article strong { color: var(--ink); font-weight: 600; }
article a { color: #b4531f; text-decoration: underline; text-underline-offset: 2px; }
article a:hover { color: var(--ink); }

/* TOC */
.toc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 26px 0; }
.toc p { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; font-size: 15px; }
.toc li { margin: 5px 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; background: #fff; min-width: 520px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: rgba(217,211,194,.28); }
tr:last-child td { border-bottom: 0; }
td b { color: var(--ink); }

/* Callout */
.callout { background: rgba(230,169,63,.12); border: 1px solid rgba(230,169,63,.4); border-radius: 12px; padding: 16px 20px; margin: 22px 0; font-size: 15.5px; line-height: 1.55; }
.callout.tip { background: rgba(79,157,116,.1); border-color: rgba(79,157,116,.35); }
.callout p { margin: 6px 0; }
.callout .k { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }

/* Tools-mentioned box */
.tools-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 30px 0; }
.tools-box .k { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.tools-box .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tools-box .chips a { font-family: var(--mono); font-size: 12.5px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; transition: background .14s, border-color .14s, color .14s; }
.tools-box .chips a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* FAQ */
.faq { margin: 20px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { font-family: var(--sans); font-weight: 600; font-size: 16.5px; cursor: pointer; padding: 12px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-family: var(--mono); color: var(--muted); font-size: 20px; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 14px; }

/* CTA band */
.cta { margin: 46px 0 20px; background: var(--ink); color: var(--paper); border-radius: 18px; padding: clamp(26px,5vw,44px); }
.cta h2 { color: var(--paper); margin: 0 0 12px; font-size: clamp(21px,3vw,28px); }
.cta p { color: rgba(244,241,232,.82); font-size: 15.5px; margin: 0 0 22px; max-width: 54ch; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta a { font-family: var(--mono); font-size: 13px; font-weight: 600; padding: 12px 22px; border-radius: 10px; text-decoration: none; border: 1.5px solid transparent; }
.cta a.primary { background: var(--c-amber); color: var(--ink); }
.cta a.primary:hover { background: var(--paper); }
.cta a.ghost { border-color: rgba(244,241,232,.4); color: var(--paper); }
.cta a.ghost:hover { border-color: var(--paper); }

/* Related */
.related { margin: 40px 0 0; }
.related h2 { font-size: 20px; margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 14px; }
.related-grid a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.related-grid a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,20,15,.08); }
.related-grid .kicker { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-orange); }
.related-grid .t { font-weight: 600; font-size: 15px; color: var(--ink); margin-top: 6px; line-height: 1.35; }

/* Blog index */
.hub-hero { padding: clamp(40px,7vw,80px) 0 20px; }
.hub-hero h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(30px,5vw,48px); line-height: 1.05; letter-spacing: -.02em; margin: 12px 0 16px; }
.hub-hero p { font-size: clamp(16px,2vw,19px); color: var(--muted); max-width: 60ch; margin: 0; }
.post-list { display: grid; gap: 14px; padding: 20px 0 10px; }
.post-list a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.post-list a:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22,20,15,.08); }
.post-list .kicker { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-orange); }
.post-list h2 { font-family: var(--sans); font-weight: 700; font-size: 21px; letter-spacing: -.01em; margin: 8px 0 6px; color: var(--ink); }
.post-list p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.5; }

footer { max-width: 820px; margin: 48px auto 0; padding: 26px clamp(18px,4vw,40px) 48px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
footer .foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
