/* Ackuity concept v4: guide pages (one question, answered in sections). Loaded after site.css, platform.css, graph.css and threats.css. Local concept study only. */

/* the search-term label sits above the H1 here, so the H1 stays the question itself */
.kick{display:flex;margin-bottom:22px}

/* contents strip: five sections */
.tabs3.five{grid-template-columns:repeat(5,1fr)}

/* a section: copy on the left, its panel on the right */
.sheet .fold-in.gsec{align-items:start;padding-bottom:5vh}
.sheet .fold-in.gsec.last{padding-bottom:11vh}
.gsec .copy h2{margin-top:0}
.gsec .prose{margin-top:22px}
.gsec .prose a{text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--turq) 60%,transparent);text-underline-offset:4px;text-decoration-thickness:1px}
.gside{display:grid;gap:22px}
.dq.sm{margin-top:0;font-size:clamp(22px,2.1vw,30px);line-height:1.14;max-width:18em}

/* the five possible responses, in ladder order */
.resp{list-style:none;margin:6px 0 0;padding:0 4px;display:flex;flex-wrap:wrap;gap:6px}
.exhibit .resp .tag{position:static}

/* four controls, four questions */
.ctl-t thead th:first-child,.ctl-t tbody th{width:24%}
.ctl-t td:nth-child(2){width:auto;white-space:normal}
.ctl-t td:last-child{width:32%;color:var(--ink)}
.ctl-t .us th,.ctl-t .us td{background:color-mix(in srgb,var(--lagoon) 13%,transparent)}
.ctl::after{display:none}

/* evaluation checklist */
.checks{margin-top:0;align-self:start}
.checks li{grid-template-columns:92px 1fr;font-size:15.5px;line-height:1.5;padding:14px 0;color:var(--ink)}

@media (max-width:900px){
  .kick{margin-bottom:16px}
  .tabs3.five a{padding:11px 4px;font-size:11px;justify-content:center;text-align:center}
  .sheet .fold-in.gsec{padding-bottom:3vh}.sheet .fold-in.gsec.last{padding-bottom:8vh}
  .checks li{grid-template-columns:70px 1fr;font-size:15px}
  .ctl-t td:last-child,.ctl-t thead th:first-child,.ctl-t tbody th{width:auto}
}

/* ---------- long guides: a contents rail beside the sections ---------- */
/* the rail's column is paper from top to bottom; the wrapper itself stays clear, so a framed scene in the other column still shows the sand behind the page */
.gwrap{display:grid;grid-template-columns:232px minmax(0,1fr)}
.rail{background:var(--paper)}
.rail nav{position:sticky;top:calc(var(--head) + var(--fr));max-height:calc(100vh - var(--head) - var(--fr));overflow-y:auto;padding:9vh 0 40px 46px}
.rail p{margin-bottom:12px;font-size:13px;color:var(--muted)}
.rail ol{list-style:none;margin:0;padding:0;border-left:1px solid var(--line)}
.rail a{display:block;margin-left:-1px;padding:6px 0 6px 14px;border-left:1px solid transparent;font-size:14px;line-height:1.35;color:var(--muted);transition:color .3s,border-color .3s}
.rail a:hover{color:var(--ink)}
.rail a.on{color:var(--ink);border-left-color:var(--turq)}
.gcol{min-width:0}
.sheet .gcol .fold{padding:0 46px 0 40px}
.sheet .gcol .fold-in{display:block;min-height:auto;padding:9vh 0 0}
.sheet .gcol .fold-in.cont{padding-top:26px}
.sheet .gcol .fold-in.fig{padding-top:30px}
.sheet .gcol section:last-child>.fold:last-child .fold-in{padding-bottom:11vh}
.gcol section{scroll-margin-top:calc(var(--head) + 10px)}

/* article copy inside a guide section */
.art h2{margin:0 0 22px;font-size:clamp(26px,2.5vw,38px);max-width:20em}
.art>p,.art>ol,.art>ul{max-width:44em;font-size:16.5px;line-height:1.62;color:var(--ink2);text-wrap:pretty}
.art>p+p,.art>p+ol,.art>p+ul,.art>ol+p,.art>ul+p,.art>.panel+p,.art>.panel+ol{margin-top:16px}
.art a{color:var(--ink);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--turq) 60%,transparent);text-underline-offset:4px;text-decoration-thickness:1px;transition:text-decoration-color .3s}
.art a:hover{text-decoration-color:var(--ink)}
.art>ol,.art>ul{list-style:none;padding:0;display:grid;gap:0;border-top:1px solid var(--line2)}
.art>ol{counter-reset:st}
.art>ol>li,.art>ul>li{position:relative;padding:12px 0 12px 44px;border-bottom:1px solid var(--line2)}
.art>ol>li{counter-increment:st}
.art>ol>li::before{content:counter(st,decimal-leading-zero);position:absolute;left:0;top:11px;font-family:var(--display);font-size:17px;letter-spacing:-.04em;background:linear-gradient(96deg,color-mix(in srgb,var(--turq) 88%,var(--ink)),var(--green-ink));-webkit-background-clip:text;background-clip:text;color:transparent}
.art>ul>li::before{content:"";position:absolute;left:8px;top:22px;width:5px;height:5px;border-radius:1px;transform:rotate(45deg);background:var(--turq)}
.art li b{font-weight:500;color:var(--ink)}
.cap{margin-top:14px;max-width:52em;font-size:13.5px;line-height:1.5;color:var(--muted)}
.cap a{white-space:nowrap}
.fig .cap{padding:0 4px}
.panel{margin:24px 0 8px;max-width:820px}

/* approval in four steps */
.flow4{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.flow4 li{display:grid;align-content:start;gap:4px;padding:16px 16px 18px;border-radius:14px;background:color-mix(in srgb,var(--bg) 42%,var(--paper));box-shadow:inset 0 0 0 1px var(--line2)}
.flow4 .n{font-family:var(--display);font-weight:300;font-size:24px;line-height:1;letter-spacing:-.05em;margin-bottom:8px;background:linear-gradient(96deg,color-mix(in srgb,var(--turq) 88%,var(--ink)),var(--green-ink));-webkit-background-clip:text;background-clip:text;color:transparent}
.flow4 b{font-weight:500;font-size:15.5px;line-height:1.3;color:var(--ink)}
.flow4 li>span:last-child{font-size:14px;line-height:1.45;color:var(--ink2)}

/* the video beside its question */
.sheet .fold-in.watch{align-items:center;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.vid.solo{display:block;max-width:none;margin:0;padding:10px}
.vid.solo.playing{max-width:none}

/* the comparison at the head of a guide: the last column is the one the page is about */
.sheet .gcol .fold-in.tbl{max-width:1080px}
.cmp-t thead th:first-child,.cmp-t thead td,.cmp-t tbody th{width:21%}
.cmp-t td,.cmp-t td:nth-child(2){width:39.5%;white-space:normal}
.cmp-t thead th:last-child,.cmp-t td:last-child{background:color-mix(in srgb,var(--lagoon) 11%,transparent)}
.cmp-t td:last-child{color:var(--ink)}
.cmp-t thead th:last-child{color:var(--green-ink)}

/* eleven kinds of action in two groups: the three a gateway can see, and the eight it cannot */
.lanes2{display:grid;grid-template-columns:minmax(0,.44fr) minmax(0,1fr);gap:10px}
.lanes2>div{padding:16px 18px 18px;border-radius:14px;background:color-mix(in srgb,var(--bg) 42%,var(--paper));box-shadow:inset 0 0 0 1px var(--line2)}
.lanes2 b{display:block;font-weight:500;font-size:15.5px;line-height:1.3;color:var(--ink)}
.lanes2 .sig{margin-top:12px}
.lanes2 .un{background:var(--paper);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--amber) 50%,var(--line))}

/* a live placement diagram as two panels: inside the agent, and outside it */
.place2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.place2>div{display:grid;align-content:start;gap:10px;padding:18px 20px 20px;border-radius:14px;background:color-mix(in srgb,var(--bg) 42%,var(--paper));box-shadow:inset 0 0 0 1px var(--line2)}
.place2>.us{background:var(--paper);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--turq) 45%,var(--line))}
.place2 b{font-weight:500;font-size:16.5px;line-height:1.25;letter-spacing:-.02em;color:var(--ink)}
.place2 b+span{margin-top:-7px;font-size:13.5px;color:var(--muted)}
.place2 p{font-size:14.5px;line-height:1.5;color:var(--ink2)}
.place2 p i{display:block;font-style:normal;font-size:12.5px;color:var(--muted)}
.place2 .best{margin-top:2px;padding-top:10px;border-top:1px solid var(--line2);color:var(--ink)}
.place2 .sig{margin-top:0}
.chain{list-style:none;margin:2px 0;padding:0;display:flex;align-items:stretch;gap:18px}
.chain li{position:relative;flex:1;display:grid;align-content:center;padding:9px 10px;border-radius:10px;background:var(--paper);box-shadow:inset 0 0 0 1px var(--line);font-size:13.5px;line-height:1.3;color:var(--ink);text-align:center}
.chain li small{display:block;font-size:12px;color:var(--muted)}
.chain li+li::before{content:"";position:absolute;left:-14px;top:50%;width:10px;height:1px;background:var(--muted)}
.art li strong{font-weight:500;color:var(--ink)}

/* a wider comparison (four columns), and one where no column is the page's own */
.cmp-t.c4 thead th:first-child,.cmp-t.c4 tbody th{width:19%}
.cmp-t.c4 td,.cmp-t.c4 td:nth-child(2){width:27%}
.cmp-t.plain thead th:last-child,.cmp-t.plain td:last-child{background:none}
.cmp-t.plain thead th:last-child{color:var(--muted)}
.cmp-t.plain td:last-child{color:var(--ink2)}
.sheet .gcol .fold-in.tbl:has(.c4){max-width:1180px}

/* the video inside the guide column: its question on the left, the player on the right */
.sheet .gcol .fold-in.gwatch{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:44px;align-items:center;max-width:1080px}
.gwatch h2{margin-bottom:16px}
.gwatch p:not(.note){font-size:16.5px;line-height:1.62;color:var(--ink2);max-width:22em}

@media (max-width:1100px){.sheet .gcol .fold-in.gwatch{grid-template-columns:1fr;gap:22px}.gwatch p:not(.note){max-width:44em}.gwatch .vid{max-width:640px}}
/* a long opening answer must never run under the facts strip: the strip sits in the flow at the foot of the opening, which grows only when it has to */
@media (min-width:901px){
  .fold.hero:has(.hero-foot){display:flex;flex-direction:column;min-height:100vh}
  .hero:has(.hero-foot) .fold-in{min-height:0;flex:1 0 auto;width:100%;padding-bottom:20px}
  .hero:has(.hero-foot) .hero-foot{position:relative;left:auto;right:auto;bottom:auto;margin:0 46px 3.6vh}
}
@media (max-width:1100px){.gwrap{grid-template-columns:200px minmax(0,1fr)}.rail nav{padding-left:32px}.sheet .gcol .fold{padding:0 32px 0 30px}.flow4{grid-template-columns:1fr 1fr}}
@media (max-width:900px){
  .gwrap{grid-template-columns:1fr}
  .rail nav{position:static;max-height:none;padding:7vh 18px 0}
  .rail ol{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;border-left:0}
  .rail a{margin-left:0;padding:7px 0;border-left:0;border-bottom:1px solid var(--line2)}
  .sheet .gcol .fold{padding:0 18px}
  .sheet .gcol .fold-in{padding-top:7vh}
  .art>p,.art>ol,.art>ul{font-size:16px}
  .art>ol>li,.art>ul>li{padding-left:36px}
  .flow4{grid-template-columns:1fr}
  .sheet .fold-in.watch{grid-template-columns:1fr}
  .gcol .fig .win{min-height:0;aspect-ratio:16/10}
  .cmp-t td,.cmp-t td:nth-child(2),.cmp-t tbody th,.cmp-t.c4 td,.cmp-t.c4 td:nth-child(2),.cmp-t.c4 tbody th{width:auto}
  .lanes2{grid-template-columns:1fr}
  .place2{grid-template-columns:1fr}
  .cmp-t td::before{content:attr(data-l);display:block;margin-bottom:1px;font-size:12px;color:var(--muted)}
  .cmp-t td+td{margin-top:10px}
  .cmp-t thead th:last-child,.cmp-t td:last-child{background:none}
}
