/* Studio FGA guides (tools/build_guides.py). Uses the tokens and parts in ../app.css; only the article pieces live here. */
.gpage { display: flex; flex-direction: column; gap: 14px; }
.gpage > .link { align-self: flex-start; }
.gpage h1 { overflow-wrap: break-word; }
.gpage h2 { font-size: clamp(24px, 3.2vw, 30px); line-height: 1.1; margin-top: 22px; }
.gpage h3 { font-size: 19px; line-height: 1.2; margin-top: 8px; letter-spacing: -0.01em; }
.gpage p, .gpage li { max-width: 68ch; font-size: 17px; line-height: 1.6; }
.gpage ul, .gpage ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.gpage a:not(.btn):not(.logo) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gpage .link { min-height: 0; padding: 6px 0; }
.gpage .lede { font-size: 19px; line-height: 1.5; color: var(--ink); }
.byline { font: 500 13px/1.4 var(--mono); color: var(--muted); }
.gfaq { display: flex; flex-direction: column; gap: 10px; }
.gfaq h3 { margin-top: 12px; }
/* Calls to action (owner, 5 Nov 2026: "ensure the button to get them to use our product is prominent"). The card under
   the intro and the closing box are the same size; the button is the landing's .btn.shiny from ../app.css. */
.gcta { display: grid; grid-template-columns: minmax(0, 1fr); margin: 10px 0 6px; background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-big); overflow: hidden; }
.gcta-pic-wrap { background: #FFF6EA; border-bottom: 2px solid var(--line); display: flex; align-items: center; }
.gcta-pic { display: block; width: 100%; height: auto; }
.gcta-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 4px; min-width: 0; }
.gpage .gcta .kicker { font-size: 12px; }
.gpage .gcta-hd { font-family: var(--display); font-weight: 800; font-size: clamp(25px, 3.4vw, 30px); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
.gpage .gcta-sub { font-size: 16px; line-height: 1.5; color: var(--muted); }
.gcta-go { padding: 12px 20px 20px; min-width: 0; }
.gcta-go .btn.shiny { display: flex; width: 100%; }
.gcta-end { margin-top: 26px; background: var(--ink); }
.gcta-end .kicker, .gpage .gcta-end .gcta-hd { color: var(--paper); }
.gpage .gcta-end .gcta-sub { color: var(--paper); opacity: .82; }
.gcta-end .btn.shiny { box-shadow: 4px 4px 0 var(--coral); }
@media (min-width: 680px) {
  .gcta { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .gcta-pic-wrap { border-bottom: 0; border-right: 2px solid var(--line); }
  .gcta-body { padding: 20px 22px 8px; justify-content: center; }
  .gcta-go { grid-column: 1 / -1; border-top: 2px solid var(--line); padding: 16px 20px 20px; }
  .gcta-end .gcta-go { border-top-color: var(--paper); }
}
@media (max-width: 400px) {
  .gcta-body { padding: 16px 16px 4px; } .gcta-go { padding: 12px 16px 18px; }
  .gcta-go .btn.shiny { padding: 0 14px; gap: 10px; } .gcta-go .btn.shiny .cta b { font-size: 17.5px; }
}

/* The slim bar at the bottom of the screen (guides.js shows it once the top card is scrolled past). */
.gbar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 720px; margin: 0 auto;
  display: flex; align-items: stretch; background: var(--ink); color: var(--paper); border: 2px solid var(--line); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--coral); animation: gbar-in .25s ease-out; }
.gbar[hidden] { display: none; }
@keyframes gbar-in { from { transform: translateY(16px); opacity: 0; } }
.gbar-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 9px 8px 9px 16px; color: var(--paper); text-decoration: none; }
.gbar-t { flex: 1; min-width: 0; font-size: 15px; line-height: 1.3; }
.gbar-t b { font-weight: 700; }
.gbar-btn { flex: none; padding: 9px 14px; background: var(--lime); color: var(--on-accent); border: 2px solid var(--paper); border-radius: 10px;
  font: 800 15px/1 var(--display); white-space: nowrap; }
.gbar-go:hover .gbar-btn { transform: translate(-1px, -1px); }
.gbar-x { flex: none; width: 44px; background: none; border: 0; color: var(--paper); font-size: 24px; line-height: 1; cursor: pointer; border-radius: 0 12px 12px 0; }
.gbar-x:hover { background: rgba(255, 255, 255, .1); }
.gbar-go:focus-visible, .gbar-x:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
body.gbar-pad { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 560px) {
  .gbar { left: 0; right: 0; bottom: 0; border-width: 2px 0 0; border-radius: 0; box-shadow: none; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .gbar-go { padding: 8px 4px 8px 16px; gap: 10px; }
  .gbar-t { font-size: 14px; }
  .gbar-t b { display: block; }
  body.gbar-pad { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

/* Pictures in the text: only our own (tools/build_guides.py IMAGES_OK), each with an honest caption. */
.gfig { margin: 8px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.gfig-pics { display: grid; grid-template-columns: var(--cols, minmax(0, 1fr)); gap: 10px; align-items: start; }
.gfig img { display: block; width: 100%; max-width: 100%; height: auto; background: #FFFFFF; border: 2px solid var(--line); border-radius: 10px; }
.gfig.tall .gfig-pics { max-width: min(100%, 440px); }
.gpage .gfig figcaption { max-width: 68ch; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
@media (max-width: 560px) { .gfig-pics { grid-template-columns: minmax(0, 1fr); } }

.related h2 { font-size: 22px; }
.related ul { gap: 4px; }
.glist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 16px; }
.glist .card { display: flex; flex-direction: column; gap: 8px; }
.glist h2, .glist h3 { font-size: 22px; line-height: 1.15; margin: 0; }
.glist h2 a, .glist h3 a { text-decoration: none !important; }
.glist h2 a:hover, .glist h3 a:hover { text-decoration: underline !important; }
.ggroup { margin-top: 36px; }
.ggroup .glist { padding: 0; margin-top: 0; }
.ggroup > h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.glist p:not(.kicker) { color: var(--muted); font-size: 16px; }
