/* Agent Governance Framework: page-specific styles. Builds on /styles.css tokens. */

/* Hero */
.ag-hero .post__back { margin-bottom: 28px; position: relative; z-index: 2; }
.ag-hero__row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 36px; }
.ag-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s ease, border-color .2s ease; }
.ag-link:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* Section heads */
.ag-head { max-width: 760px; margin-bottom: 56px; }
.ag-head h2 { margin-top: 14px; font-size: clamp(34px, 4.2vw, 56px); max-width: 16ch; }
.ag-head > p:not(.mono), .ag-head--row > p { margin-top: 20px; max-width: 36em; color: var(--text); }
.ag-head--row { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 56px; align-items: end; }
.ag-head--row > p { margin-top: 0; }

/* ---------- Framework wheel ---------- */
.ag-fw { padding: clamp(90px, 11vw, 150px) 0; }
.ag-fw__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ag-wheel { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin: 0 auto; }
.ag-wheel__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ag-wheel__ring { fill: none; stroke: var(--line); stroke-width: .35; stroke-dasharray: 1 1.2; vector-effect: non-scaling-stroke; }
.ag-spoke { fill: none; stroke: #c9d2ff; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke .3s ease, stroke-width .3s ease; }
.ag-wheel.in .ag-spoke { animation: agDraw 1.2s var(--ease) forwards; animation-delay: calc(.2s + var(--i) * 90ms); }
.ag-spoke.is-on { stroke: var(--blue); stroke-width: 2.5; }
.ag-pulse { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: .08 .92; opacity: 0; animation: agPulse var(--t, 3.4s) linear infinite; animation-delay: var(--d, 0s); }
.ag-wheel.in .ag-pulse { opacity: .9; transition: opacity .6s ease 1.2s; }
@keyframes agDraw { to { stroke-dashoffset: 0; } }
@keyframes agPulse { from { stroke-dashoffset: .08; } to { stroke-dashoffset: -.92; } }

.ag-wheel__core { position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; background: var(--navy); color: #fff; box-shadow: 0 0 0 10px rgba(18, 54, 255, .06), 0 0 0 22px rgba(18, 54, 255, .04); }
.ag-wheel__core .dots { margin-bottom: 8px; }
.ag-wheel__core .dots i { animation: agBlink 2.4s ease-in-out infinite; }
.ag-wheel__core .dots i:nth-child(2) { animation-delay: .3s; }
.ag-wheel__core .dots i:nth-child(3) { animation-delay: .6s; }
@keyframes agBlink { 50% { opacity: .3; } }

.ag-node { position: absolute; left: var(--x); top: var(--y); width: 27%; min-height: 19%; transform: translate(-50%, -50%); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; padding: 10px 12px; text-align: left; background: var(--bg-2); color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; box-shadow: inset 0 0 0 1px var(--line); opacity: 0; transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, transform .4s var(--ease); }
.ag-wheel.in .ag-node { animation: agNodeIn .7s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * 90ms); }
@keyframes agNodeIn { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.ag-node .mono { font-size: 11px; color: var(--blue); transition: color .3s ease; }
.ag-node:hover, .ag-node.is-on { background: var(--blue); color: #fff; box-shadow: none; }
.ag-node:hover .mono, .ag-node.is-on .mono { color: rgba(255, 255, 255, .8); }
.ag-node.is-on { transform: translate(-50%, -50%) scale(1.04); }

.ag-panel { position: relative; min-height: 420px; padding: 36px; background: var(--navy); color: #fff; overflow: hidden; }
.ag-panel::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #7f95ff; transform: scaleX(var(--cycle, 0)); transform-origin: left; }
.ag-panel__n { display: block; font-size: clamp(40px, 4vw, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: #7f95ff; }
.ag-panel h3 { margin-top: 18px; font-size: clamp(28px, 2.6vw, 36px); }
.ag-panel > p, .ag-panel__body > p { margin-top: 16px; color: rgba(255, 255, 255, .82); max-width: 34em; }
.ag-panel .mono { display: block; margin-top: 26px; margin-bottom: 10px; opacity: .7; }
.ag-panel ul { display: grid; gap: 8px; }
.ag-panel li { position: relative; padding-left: 20px; font-size: 15.5px; color: rgba(255, 255, 255, .9); }
.ag-panel li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: #7f95ff; }
.ag-panel__scale { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 26px; background: rgba(255, 255, 255, .14); }
.ag-panel__scale div { padding: 14px 16px; background: var(--navy); font-size: 14.5px; color: rgba(255, 255, 255, .85); }
.ag-panel__scale b { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: #7f95ff; }
.ag-panel__body { animation: agFade .5s var(--ease); }
@keyframes agFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Tiers ---------- */
.ag-tiers { padding: clamp(90px, 11vw, 150px) 0; background: var(--bg-2); }
.ag-tiers__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.ag-tierlist { display: grid; gap: 12px; }
.ag-tierlist li { position: relative; padding: 22px 24px 22px 28px; background: #fff; transition: background-color .4s ease, color .4s ease, transform .4s var(--ease); }
.ag-tierlist li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line); transition: background-color .4s ease; }
.ag-tierlist li[data-tier="2"]::before { background: #9fb0ff; }
.ag-tierlist li[data-tier="3"]::before { background: var(--blue); }
.ag-tierlist li[data-tier="4"]::before { background: var(--navy); }
.ag-tierlist .mono { color: #6b7079; }
.ag-tierlist h3 { margin-top: 6px; font-size: 24px; letter-spacing: -0.03em; }
.ag-tierlist p { margin-top: 6px; font-size: 15px; color: var(--text); }
.ag-tierlist li.is-on { background: var(--navy); color: #fff; transform: translateX(6px); }
.ag-tierlist li.is-on::before { background: #7f95ff; }
.ag-tierlist li.is-on .mono { color: #9fb0ff; }
.ag-tierlist li.is-on p { color: rgba(255, 255, 255, .8); }
.ag-rules { display: grid; gap: 18px; }
.ag-ptable { font-size: 15px; background: #fff; }
.ag-ptable td:first-child { white-space: nowrap; }
.ag-rules__label { margin-top: 10px; color: #6b7079; }
.ag-rulelist { display: grid; gap: 8px; }
.ag-rulelist li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: #fff; font-size: 15px; color: var(--text); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .3s ease, color .3s ease; }
.ag-rulelist li span { flex: 0 0 24px; height: 24px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; background: var(--bg-2); color: var(--ink); transition: background-color .3s ease, color .3s ease; }
.ag-rulelist li.is-hit { color: var(--ink); box-shadow: inset 0 0 0 1px var(--blue); }
.ag-rulelist li.is-hit span { background: var(--blue); color: #fff; }

/* ---------- Builder ---------- */
.ag-builder { padding: clamp(90px, 11vw, 150px) 0 clamp(80px, 10vw, 130px); }
.ag-build { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); grid-template-rows: auto auto 1fr; gap: 14px 40px; align-items: start; }
.ag-form { grid-column: 1; grid-row: 1; }
.ag-pane { grid-column: 2; grid-row: 1 / span 3; }
.ag-means { grid-column: 1; grid-row: 2; }
.ag-lead { grid-column: 1; grid-row: 3; }

.ag-form { display: grid; gap: 14px; }
.ag-q { border: 0; padding: 26px 24px; background: var(--bg-2); display: grid; gap: 16px; min-width: 0; }
.ag-q legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 12px; font-size: 21px; font-weight: 500; letter-spacing: -0.025em; }
.ag-q legend + * { clear: both; }
.ag-q__n { font-size: 15px; font-weight: 500; color: var(--blue); letter-spacing: -0.02em; }
.ag-field { display: grid; gap: 8px; font-size: 14.5px; font-weight: 500; }
.ag-field em { font-style: normal; font-weight: 400; color: #6b7079; margin-left: 6px; }
.ag-field input, .ag-field select { width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 0; transition: border-color .2s ease, box-shadow .2s ease; }
.ag-field select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231236ff' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.ag-field input:hover, .ag-field select:hover { border-color: #c4c8d0; }
.ag-field input:focus, .ag-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.ag-field input::placeholder { color: #a3a7ae; }
.ag-field--sm input { max-width: 240px; }

.ag-opts { display: grid; gap: 8px; }
.ag-opts--2 { grid-template-columns: 1fr 1fr; }
.ag-opt { position: relative; cursor: pointer; }
.ag-opt input, .ag-check input, .ag-segbtn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ag-opt > span { display: grid; align-content: start; gap: 3px; height: 100%; padding: 14px 16px 14px 44px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s ease, background-color .2s ease; }
.ag-opt > span::before { content: ""; position: absolute; left: 16px; top: 17px; width: 14px; height: 14px; box-shadow: inset 0 0 0 1.5px #b9bec7; background: #fff; transition: box-shadow .2s ease, background-color .2s ease; }
.ag-opt b { font-weight: 500; font-size: 15.5px; }
.ag-opt small { font-size: 13.5px; line-height: 1.4; color: var(--text); }
.ag-opt:hover > span { box-shadow: inset 0 0 0 1px #c4c8d0; }
.ag-opt input:checked + span { box-shadow: inset 0 0 0 2px var(--blue); background: #f5f7ff; }
.ag-opt input:checked + span::before { background: var(--blue); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--blue); }
.ag-opt input:focus-visible + span, .ag-check input:focus-visible + span, .ag-segbtn input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }

.ag-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-check { position: relative; cursor: pointer; }
.ag-check > span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; background: #fff; font-size: 14.5px; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.ag-check > span::before { content: ""; width: 12px; height: 12px; flex: 0 0 12px; box-shadow: inset 0 0 0 1.5px #b9bec7; transition: background-color .2s ease, box-shadow .2s ease; }
.ag-check:hover > span { box-shadow: inset 0 0 0 1px #c4c8d0; }
.ag-check input:checked + span { background: var(--blue); color: #fff; box-shadow: none; }
.ag-check input:checked + span::before { background: #fff; box-shadow: none; clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); }
.ag-check i { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #6b7079; }
.ag-check input:checked + span i { color: rgba(255, 255, 255, .75); }

.ag-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.ag-segbtn { position: relative; cursor: pointer; }
.ag-segbtn > span { display: grid; gap: 2px; height: 100%; padding: 12px 14px; background: #fff; font-weight: 500; font-size: 15.5px; transition: background-color .2s ease, color .2s ease; }
.ag-segbtn small { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.ag-segbtn:hover > span { background: #f5f7ff; }
.ag-segbtn input:checked + span { background: var(--blue); color: #fff; }
.ag-segbtn input:checked + span small { color: rgba(255, 255, 255, .75); }

.ag-form__foot { display: flex; justify-content: flex-end; padding: 4px 0; }
.ag-reset { font-size: 14.5px; color: var(--text); }

.ag-lead { margin-top: 0; padding: 32px; background: var(--blue); color: #fff; display: grid; gap: 12px; }
.ag-lead .mono { opacity: .8; }
.ag-lead h3 { font-size: clamp(26px, 2.4vw, 32px); }
.ag-lead > p:not(.mono) { color: rgba(255, 255, 255, .86); font-size: 15.5px; max-width: 34em; }
.ag-lead__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ag-lead .btn--blue { background: #fff; color: var(--blue); }
.ag-lead .btn--blue:hover { background: #e9edff; }
.ag-btn2 { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 18px; font-size: 15px; font-weight: 500; white-space: nowrap; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); transition: background-color .25s ease, transform .2s var(--ease); }
.ag-btn2:hover { background: rgba(255, 255, 255, .12); }
.ag-btn2:hover .ar { transform: translate(2px, -2px); }
.ag-btn2:active { transform: scale(.98); }

/* Pane: tier card, toolbar, document */
.ag-pane { position: sticky; top: 84px; display: flex; flex-direction: column; max-height: calc(100vh - 100px); min-width: 0; background: var(--bg-2); }
.ag-tier { --tc: #9fb0ff; position: relative; padding: 22px 24px 18px; background: var(--navy); color: #fff; transition: background-color .5s ease; }
.ag-tier[data-tier="3"] { --tc: #fff; background: var(--blue); }
.ag-tier[data-tier="4"] { --tc: #fff; background: var(--navy-2); }
.ag-tier__top { display: flex; justify-content: space-between; gap: 12px; }
.ag-tier__top .mono { opacity: .75; }
.ag-tier__main { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.ag-tier__n { display: inline-block; font-size: clamp(36px, 3.4vw, 46px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.ag-tier__name { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--tc); }
.ag-tier.is-bump .ag-tier__n, .ag-tier.is-bump .ag-tier__name { animation: agBump .6s var(--ease); }
@keyframes agBump { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
.ag-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 16px; }
.ag-meter i { height: 4px; background: rgba(255, 255, 255, .18); transition: background-color .5s var(--ease), transform .5s var(--ease); transform-origin: left; }
.ag-tier[data-tier="1"] .ag-meter i:nth-child(-n+1),
.ag-tier[data-tier="2"] .ag-meter i:nth-child(-n+2),
.ag-tier[data-tier="3"] .ag-meter i:nth-child(-n+3),
.ag-tier[data-tier="4"] .ag-meter i:nth-child(-n+4) { background: var(--tc); }
.ag-why { margin-top: 12px; }
.ag-why summary { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; list-style: none; opacity: .85; }
.ag-why summary::-webkit-details-marker { display: none; }
.ag-why summary:hover { opacity: 1; }
.ag-why .plus { width: 10px; height: 10px; flex-basis: 10px; }
.ag-why .plus::before, .ag-why .plus::after { width: 10px; top: 4.25px; background: #fff; }
.ag-why[open] .plus::after { transform: rotate(0deg); }
.ag-why ul { display: grid; gap: 4px; margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.ag-why li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ag-why li b { font-weight: 500; color: #fff; white-space: nowrap; }
.ag-why li.ag-why__rule { display: block; border-bottom: 0; color: #fff; }

.ag-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.ag-tool { flex: 1 1 auto; display: inline-flex; justify-content: center; align-items: center; gap: 8px; height: 46px; padding: 0 14px; background: #fff; font-size: 14px; font-weight: 500; color: var(--ink); transition: background-color .2s ease, color .2s ease; }
.ag-tool .ic { width: 16px; height: 16px; flex-basis: 16px; color: var(--blue); }
.ag-tool:hover { background: #f5f7ff; color: var(--blue); }
.ag-tool:active { transform: scale(.98); }
.ag-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ag-bar { position: relative; }
.ag-toast { position: absolute; right: 12px; top: calc(100% + 10px); z-index: 3; padding: 8px 12px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; animation: agToast 2.2s var(--ease) forwards; }
@keyframes agToast { 0% { opacity: 0; transform: translateY(-6px); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Policy document */
.ag-doc { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 36px 36px 44px; background: #fff; margin: 14px; box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(13, 36, 99, .07); font-size: 15px; line-height: 1.6; color: #2c2f35; scrollbar-width: thin; }
.ag-doc:focus-visible { outline-offset: -2px; }
.doc__head { padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.doc__kicker { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #6b7079; }
.doc__title { margin-top: 14px; font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -0.035em; line-height: 1.08; color: var(--ink); }
.doc__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 20px; font-size: 14px; }
.doc__meta div { display: grid; gap: 2px; }
.doc__meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #6b7079; }
.doc__meta dd { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.doc__badge { display: inline-flex; align-items: center; gap: 8px; }
.doc__badge::before { content: ""; width: 8px; height: 8px; background: var(--blue); }
.doc__disc { margin-top: 18px; padding: 12px 14px; background: var(--bg-2); font-size: 13.5px; color: var(--text); }
.doc__sec { position: relative; padding: 22px 0 4px; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.doc__sec::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 0; width: 3px; background: var(--blue); opacity: 0; }
.doc__sec.is-flash { animation: agFlash 1.4s var(--ease); }
.doc__sec.is-flash::before { animation: agBar 1.4s var(--ease); }
@keyframes agFlash { 0% { background: #e9edff; } 100% { background: transparent; } }
@keyframes agBar { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.doc__sec h3 { display: flex; gap: 10px; align-items: baseline; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.25; }
.doc__sec h3 span { font-size: 14px; color: var(--blue); font-weight: 500; }
.doc__sec h4 { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.doc__sec p { margin-top: 10px; }
.doc__sec ul { margin-top: 10px; display: grid; gap: 6px; }
.doc__sec li { position: relative; padding-left: 18px; }
.doc__sec li::before { content: ""; position: absolute; left: 0; top: .66em; width: 6px; height: 6px; background: var(--blue); }
.doc__sec strong { color: var(--ink); font-weight: 600; }
.doc__sec .table-wrap { margin-top: 12px; }
.doc__table { font-size: 13.5px; }
.doc__table th, .doc__table td { padding: 9px 10px; }
.doc__table thead th { font-size: 10.5px; }
.doc__table td:first-child { white-space: normal; min-width: 120px; }
.doc__cell { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.doc__short { display: none; }
.doc__cell--yes { color: var(--blue); }
.doc__cell--lim { color: var(--navy); }
.doc__cell--hum { color: #8a4b00; }
.doc__cell--no { color: #6b7079; }
.doc__note { margin-top: 10px; font-size: 13.5px; color: var(--text); }
.doc__sign td { height: 46px; }
.doc__foot { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: #6b7079; }

/* Note */
.ag-note { margin-top: 40px; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px 32px; padding: 26px 28px; border-top: 2px solid var(--ink); background: var(--bg-2); }
.ag-note .mono { color: var(--blue); padding-top: 3px; }
.ag-note p:not(.mono) { color: var(--text); max-width: 60em; font-size: 15.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .ag-fw__grid, .ag-tiers__grid, .ag-build, .ag-head--row { grid-template-columns: 1fr; }
  .ag-panel { min-height: 0; }
  .ag-pane { position: relative; top: 0; max-height: none; }
  .ag-doc { overflow: visible; }
  .ag-build { gap: 28px; grid-template-rows: none; }
  .ag-form, .ag-pane, .ag-lead, .ag-means { grid-column: auto; grid-row: auto; }
}
@media (max-width: 760px) {
  .ag-head { margin-bottom: 36px; }
  .ag-node { width: 30%; padding: 8px; font-size: 12px; gap: 2px; }
  .ag-node .mono { font-size: 10px; }
  .ag-wheel__core { width: 24%; }
  .ag-wheel__core .mono { font-size: 10px; }
  .ag-panel { padding: 28px 22px; }
  .ag-panel__scale { grid-template-columns: 1fr; }
  .ag-q { padding: 22px 16px; }
  .ag-q legend { font-size: 19px; }
  .ag-opts--2 { grid-template-columns: 1fr; }
  .ag-segbtn > span { padding: 10px; font-size: 15px; }
  .ag-segbtn small { font-size: 10px; }
  .ag-field--sm input { max-width: none; }
  .ag-lead { padding: 26px 20px; }
  .ag-lead__row > a { width: 100%; justify-content: space-between; }
  .ag-tool { flex: 1 1 100%; justify-content: flex-start; }
  .ag-doc { margin: 0; padding: 26px 18px 32px; box-shadow: none; }
  .doc__meta { grid-template-columns: 1fr; }
  .doc__sec { margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
  .ag-note { grid-template-columns: 1fr; padding: 22px 18px; }
  .ag-tierlist li.is-on { transform: none; }
  .ag-ptable td:first-child { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-node { opacity: 1; }
  .ag-spoke { stroke-dashoffset: 0; }
  .ag-pulse { display: none; }
  .ag-panel::after { display: none; }
}

/* ---------- Print: only the policy document ---------- */
@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; font-size: 11pt; }
  .skip, .nav, .phero, .ag-fw, .ag-tiers, .cta, .foot, .ag-head, .ag-form, .ag-tier, .ag-bar, .ag-note, .ag-toast { display: none !important; }
  .ag-builder { padding: 0; }
  .ag-builder .wrap { max-width: none; padding: 0; }
  .ag-build { display: block; }
  .ag-pane { position: static; max-height: none; background: none; }
  .ag-doc { overflow: visible; margin: 0; padding: 0; box-shadow: none; font-size: 10.5pt; color: #000; }
  .js [data-rise] { opacity: 1 !important; transform: none !important; }
  .doc__sec { break-inside: auto; margin: 0; padding-left: 0; padding-right: 0; }
  .doc__sec h3 { break-after: avoid; }
  .doc__sec.is-flash, .doc__sec.is-flash::before { animation: none; }
  .doc__table tr { break-inside: avoid; }
  .ptable thead th { background: #0d2463 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ptable tbody tr:nth-child(odd), .doc__disc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .table-wrap { overflow: visible; }
}
.doc__ol li { padding-left: 0; }
.doc__ol li::before { display: none; }
.doc__ol li strong:first-child { color: var(--blue); }

/* Mobile: floating tier chip while answering */
.ag-mtier { display: none; }
@media (max-width: 1000px) {
  .ag-mtier:not([hidden]) { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l go" "t go"; align-items: center; gap: 0 16px; padding: 10px 16px; background: var(--navy); color: #fff; box-shadow: 0 10px 30px rgba(13, 36, 99, .25); animation: agChip .45s var(--ease); }
  .ag-mtier .mono { grid-area: l; font-size: 10.5px; opacity: .75; }
  .ag-mtier b { grid-area: t; font-weight: 500; font-size: 16px; letter-spacing: -0.02em; }
  .ag-mtier__go { grid-area: go; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
  .ag-mtier.is-bump b { animation: agBump .6s var(--ease); }
}
@keyframes agChip { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .doc__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .doc__short { display: inline !important; }
  .doc__table th, .doc__table td { padding: 8px 6px; }
  .doc__table td:first-child { min-width: 92px; }
}
@media print { .ag-mtier, .ag-lead { display: none !important; } }

/* ---------- Field guide layer: hero, warm-up quiz, result ---------- */
.ag-hero .lx-hero { align-items: center; }
.ag-hero .lx-fig { max-width: 560px; justify-self: end; }
.ag-fw .lx-why, .ag-q .lx-why { margin-top: 0; }
.ag-q .lx-why__body { font-size: 14.5px; }

.ag-warm { padding: clamp(90px, 11vw, 150px) 0; background: #fff; }
.ag-qz { position: relative; display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); background: var(--bg-2); border-top: 3px solid var(--blue); animation: agQz .55s var(--ease) both; }
@keyframes agQz { from { opacity: 0; transform: translateY(12px); } }
.ag-qz__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ag-qz__top .mono { color: var(--blue); }
.ag-qz__dots { display: flex; gap: 6px; }
.ag-qz__dots li { width: 28px; height: 6px; background: var(--line); transition: background-color .4s ease; }
.ag-qz__dots li.is-now { background: #9fb0ff; }
.ag-qz__dots li.is-ok { background: var(--blue); }
.ag-qz__dots li.is-miss { background: var(--navy); opacity: .45; }
.ag-qz__name { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.03em; outline: none; }
.ag-qz__brief { max-width: 44em; color: var(--text); font-size: 17px; }
.ag-qz__ask { color: var(--text); }
.ag-qz__tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ag-qz__tier { display: grid; gap: 4px; min-height: 76px; padding: 14px 16px; text-align: left; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s ease, background-color .25s ease, color .25s ease, transform .25s var(--ease); }
.ag-qz__tier .mono { color: #5d626b; font-size: 11px; }
.ag-qz__tier b { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.ag-qz__tier:not(:disabled):hover { box-shadow: inset 0 0 0 2px var(--blue); transform: translateY(-2px); }
.ag-qz__tier:disabled { cursor: default; opacity: .55; }
.ag-qz__tier.is-picked { opacity: 1; box-shadow: inset 0 0 0 2px var(--navy); }
.ag-qz__tier.is-right { opacity: 1; background: var(--blue); color: #fff; box-shadow: none; }
.ag-qz__tier.is-right .mono { color: rgba(255, 255, 255, .8); }
.ag-qz__fb { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.ag-qz__fb[hidden] { display: none; }
.ag-qz__verdict { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; outline: none; }
.ag-qz__verdict.is-ok { color: var(--blue); }
.ag-qz__math { display: grid; gap: 2px; max-width: 560px; }
.ag-qz__math li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; background: #fff; font-size: 15px; color: var(--text); animation: agRow .45s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.ag-qz__math li b { font-weight: 500; color: var(--ink); white-space: nowrap; }
.ag-qz__math li.is-sum { background: var(--navy); color: rgba(255, 255, 255, .85); }
.ag-qz__math li.is-sum b { color: #fff; }
.ag-qz__math li.is-rule { background: var(--blue); color: #fff; }
.ag-qz__math li.is-rule b { color: #fff; }
@keyframes agRow { from { opacity: 0; transform: translateX(-10px); } }
.ag-qz__lesson { max-width: 44em; padding-left: 14px; border-left: 2px solid var(--blue); font-size: 16px; }
.ag-qz__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 4px; }
.ag-qz__row .ag-link { min-height: 44px; border-bottom: 0; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.ag-qz__big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; outline: none; }
.ag-qz__big b { font-size: clamp(56px, 7vw, 88px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: var(--blue); }
.ag-qz__big span { font-size: 20px; font-weight: 500; }
.ag-qz__recap { display: grid; gap: 2px; }
.ag-qz__recap li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 10px 14px 10px 36px; position: relative; background: #fff; font-size: 15px; }
.ag-qz__recap li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: var(--blue); }
.ag-qz__recap li.is-miss::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--navy); }
.ag-qz__recap .mono { color: #5d626b; font-size: 11px; }
.ag-myth { margin-top: 32px; }

.ag-means { position: relative; display: grid; gap: 16px; padding: 28px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-top: 3px solid var(--blue); }
.ag-means__top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ag-means__top .mono { color: var(--blue); }
.ag-means__score { color: #5d626b !important; }
.ag-means__score b { font-weight: 500; color: var(--ink); }
.ag-means h3 { font-size: clamp(28px, 2.8vw, 38px); letter-spacing: -0.035em; }
.ag-means__rail { margin: 4px 0 6px; }
.ag-means__rail .lx-rail__pin { width: 22px; } /* pin collapses to 0 width at --v:1 without this */
.ag-means__label { margin-top: 6px; color: #5d626b; }
.ag-means__body { display: grid; gap: 8px; }
.ag-means__body > p:not(.mono) { font-size: 16px; color: var(--ink); }
.ag-levers { display: grid; gap: 6px; }
.ag-levers li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 12px; background: var(--bg-2); font-size: 15px; color: var(--text); }
.ag-levers li b { font-weight: 500; color: var(--ink); }
.ag-levers .mono { font-size: 10.5px; color: var(--blue); }
.ag-levers li.is-up .mono { color: var(--navy); }
.ag-means.is-reveal .ag-means__body { animation: agQz .7s var(--ease) both; }
.ag-means__note { margin-top: 4px; }

@media (max-width: 760px) {
  .ag-qz__tiers { grid-template-columns: 1fr 1fr; }
  .ag-qz__row .btn { width: 100%; justify-content: space-between; }
  .ag-means { padding: 22px 16px; }
  .ag-levers li { grid-template-columns: 1fr; gap: 2px; }
  .ag-qz__math li { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-qz, .ag-qz__math li, .ag-means.is-reveal .ag-means__body { animation: none; }
  .ag-qz__tier { transition: none; }
}
@media print { .ag-warm, .ag-means, .lx-guide { display: none !important; } }
/* Contrast: shared rail stops and myth label use --soft, which is under 4.5:1 on white */
.ag-means__rail .lx-rail__stops li, .ag-myth .mono { color: #6b7079; }
.ag-means__rail .lx-rail__stops li.is-reached { color: var(--ink); }
.ag-myth > div + div .mono { color: var(--blue); }
@media (max-width: 760px) { .ag-means__rail .lx-rail__stops li { font-size: 10px; letter-spacing: .02em; } }
