/* ============================================================================
   RealAds Resource Center — shared stylesheet
   ----------------------------------------------------------------------------
   Light mode only, by design. faq.html ships a light/dark toggle; the resource
   center deliberately does not, so there is no `vf-theme` script, no dark token
   block and no toggle button in the masthead here. If dark mode is ever added
   back, copy BOTH dark blocks out of faq.html (the media query and the
   [data-theme] attribute selector) and re-add the inline head script.

   Tokens below are the light values from faq.html, unchanged, so the resource
   center renders identically to the FAQ and the marketing site.
   ========================================================================== */

:root{
  --ink:#100D17; --meta:#8FA2BC; --body2:#3D4657; --line:#E5E1EA;
  --purple:#9340E7; --orange:#E17C27;
  --grad:linear-gradient(90deg,#8B5CF6,#FF7A00);
  --bg:#fff; --bg-blur:rgba(255,255,255,.96);
  --footer-bg:#020617; --footer-edge:#020617;
  --soft:#FBFAFD;          /* tinted panel, matches index.html's #FBFAFD sections */
  color-scheme:light;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{font-family:"SF Pro Display","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  color:var(--ink);background:var(--bg);line-height:1.6;font-size:17px}
.wrap{max-width:1180px;margin:0 auto;padding:0 22px}
a{color:inherit}
.kicker{font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--meta)}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #8B5CF6;outline-offset:2px;border-radius:6px}

/* Skip link — the sidebar TOC puts a lot of links between the masthead and the
   article, so keyboard users get a way past it. */
.skip{position:absolute;left:-9999px;top:0;background:var(--ink);color:#fff;padding:12px 18px;
  border-radius:0 0 8px 0;font-weight:700;font-size:14px;z-index:100;text-decoration:none}
.skip:focus{left:0}

/* REALADS WORDMARK (Hepta Slab, brand logo gradient) */
.ralogo{font-family:"Hepta Slab",serif;font-weight:800;font-size:32px;letter-spacing:-.01em;line-height:1;
  background:linear-gradient(90deg,#A34BE0 0%,#E0457B 55%,#F5822B 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;text-decoration:none;display:inline-block}
.ralogo.onDark{background:none;-webkit-background-clip:initial;background-clip:initial;color:#fff}
.byline{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:600;color:var(--meta);letter-spacing:.02em}
.byline img{height:11px;width:auto;display:block}

/* MASTHEAD — same 3px double rule and sticky blur as faq.html. The FAQ puts a
   theme toggle on the right; this section puts reference nav links there instead.

   NO CTA HERE, DELIBERATELY. This site links to no app domain
   (auth.videoforce.ai, platform.videoforce.ai) — see "No CTAs — by design" in the
   README. The two app links that remain under /resources/ are instructional, not
   promotional: the sign-up URL inside the Getting Started steps, and the Creator
   Sourcing contact link. If a promotional CTA is ever added back, the `vf_utms`
   capture/forwarding script has to come back with it or paid traffic to these
   pages will not attribute. */
.masthead{border-bottom:3px double var(--ink);position:sticky;top:0;background:var(--bg-blur);backdrop-filter:blur(8px);z-index:50}
.masthead .wrap{display:flex;align-items:center;justify-content:space-between;padding:14px 22px;gap:14px}
.masthead .brand{text-decoration:none;display:flex;align-items:baseline;gap:10px;min-width:0}
.mnav{display:flex;align-items:center;gap:20px}
.mnav a{font-size:14px;font-weight:700;color:var(--body2);text-decoration:none}
.mnav a:hover{color:var(--ink)}
.mnav a[aria-current="page"]{color:var(--ink)}
@media(max-width:820px){.mnav .hide-m{display:none}}
@media(max-width:620px){.masthead .ralogo{font-size:26px}}

/* PAGE HEAD */
.head{padding:52px 0 30px;border-bottom:1px solid var(--ink)}
.head h1{font-size:clamp(34px,5.4vw,64px);font-weight:800;letter-spacing:-.04em;line-height:1.02;margin:14px 0 18px;max-width:900px}
.head h1 em{font-style:normal;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.head p.deck{font-size:clamp(16.5px,2vw,19px);color:var(--body2);max-width:660px}
.trustline{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.trustline span{font-size:12.5px;font-weight:700;color:var(--body2);border:1px solid var(--line);border-radius:999px;padding:7px 15px}

/* BREADCRUMB */
.crumb{font-size:13px;font-weight:600;color:var(--meta);padding:18px 0 0}
.crumb a{color:var(--meta);text-decoration:none}
.crumb a:hover{color:var(--ink);text-decoration:underline}
.crumb .sep{opacity:.5;padding:0 6px}

/* ---------------------------------------------------------------- HUB PAGE */
.hubgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:34px 0 10px}
@media(max-width:940px){.hubgrid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.hubgrid{grid-template-columns:1fr}}
.card{border:1px solid var(--line);border-radius:18px;padding:24px 22px 22px;text-decoration:none;
  display:flex;flex-direction:column;background:var(--bg)}
.card:hover{border-color:var(--ink)}
.card .n{font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--purple)}
.card h3{font-size:19.5px;font-weight:800;letter-spacing:-.02em;margin:10px 0 8px;line-height:1.2}
.card p{font-size:14.5px;color:var(--body2);flex:1;line-height:1.55}
.card .go{margin-top:16px;font-size:13.5px;font-weight:800;color:var(--ink)}
.card ul{margin:12px 0 0;padding-left:18px;font-size:13.5px;color:var(--body2)}
.card ul li{margin-bottom:4px}

/* Numbered "start here" path on the hub */
.path{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:26px}
@media(max-width:860px){.path{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.path{grid-template-columns:1fr}}
.step{border:1px solid var(--line);border-radius:16px;padding:20px 18px;text-decoration:none;display:block;background:var(--bg)}
.step:hover{border-color:var(--ink)}
.step .num{width:30px;height:30px;border-radius:50%;background:var(--grad);color:#fff;font-weight:800;font-size:14px;
  display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.step h4{font-size:16px;font-weight:800;letter-spacing:-.01em;margin-bottom:5px}
.step p{font-size:13.5px;color:var(--body2);line-height:1.5}

/* ------------------------------------------------------- ARTICLE + SIDEBAR */
.shell{display:grid;grid-template-columns:250px minmax(0,1fr);gap:48px;padding:34px 0 72px;align-items:start}
@media(max-width:940px){.shell{grid-template-columns:1fr;gap:0}}
/* Grid items default to min-width:auto, which lets a wide .tbl push the track past the
   viewport instead of scrolling inside .scroller. This is what keeps tables contained. */
.shell>*{min-width:0}

.toc{position:sticky;top:100px;font-size:14px}
@media(max-width:940px){
  .toc{position:static;border:1px solid var(--line);border-radius:16px;padding:18px 20px;margin-bottom:34px}
}
.toc h2{font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--meta);margin-bottom:12px}
.toc ol{list-style:none;counter-reset:toc}
.toc li{counter-increment:toc;border-left:2px solid var(--line);padding-left:0}
.toc a{display:block;padding:7px 0 7px 14px;margin-left:-2px;border-left:2px solid transparent;
  color:var(--body2);text-decoration:none;font-weight:600;line-height:1.4}
.toc a:hover{color:var(--ink)}
.toc a.active{color:var(--ink);border-left-color:var(--purple)}
.toc .also{margin-top:26px;padding-top:18px;border-top:1px solid var(--line)}
.toc .also a{padding:5px 0;border:0;margin:0;font-weight:600;color:var(--purple)}

/* Article typography. Body copy is --ink (not gray) so long-form reads cleanly. */
.article{max-width:760px;min-width:0;font-size:17px}
.article > section{scroll-margin-top:100px;padding-bottom:10px}
.article h2{font-size:clamp(25px,3.2vw,33px);font-weight:800;letter-spacing:-.03em;line-height:1.15;
  margin:44px 0 14px;padding-top:26px;border-top:1px solid var(--line)}
.article > section:first-of-type h2{margin-top:0;padding-top:0;border-top:0}
.article h3{font-size:19px;font-weight:800;letter-spacing:-.015em;margin:30px 0 8px}
.article h4{font-size:16px;font-weight:800;margin:22px 0 6px}
.article p{margin-bottom:14px;color:var(--ink)}
.article p.lede{font-size:18.5px;color:var(--body2);margin-bottom:22px}
.article ul,.article ol{margin:0 0 16px 0;padding-left:22px}
.article li{margin-bottom:8px}
.article li>ul,.article li>ol{margin-top:8px;margin-bottom:4px}
.article strong{font-weight:800}
.article a{color:var(--purple);font-weight:600}
.article hr{border:0;border-top:1px solid var(--line);margin:32px 0}
.article code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14.5px;
  background:var(--soft);border:1px solid var(--line);border-radius:5px;padding:1px 6px}

/* Numbered step list — the workhorse of a how-to page */
.steps{list-style:none;padding:0;counter-reset:step;margin:22px 0 26px}
.steps>li{counter-increment:step;position:relative;padding:0 0 22px 46px;margin:0}
.steps>li::before{content:counter(step);position:absolute;left:0;top:-1px;width:30px;height:30px;border-radius:50%;
  background:var(--ink);color:#fff;font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center}
.steps>li::after{content:"";position:absolute;left:15px;top:32px;bottom:0;width:1px;background:var(--line)}
.steps>li:last-child{padding-bottom:0}
.steps>li:last-child::after{display:none}
.steps>li>strong:first-child{display:block;font-size:17.5px;margin-bottom:4px}

/* Callouts */
.note{border:1px solid var(--line);border-left:3px solid var(--purple);border-radius:0 12px 12px 0;
  padding:16px 20px;margin:22px 0;background:var(--soft);font-size:15.5px}
.note.warn{border-left-color:var(--orange)}
.note .t{font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--purple);margin-bottom:6px}
.note.warn .t{color:var(--orange)}
.note p{margin-bottom:8px;color:var(--ink)}
.note p:last-child{margin-bottom:0}
.note ul{margin:8px 0 0;padding-left:20px}
.note li{margin-bottom:5px;font-size:15px}

/* Tables — channel specs, plan limits, file requirements */
.tbl{width:100%;border-collapse:collapse;font-size:14.5px;margin:20px 0 26px}
.tbl th,.tbl td{text-align:left;padding:12px 12px;border-bottom:1px solid var(--line);vertical-align:top}
.tbl thead th{font-weight:800;font-size:13px;border-bottom:2px solid var(--ink);white-space:nowrap}
.tbl td:first-child,.tbl th:first-child{padding-left:0}
.tbl tbody tr:last-child td{border-bottom:0}
.tbl .y{color:var(--purple);font-weight:800}
.tbl .n{color:var(--meta);font-weight:800}
.scroller{overflow-x:auto}
@media(max-width:700px){.scroller .tbl{min-width:560px}}

/* Definition rows — glossary, "what the score means" */
.deflist{border-top:1px solid var(--ink);margin:20px 0 26px}
.deflist .row{display:grid;grid-template-columns:200px minmax(0,1fr);gap:24px;padding:16px 0;border-bottom:1px solid var(--line)}
@media(max-width:640px){.deflist .row{grid-template-columns:1fr;gap:4px}}
.deflist dt{font-weight:800;font-size:16px}
.deflist dd{color:var(--body2);font-size:15.5px}
.deflist dd p+p{margin-top:8px}

/* Accordion — reused verbatim from faq.html so troubleshooting looks native */
.faq{max-width:820px;margin-top:20px}
.faq details{border-bottom:1px solid var(--line)}
.faq details:first-of-type{border-top:1px solid var(--ink)}
.faq summary{cursor:pointer;font-weight:800;font-size:17px;padding:19px 0;list-style:none;display:flex;
  justify-content:space-between;gap:20px;min-height:44px;align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:24px;font-weight:600;color:var(--purple);flex-shrink:0}
.faq details[open] summary::after{content:"–"}
.faq .a{padding:0 40px 20px 0;color:var(--body2);font-size:15.5px}
.faq .a p+p{margin-top:12px}
.faq .a a{color:var(--purple);font-weight:600}
.faq .a ul,.faq .a ol{margin:10px 0 0;padding-left:20px}
.faq .a li{margin-bottom:6px}

/* Checklist */
.check{list-style:none;padding:0;margin:18px 0 24px}
.check li{position:relative;padding:0 0 10px 30px;font-size:15.5px}
.check li::before{content:"✓";position:absolute;left:0;top:0;color:var(--purple);font-weight:800;font-size:16px}

/* Buttons */
.btn{display:inline-block;background:var(--grad);color:#fff;font-weight:700;font-size:16px;padding:15px 30px;
  border-radius:999px;text-decoration:none;min-height:44px}
.btn.ghost{background:#fff;color:var(--ink);border:2px solid var(--ink)}

/* Prev / next pager at the foot of each article */
.pager{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:48px;padding-top:26px;border-top:1px solid var(--ink)}
@media(max-width:620px){.pager{grid-template-columns:1fr}}
.pager a{border:1px solid var(--line);border-radius:14px;padding:16px 18px;text-decoration:none;display:block}
.pager a:hover{border-color:var(--ink)}
.pager .d{font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--meta);margin-bottom:4px}
.pager .t{font-weight:800;font-size:16px;letter-spacing:-.01em}
.pager .next{text-align:right}

/* Closing CTA band */
.endcta{background:var(--soft);border-top:1px solid var(--line);padding:56px 0 60px;text-align:center}
.endcta h2{font-size:clamp(26px,3.6vw,40px);font-weight:800;letter-spacing:-.03em;line-height:1.1;margin-bottom:12px}
.endcta h2 em{font-style:normal;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.endcta p{color:var(--body2);max-width:560px;margin:0 auto 24px;font-size:16.5px}

/* FOOTER — stacked rows, copied from faq.html (see the note there: the old
   two-column layout wrapped into a lopsided pile at almost every viewport). */
footer{background:var(--footer-bg);border-top:1px solid var(--footer-edge);color:#fff;padding:40px 0 34px;font-size:13px}
footer .wrap{display:flex;flex-direction:column;gap:18px}
footer img{height:11px;width:auto;display:block}
footer .cancel{color:#FFB077;font-weight:700}
.fbrand{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.fbrand .byline{color:rgba(255,255,255,.6)}
.fbrand .ftag{opacity:.75;font-weight:600}
.fmeta{padding-top:18px;border-top:1px solid rgba(255,255,255,.12);color:rgba(255,255,255,.85);line-height:1.7}
.flegal{font-size:12.5px;color:#9fb0c9;line-height:1.9;margin-top:10px}
.flegal a{color:#9fb0c9;text-decoration:none;white-space:nowrap}
.flegal a:hover{color:#fff;text-decoration:underline}
.flegal .sep{opacity:.45}
.fcopy{font-size:12.5px;color:#7d8ea6;margin-top:2px}

@media print{
  .masthead,.toc,.pager,.endcta,.skip{display:none}
  .shell{grid-template-columns:1fr;padding-top:0}
}
