/*
 * The 360° page shows what you buy (inc/protocol.php), 0.14.0: the grade scale and the three levels.
 * Lists are divs with role=list (content list rules would reach a <ul>).
 */

/* ------------------------------------------------------------------- scale ---- */

.agk-scale { margin: 8px 0 0; max-width: none; }
.agk-scale__bar { display: flex; height: 56px; }
.agk-scale__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: 0;
  min-width: 34px;
  font-size: 24px; /* large text: the 3:1 contrast rule holds on every tone */
  font-weight: 500;
  color: #fff;
}
.agk-scale__seg.is-1 { background: var(--brick); }
.agk-scale__seg.is-2 { background: #a35422; }
.agk-scale__seg.is-3 { background: #2f6688; }
.agk-scale__seg.is-4 { background: var(--brand); }
.agk-scale__seg.is-5 { background: #02283e; }
.agk-scale__ticks { position: relative; display: flex; margin: 8px 0 28px; font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.agk-scale__ticks span { flex-basis: 0; min-width: 34px; padding-left: 6px; border-left: 1px solid var(--agk-line); }
.agk-scale__ticks b { position: absolute; right: 0; top: 0; font-weight: 400; }

.agk-scale__grades { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--agk-line); }
.agk-scale__grade { padding: 20px 18px 18px 0; min-width: 0; }
.agk-scale__grade + .agk-scale__grade { padding-left: 18px; border-left: 1px solid var(--agk-line); }
.entry-content .agk-scale p { margin: 0; max-width: none; }
.agk-scale .agk-scale__g { font-size: 15px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.agk-scale__g span { font-size: 26px; font-weight: 500; color: var(--navy); margin-right: 4px; }
.agk-scale .agk-scale__label { margin: 2px 0 10px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.agk-scale .agk-scale__meaning { margin-bottom: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.agk-scale .agk-scale__next { font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--navy); }

/* ------------------------------------------------------------------ levels ---- */

.agk-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; max-width: none; }
.agk-levels__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 26px 24px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--agk-line);
}
.agk-levels__card.is-start { border-top: 4px solid var(--brick); box-shadow: inset 0 0 0 1px var(--navy); }
.entry-content .agk-levels p { margin: 0; max-width: none; }
.agk-levels .agk-levels__step { font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brick-ink); }
.entry-content .agk-levels .agk-levels__name { margin: 10px 0 0; font-size: 22px; line-height: 1.3; color: var(--navy); }
.agk-levels .agk-levels__dur { margin-top: 14px; font-size: 34px; line-height: 1.1; font-weight: 500; color: var(--navy); }
.agk-levels .agk-levels__under { margin-top: 4px; font-size: 13px; color: var(--ink-muted); }
.agk-levels .agk-levels__text { flex: 1; margin: 16px 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.agk-levels__btn {
  align-self: flex-start;
  padding: 12px 18px;
  font-weight: 500;
  color: var(--on-dark);
  background: var(--brick);
  text-decoration: none;
  transition: background-color 0.15s var(--ease);
}
.agk-levels__btn:hover { color: var(--on-dark); background: #9e2e20; }
.agk-levels__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.agk-levels__after { font-weight: 500; color: var(--ink-muted); }

@media (max-width: 640px) {
  /* The last segment is narrow on a phone: its lower bound (90) is enough, "100" would sit on it. */
  .agk-scale__ticks b { display: none; }
}
@media (max-width: 1000px) {
  .agk-scale__grades { grid-template-columns: minmax(0, 1fr); }
  .agk-scale__grade + .agk-scale__grade { padding-left: 0; border-left: 0; border-top: 1px solid var(--agk-line); }
  .agk-levels { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .agk-levels__btn { transition: none; } }

/* ----------------------------------------------------------------- pillars ---- */
/* 0.27.0, page /360-irp/: the 10 Pillars as a plain numbered list in two columns, read down (01–05, then 06–10), with
   the hairlines the site uses in the footer and the FAQ. Number in navy, name, question below. One column on phones.
   Content: .agk-pillars > .agk-pillar (p.agk-pillar__num, h3, p.agk-pillar__q). No script. */

.entry-content .agk-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  column-gap: clamp(32px, 5vw, 72px);
  max-width: none;
  margin-top: 12px;
}
.entry-content .agk-pillar {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 16px;
  align-content: start;
  margin: 0;
  padding: 22px 0 24px;
  border-top: 1px solid var(--agk-line-strong, var(--agk-line));
}
.entry-content .agk-pillar:nth-child(5n) { border-bottom: 1px solid var(--agk-line-strong, var(--agk-line)); }
.entry-content .agk-pillar > * { grid-column: 2; margin: 0; max-width: none; }
.entry-content .agk-pillar > .agk-pillar__num {
  grid-column: 1;
  grid-row: 1 / span 2;
  color: var(--navy);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.entry-content .agk-pillar > h3 { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.3; }
.entry-content .agk-pillar > .agk-pillar__q { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

@media (max-width: 767px) {
  .entry-content .agk-pillars { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .entry-content .agk-pillar { grid-template-columns: 44px minmax(0, 1fr); padding: 18px 0 20px; }
  .entry-content .agk-pillar:nth-child(5n) { border-bottom: 0; }
  .entry-content .agk-pillar:last-child { border-bottom: 1px solid var(--agk-line-strong, var(--agk-line)); }
  .entry-content .agk-pillar > .agk-pillar__num { font-size: 24px; }
}
