/* The hundred questions: nine chapters of a life, one colour each. */
.era-bar.nine { grid-template-columns: repeat(9, 1fr); }
.qpage .concept-tag { bottom: 84px; }
.js-only { display: none; } .js .js-only { display: inline; } .js .nojs-only { display: none; }

.q-hero { padding: 40px 0 56px; }
.q-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.crumbs { font-family: var(--f-label); font-size: 15px; color: #5B5852; }
.crumbs a { display: inline-block; padding: 10px 0; color: #5B5852; }
.q-hero h1 { font-family: var(--f-brand); font-weight: 500; font-variation-settings: "opsz" 96; font-size: clamp(2.5rem, 1.3rem + 3.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.01em; }
.standfirst { font-size: 22px; line-height: 1.5; margin-top: 20px; max-width: 32em; }
.byline { font-family: var(--f-label); font-size: 15px; color: #5B5852; margin: 0; }
.byline a { color: #557267; }

.shelf .label { color: #5B5852; margin-bottom: 12px; }
.shelf ol { list-style: none; display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; align-items: end; height: 360px; }
.shelf li { height: 100%; display: flex; align-items: flex-end; }
.shelf li:nth-child(1) { height: 92%; } .shelf li:nth-child(2) { height: 86%; } .shelf li:nth-child(3) { height: 100%; }
.shelf li:nth-child(4) { height: 90%; } .shelf li:nth-child(5) { height: 80%; } .shelf li:nth-child(6) { height: 74%; }
.shelf li:nth-child(7) { height: 96%; } .shelf li:nth-child(8) { height: 84%; } .shelf li:nth-child(9) { height: 88%; }
.shelf a {
  display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%;
  background: var(--c); color: var(--f); text-decoration: none; padding: 12px 0 10px;
  border-radius: 3px 3px 0 0; transition: transform .25s;
  box-shadow: inset 0 10px 0 rgba(255,255,255,.12), inset 0 -16px 0 rgba(0,0,0,.12);
}
.shelf a:hover, .shelf a:focus-visible { transform: translateY(-10px); }
.shelf .s-n { font-family: var(--f-brand); font-weight: 600; font-size: 20px; line-height: 1; }
.shelf .s-t { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-label); font-size: 15px; font-weight: 500; margin: 12px 0 auto; white-space: nowrap; }
.shelf .s-r { font-family: var(--f-label); font-size: 12px; writing-mode: vertical-rl; transform: rotate(180deg); opacity: .95; }
.shelf ol::after { content: ""; grid-column: 1 / -1; }
.shelf { border-bottom: 10px solid #2E2E2E; padding-bottom: 0; }

.short-answer { background: #E9D0CD; padding: 34px 0; }
.sa-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: baseline; }
.sa-grid h2 { color: #557267; }
.sa-grid p { margin: 0; font-size: 21px; line-height: 1.55; max-width: 44em; color: #2E2E2E; }

.before { padding: 64px 0 24px; }
.before-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: baseline; margin-bottom: 24px; }
.before-head h2 { font-family: var(--f-brand); font-size: 30px; line-height: 1.1; }
.before-head p { margin: 0; font-size: 20px; }
.before-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-left: 252px; }
.before-list li { border-top: 3px solid #2E2E2E; padding-top: 14px; font-size: 18px; }
.before-list .b-n { display: block; font-family: var(--f-brand); font-size: 34px; line-height: 1; color: #557267; margin-bottom: 8px; }
.before-list strong { display: block; font-family: var(--f-brand); font-weight: 600; font-size: 22px; line-height: 1.2; margin-bottom: 4px; }

.how-to-use { padding-top: 26px; padding-bottom: 40px; }
.how-to-use p { margin: 0 0 0 252px; font-size: 18px; color: #5B5852; border-left: 3px solid #557267; padding-left: 14px; max-width: 46em; }
.how-to-use strong { color: #2E2E2E; }

/* a chapter of questions */
.theme { padding-bottom: 56px; }
.t-band { background: var(--c); color: var(--f); margin-bottom: 26px; }
.t-band-in { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: end; padding-top: 30px; padding-bottom: 22px; }
.t-num { font-family: var(--f-brand); font-weight: 600; font-size: 110px; line-height: .78; margin: 0; color: transparent; -webkit-text-stroke: 1.5px var(--f); }
.t-of { font-family: var(--f-label); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 6px; }
.theme h2 { font-family: var(--f-brand); font-weight: 500; font-size: clamp(2rem, 1.3rem + 2vw, 3.4rem); line-height: 1.02; font-variation-settings: "opsz" 96; }
.t-intro { margin: 0 0 18px 252px; font-size: 19px; font-style: italic; color: #5B5852; max-width: 40em; }
.qs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; margin-left: 252px; }
.q {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 30px; gap: 10px; align-items: start;
  width: 100%; min-height: 56px; padding: 14px 6px 14px 0; text-align: left; cursor: pointer;
  background: transparent; border: 0; border-top: 1px solid #DDD8CC; color: #2E2E2E;
  font: inherit; font-size: 19px; line-height: 1.42;
}
.q:hover .q-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.q-n { font-family: var(--f-brand); font-weight: 600; font-size: 26px; line-height: 1; color: var(--num); padding-top: 2px; font-variant-numeric: lining-nums; }
.q-a { width: 26px; height: 26px; border: 2px solid var(--num); border-radius: 50%; position: relative; margin-top: 1px; opacity: 0; }
.js .q-a { opacity: 1; }
.q-a::before, .q-a::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--num); transform: translate(-50%, -50%); }
.q-a::after { transform: translate(-50%, -50%) rotate(90deg); }
.q[aria-pressed="true"] { background: color-mix(in srgb, var(--num) 10%, #FBF8F2); }
.q[aria-pressed="true"] .q-a { background: var(--num); }
.q[aria-pressed="true"] .q-a::before { width: 6px; transform: translate(-90%, 0) rotate(45deg); background: #FBF8F2; left: 40%; top: 50%; }
.q[aria-pressed="true"] .q-a::after { width: 11px; transform: translate(-20%, -50%) rotate(-50deg); background: #FBF8F2; left: 40%; top: 50%; }

/* practical */
.practical { background: #2E2E2E; color: #EEF4E7; padding: 72px 0; }
.pr-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; }
.practical .label { color: #E9D0CD !important; margin-bottom: 10px; }
.practical h2 { font-family: var(--f-brand); font-weight: 500; font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.8rem); line-height: 1.08; margin-bottom: 16px; color: #FBF8F2; }
.practical ul { list-style: none; margin: 4px 0 18px; border-top: 1px solid #5B5852; }
.practical li { padding: 14px 0; border-bottom: 1px solid #5B5852; }
.practical li strong { color: #FBF8F2; font-family: var(--f-brand); font-size: 22px; font-weight: 600; display: block; }
.pr-after { border-left: 1px solid #5B5852; padding-left: 40px; }

.amanda-note { padding: 72px 0 40px; }
.an-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: center; }
.an-grid img { width: 160px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.an-grid h2 { color: #557267; margin-bottom: 8px; }
.an-grid blockquote { margin: 0; font-family: var(--f-brand); font-style: italic; font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); line-height: 1.3; max-width: 30em; font-variation-settings: "opsz" 28; }

.next { padding: 32px 0 96px; }
.next-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-left: 252px; border-top: 3px solid #2E2E2E; padding-top: 24px; }
.next h2 { font-family: var(--f-brand); font-size: 28px; margin-bottom: 10px; }
.next ul { list-style: none; }
.next li a { display: flex; min-height: 48px; align-items: center; border-bottom: 1px solid #DDD8CC; text-decoration: none; font-size: 19px; }
.next li a:hover { color: #557267; text-decoration: underline; }
.next-cta { background: #E9D0CD; padding: 24px 26px; }
.next-cta p { font-size: 19px; }
.next-cta .sig { font-family: var(--f-brand); font-style: italic; font-size: 22px; color: #557267; }

/* the list tray */
.tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: #2E2E2E; color: #FBF8F2; font-family: var(--f-label); box-shadow: 0 -6px 24px rgba(0,0,0,.18); }
.tray-bar { max-width: 1200px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.tray-count { margin: 0; font-size: 16px; }
.tray-count b { font-family: var(--f-brand); font-size: 26px; vertical-align: -2px; }
.tray-toggle { font: inherit; font-size: 16px; font-weight: 500; min-height: 44px; padding: 8px 18px; background: #FBF8F2; color: #2E2E2E; border: 0; border-radius: 2px; cursor: pointer; }
.tray-panel { max-width: 1200px; margin: 0 auto; padding: 4px 24px 22px; max-height: 60vh; overflow: auto; }
.tray-panel ol { list-style: none; border-top: 1px solid #5B5852; }
.tray-panel li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid #5B5852; font-family: var(--f-read); font-size: 18px; }
.tray-panel li b { font-family: var(--f-brand); color: #E9D0CD; }
.tray-empty { font-size: 16px; color: #D7E2D3; margin: 8px 0 0; }
.tray-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tray .btn { background: #FBF8F2; color: #2E2E2E; border-color: #FBF8F2; cursor: pointer; }
.tray .btn.ghost { background: transparent; color: #FBF8F2; border-color: #BFD0B9; }
.qpage .site-foot { padding-bottom: 120px; }

@media (max-width: 980px) {
  .q-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .shelf ol { grid-template-columns: repeat(3, 1fr); height: auto; gap: 6px; align-items: stretch; }
  .shelf li, .shelf li:nth-child(n) { height: auto; }
  .shelf a { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 10px 10px; min-height: 76px; border-radius: 2px; box-shadow: none; }
  .shelf a:hover { transform: none; }
  .shelf .s-t, .shelf .s-r { writing-mode: horizontal-tb; transform: none; margin: 0; white-space: normal; }
  .shelf .s-t { font-size: 14px; line-height: 1.25; width: 100%; order: 2; }
  .shelf .s-r { display: none; }
  .shelf { border-bottom: 0; }
  .sa-grid, .before-head, .t-band-in, .an-grid, .pr-grid, .next-grid { grid-template-columns: 1fr; gap: 12px; }
  .before-list { grid-template-columns: 1fr; margin-left: 0; gap: 18px; }
  .how-to-use p, .t-intro, .qs, .next-grid { margin-left: 0; }
  .qs { grid-template-columns: 1fr; }
  .t-band-in { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 18px; align-items: end; }
  .t-num { font-size: 64px; }
  .pr-after { border-left: 0; padding-left: 0; border-top: 1px solid #5B5852; padding-top: 24px; }
  .practical { padding: 52px 0; }
  .an-grid img { width: 110px; }
}
@media (max-width: 600px) {
  .standfirst { font-size: 19px; }
  .q { grid-template-columns: 40px minmax(0, 1fr) 28px; font-size: 18px; }
  .q-n { font-size: 22px; }
  .tray-bar { padding: 8px 16px; }
  .tray-panel { padding: 4px 16px 18px; }
  .tray-count { font-size: 15px; }
}
@media print {
  .tray-bar, .tray-acts, .site-foot, main, .skip { display: none !important; }
  html.printing .tray { position: static; box-shadow: none; background: #fff; color: #000; }
  html.printing .tray-panel { display: block !important; max-height: none; }
  html.printing .tray-panel li { border-color: #999; } html.printing .tray-panel li b { color: #000; }
}

/* each chapter's band stays with you while you read its questions */
.t-band { position: sticky; top: 77px; z-index: 5; }
@media (max-width: 860px) { .t-band { top: 69px; } .t-band-in { padding-top: 14px; padding-bottom: 12px; } .t-num { font-size: 52px; } .theme h2 { font-size: 1.75rem; } .t-of { font-size: 13px; } }

/* ===== Round two, original colours: the questions page in the Capture & Keep frame ===== */
.shelf { border-bottom-color: #435C53; }
.crumbs, .crumbs a, .byline { color: #5B5852; }
.byline a { color: #435C53; }
.short-answer { background: #D7E2D3; }
.sa-grid h2 { color: #33463E; }
.before-list li { border-top-color: #557267; }
.before-list .b-n { color: #557267; }
.how-to-use p { border-left-color: #557267; }
.q { border-top-color: #DDD8CC; color: #2E2E2E; }
.practical { background: #435C53; color: #EEF4E7; }
.practical .label { color: #E9D0CD !important; }
.practical h2, .practical li strong { color: #FBF8F2; }
.practical ul, .practical li { border-color: rgba(238,244,231,.32); }
.pr-after { border-left-color: rgba(238,244,231,.32); }
.an-grid h2 { color: #435C53; }
.next-grid { border-top-color: #557267; }
.next li a:hover { color: #435C53; }
.next-cta { background: #E9D0CD; }
.next-cta .sig { color: #435C53; }
.tray { background: #33463E; color: #FBF8F2; }
.tray-panel ol, .tray-panel li { border-color: rgba(238,244,231,.3); }
.tray-panel li b { color: #E9D0CD; }
.tray .btn, .tray-toggle { background: #FBF8F2; color: #33463E; border-color: #FBF8F2; }
.tray .btn:hover { background: #FFFFFF; color: #33463E; }
.tray .btn.ghost { background: transparent; color: #FBF8F2; border-color: #BFD0B9; }
@media (max-width: 980px) { .pr-after { border-top-color: rgba(238,244,231,.32); } }
/* fixed from round one: the "where next" block was pushed 252px past the right edge */
.wrap.next-grid { margin-left: auto; margin-right: auto; padding-left: 276px; border-top: 0; position: relative; padding-top: 27px; }
.wrap.next-grid::before { content: ""; position: absolute; left: 276px; right: 24px; top: 0; height: 3px; background: #557267; }
@media (max-width: 980px) { .wrap.next-grid { padding-left: 24px; } .wrap.next-grid::before { left: 24px; } }
@media (max-width: 600px) { .wrap.next-grid { padding-left: 16px; } .wrap.next-grid::before { left: 16px; right: 16px; } }
