/* Marketing component parity with components/rapid-site/site.css. */
.eyebrow { color: var(--muted); }
.button, .ai-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 41px;
  padding: 0 12px;
  border: 1px solid rgba(32,32,32,.15);
  border-radius: 71px;
  background: #f5f5f2;
  color: #171717;
  font-size: 15px;
  line-height: 22.5px;
  letter-spacing: .15px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 #fff, 0 2px 3px #0000000f;
  transition: background .18s, box-shadow .18s;
}
.button:hover, .ai-copy:hover {
  background: #fff;
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px #0002;
  transform: none;
}
.button-glass { color: #fff; }
.hero-actions .button-glass:hover { background: #0b233fac; }
.search-button { padding-inline: 16px; flex-shrink: 0; }
.arrow-forward, .arrow-back { display: inline-flex; }
.arrow-forward .arrow { transform: rotate(45deg); }
.arrow-back .arrow { transform: rotate(225deg); }
:is(a,button,input,summary):focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }

/* The same blue glass navigation, with a navy base on pages without artwork. */
html { scroll-padding-top: 110px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.site-header { position: sticky; top: 0; z-index: 40; pointer-events: none; }
.site-header .nav-shell { pointer-events: auto; }
.site-header-hero { margin-bottom: -91px; }
.journal-hero { padding-top: 91px; }
.nav-shell {
  padding: 12px 16px 12px 24px;
  color: #f4f4ee;
  background: linear-gradient(100deg,#12395e,#142c3d);
  border: 1px solid #ffffff26;
  box-shadow: inset 0 1px 1px #ffffff30, 0 1px 1px #0002;
}
.site-header-hero:not(.is-scrolled) .nav-shell { background: linear-gradient(100deg,#10447c4d,#123e5759); }
[data-theme=light] .brand img { filter: none; }
.nav-shell .theme-switch img { filter: brightness(0) invert(1); }
.nav-links a:hover { text-decoration: none; color: #fff; }
.nav-apps { position: relative; }
.nav-apps summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.nav-apps summary::-webkit-details-marker { display: none; }
.nav-chevron { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -3px 3px 0; }
.nav-apps[open] .nav-chevron { transform: rotate(225deg); margin-top: 3px; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 20px);
  left: -20px;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: var(--heading);
  box-shadow: 0 12px 32px #0003;
}
.nav-dropdown a, .nav-dropdown a:first-child { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; font-size: 14px; }
.nav-dropdown a:hover { background: var(--well); color: var(--heading); }
.nav-dropdown img { width: 30px; height: 30px; }

/* Rapid's framed window cards: a slim header and an inset content surface. */
.window-card {
  min-width: 0;
  padding: 1px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--page);
  box-shadow: 0 2px 0 color-mix(in srgb,var(--border) 45%,transparent), 0 8px 24px #00000004;
}
.window-bar { min-height: 38px; padding: 9px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; line-height: 18px; color: var(--heading); }
.window-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.window-bar .reading-time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.window-body { border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.post-grid { gap: 24px; align-items: stretch; }
.post-card { gap: 0; }
.post-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: 16px; padding: 16px; }
.card-image { width: 100%; height: 190px; border-radius: 8px; flex-shrink: 0; }
.post-card h3 { font-size: 22px; line-height: 1.3; }
.post-card h3 a:hover { color: var(--heading); }
.post-card p { font-size: 14px; line-height: 1.55; }
.story-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; color: var(--heading); font-size: 14px; }
.story-link .arrow { filter: brightness(0) invert(1); }
[data-theme=light] .story-link .arrow { filter: none; }
.story-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.topics {
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  max-width: 100%;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb,var(--well) 55%,var(--page));
}
.topics :is(a,button) { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; line-height: 20px; }
.topics :is(a,button):hover { background: var(--card); color: var(--heading); }
.topics :is(a[aria-current],button[aria-pressed="true"]) { color: var(--heading); text-decoration: none; background: color-mix(in srgb,var(--brand) 9%,var(--card)); border-color: color-mix(in srgb,var(--brand) 65%,var(--border)); box-shadow: inset 0 1px 0 var(--edge), 0 2px 4px #00000008; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; padding: 24px 0 0; border-top: 1px solid var(--border); }
.pagination-next { justify-self: end; }
.pagination a { color: #171717; padding: 0 12px; }
.pagination-status { color: var(--muted); font-size: 13px; }

.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--body); font-size: 13px; line-height: 20px; }
.breadcrumbs > a:first-child { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px 6px 8px; border: 1px solid var(--border); border-radius: 71px; background: var(--card); color: var(--heading); box-shadow: inset 0 1px 0 var(--edge); }
.breadcrumbs > a:first-child .arrow { width: 16px; height: 16px; filter: brightness(0) invert(1); }
[data-theme=light] .breadcrumbs > a:first-child .arrow { filter: none; }
.breadcrumbs > a:hover { color: var(--heading); }
.breadcrumbs > span { color: var(--muted); }
.standfirst { max-width: 720px; }
.article-meta { color: var(--muted); font-size: 13px; }
.article-meta a { color: var(--body); }
.article-cover img { border-radius: 12px; border: 1px solid var(--border); }
.article-reading { grid-template-columns: 280px minmax(0,1fr); gap: 48px; }
.toc { gap: 0; top: 110px; }
.toc[hidden] { display: none; }
.toc .window-bar { padding: 12px 16px; }
.toc h2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.toc ol { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 8px; font-size: 14px; }
.toc a { display: flex; align-items: baseline; gap: 10px; padding: 10px; border: 1px solid transparent; border-radius: 7px; line-height: 1.5; }
.toc a:hover { background: var(--well); color: var(--heading); }
.toc a[aria-current] { color: var(--heading); background: color-mix(in srgb,var(--brand) 9%,var(--card)); border-color: color-mix(in srgb,var(--brand) 35%,var(--border)); }
.toc li span { font: 11px/1.5 Plex,monospace; color: var(--muted); opacity: 1; }
.article-callout { display: block; margin-top: 32px; }
.article-callout .window-bar img { opacity: .7; }
[data-theme=light] .article-callout .window-bar img { filter: brightness(0); }
.article-callout .window-body { padding: 24px; }
.article-callout h2 { font-size: 26px; line-height: 1.3; }
.article-callout p { font-size: 16px; line-height: 1.5; margin-top: 12px; }
.article-callout .button { margin-top: 24px; }
.article-end { gap: 12px; }
.copy-status:empty { display: none; }

.ai-provider { flex-shrink: 0; border-color: var(--edge); background: var(--card); box-shadow: inset 0 1px 0 var(--edge); }
.ai-provider:hover { background: var(--well); }
.ai-prompt { font-size: 12px; color: var(--muted); }
.ai-prompt summary { display: flex; align-items: center; gap: 8px; min-height: 32px; list-style: none; text-decoration: none; }
.ai-prompt summary::-webkit-details-marker { display: none; }
.ai-prompt summary::after { content: ''; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin-top: -3px; }
.ai-prompt[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.ai-prompt summary:hover { color: var(--heading); }
.ai-prompt-text { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--body); }
.ai-copy { min-height: 32px; font-size: 12px; line-height: 18px; }

#sodo-search-root .gh-root-frame {
  background: color-mix(in srgb,var(--page) 24%,transparent);
  -webkit-backdrop-filter: blur(14px) saturate(.85);
  backdrop-filter: blur(14px) saturate(.85);
}
#sodo-search-root iframe { color-scheme: inherit; background: transparent; }
body:has(#sodo-search-root .gh-root-frame) { overflow: hidden; }

@media (max-width: 1100px) {
  .article-reading { display: flex; flex-direction: column; gap: 32px; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; }
  .card-image { height: 220px; }
}
@media (max-width: 760px) {
  .nav-shell { padding-right: 20px; }
  .topics { gap: 4px; }
  .topics :is(a,button) { padding-inline: 10px; font-size: 13px; }
}
@media (max-width: 900px) {
  .nav-cta { display: none; }
}
@media (max-width: 600px) {
  .site-header-hero { margin-bottom: -88px; }
  .journal-hero { padding-top: 88px; }
  .nav-shell { padding: 6px 12px; }
  .nav-links { border-radius: 14px; padding: 16px; }
  .nav-links.is-open { gap: 4px; }
  .nav-links > a, .nav-apps summary { padding: 10px 8px; }
  .nav-links a:hover { color: var(--heading); }
  .nav-apps { width: 100%; }
  .nav-dropdown { position: static; min-width: 0; margin-top: 4px; padding: 4px; box-shadow: none; background: var(--page); }
  .nav-dropdown a { white-space: normal; }
  .section-heading { align-items: center; gap: 16px; }
  .section-heading h2 { flex-basis: 100%; }
  .search-button { align-self: flex-start; }
  .topics { align-self: stretch; }
  .topics :is(a,button) { flex-grow: 1; min-height: 40px; }
  .post-card-body { padding: 14px; }
  .card-image { height: 190px; }
  .pagination { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pagination-status { grid-row: 1; grid-column: 1 / -1; text-align: center; }
  .pagination-previous, .pagination-next { grid-row: 2; }
  .pagination .button { font-size: 13px; padding-inline: 10px; }
  .pagination .arrow { width: 16px; height: 16px; flex-basis: 16px; }
  .toc ol { grid-template-columns: 1fr; }
  .article-callout .window-body { padding: 20px; }
  .article-callout h2 { font-size: 24px; }
}

.topics button { font-family: inherit; background: transparent; color: inherit; cursor: pointer; }
.post-card[hidden] { display: none; }
.filter-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Keep the publication preference beside the article guide. */
.article-sidebar { position: sticky; top: 110px; align-self: start; min-width: 0; }
.article-sidebar .toc { position: static; width: 100%; }
.preferred-source { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 18px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); color: var(--body); font-size: 15px; line-height: 1.45; text-decoration: none; box-shadow: inset 0 1px 0 #ffffff12, 0 2px 3px #00000008; }
.preferred-source img { flex: none; width: 28px; height: 28px; }
.preferred-source strong { color: var(--heading); font-weight: 600; }
.preferred-source:hover { border-color: var(--brand); background: var(--well); }
.preferred-source:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
@media (max-width:1100px) { .article-sidebar { position: static; width: 100%; } .preferred-source { max-width: 420px; } }
