/* OC TOC refresh. Everything is scoped under body.oc-toc2 (or an .octr-* class that only this plugin prints), so with the gate closed nothing here applies. */
:root { --octr-navy: #101e35; --octr-navy2: #1b2d4a; --octr-orange: #f46b24; --octr-orange-dk: #d4550f; --octr-r: 8px; }

/* ── Buttons shared by the strip + section ─────────────────────────────────────── */
.octr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; font-weight: 700; font-size: 18px; line-height: 1.15; font-family: inherit; text-decoration: none; text-align: center; border: 2px solid transparent; cursor: pointer; }
body .octr-btn--hot, body a.octr-btn--hot { background: var(--octr-orange); color: #101e35; border-color: var(--octr-orange); }
body .octr-btn--hot:hover { background: #ff7d3b; border-color: #ff7d3b; color: #101e35; }
body .octr-btn--ghost, body a.octr-btn--ghost { background: transparent; color: #fff; border-color: #fff; }
body .octr-btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
body .octr-btn--ink, body a.octr-btn--ink { color: var(--octr-navy); border-color: var(--octr-navy); }
body .octr-btn--ink:hover { background: rgba(16,30,53,.07); color: var(--octr-navy); }
.octr-btn:focus-visible, .octr-tile:focus-visible, .octr-vplay:focus-visible, .octr-pp:focus-visible, .octr-tiles__arrow:focus-visible, .octr-lang a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--octr-navy); }
.octr-pill { display: inline-block; background: var(--octr-orange); color: #101e35; font-weight: 800; font-size: 14px; letter-spacing: .1em; padding: 5px 12px; border-radius: 3px; text-transform: uppercase; }

/* ── Home: Flipbook strip (approved: cover left, pill, name, italic tagline, dates, two actions) ── */
.octr-strip { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 24px; margin: 0 0 16px; padding: 14px 26px 14px 22px; background: linear-gradient(100deg, #101e35 0%, #14284a 70%, #1b2d4a 100%); border-left: 6px solid var(--octr-orange); border-radius: 8px; color: #fff; }
.octr-strip__cover { display: block; flex: none; line-height: 0; }
.octr-strip__img { display: block; width: 84px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.octr-strip__txt { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.octr-strip__name { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.05; font-weight: 800; letter-spacing: -.01em; margin-top: 4px; }
.octr-strip__tag { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(19px, 1.9vw, 26px); color: #ffd9c2; font-style: italic; }
.octr-strip__dates { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 6px; font-size: 18px; font-weight: 600; }
.octr-strip__dates i { width: 1px; height: 20px; background: rgba(255,255,255,.55); }
.octr-strip__acts { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 1100px) { .octr-strip { grid-template-columns: auto minmax(0,1fr); } .octr-strip__acts { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 640px) {
  .octr-strip { grid-template-columns: 76px minmax(0,1fr); gap: 14px; padding: 16px 16px 18px 14px; margin-bottom: 14px; }
  .octr-strip__img { width: 76px; }
  .octr-strip__name { font-size: 26px; } .octr-strip__tag { font-size: 18px; }
  .octr-strip__dates { font-size: 15.5px; gap: 2px 12px; } .octr-strip__dates i { display: none; } .octr-strip__dates span { display: block; flex: 1 0 100%; }
  .octr-strip__acts { flex-direction: column; } .octr-strip__acts .octr-btn { width: 100%; min-height: 50px; }
}

/* ── /editions/ section (approved Codex section board, cover B) ─────────────────── */
.octr-ed { padding: 28px 0 8px; color: var(--octr-navy); }
.octr-ed__eyebrow { display: flex; align-items: center; gap: 14px; font-weight: 800; letter-spacing: .16em; font-size: 15px; }
.octr-ed__eyebrow::after { content: ""; width: 56px; height: 3px; background: var(--octr-orange); }
.octr-ed__grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0,1fr); gap: 44px; align-items: start; margin-top: 18px; }
.octr-ed__cover { line-height: 0; }
.octr-ed__img { width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; box-shadow: 0 14px 38px rgba(16,30,53,.35); }
.octr-lang { display: inline-flex; float: right; border: 2px solid var(--octr-navy); border-radius: 999px; overflow: hidden; }
.octr-lang a { padding: 8px 18px; font-weight: 800; text-decoration: none; color: var(--octr-navy); min-width: 52px; text-align: center; }
.octr-lang a.is-on { background: var(--octr-orange); color: #101e35; }
.octr-ed__name { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; font-weight: 800; margin: 52px 0 6px; letter-spacing: -.015em; clear: both; }
.octr-ed__name2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; margin: 0 0 14px; padding-bottom: 14px; position: relative; }
.octr-ed__name2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 150px; height: 3px; background: var(--octr-orange); }
.octr-ed__tag { margin: 20px 0 14px; display: flex; flex-direction: column; font-family: Georgia, 'Times New Roman', serif; }
.octr-ed__tag em:first-child { font-size: clamp(26px, 2.8vw, 38px); font-weight: 600; } .octr-ed__tag em + em { font-size: clamp(20px, 2vw, 26px); }
.octr-ed__date { font-size: 24px; font-weight: 600; margin: 0 0 18px; }
.octr-ed__reserve { margin: 0 0 12px; padding: 18px 22px; border: 3px solid var(--octr-orange); border-radius: 10px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; }
.octr-ed__count { font-size: 22px; font-weight: 700; margin: 0 0 22px; }
.octr-ed__acts { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .octr-ed__grid { grid-template-columns: minmax(0,1fr); gap: 22px; } .octr-ed__cover { max-width: 320px; margin: 0 auto; }
  .octr-lang { float: none; display: flex; width: max-content; margin-left: auto; } .octr-ed__name { margin-top: 14px; }
  .octr-ed__acts .octr-btn { flex: 1 1 100%; }
}

/* ── Home slider: media LEFT, headline panel RIGHT (inverted from today's photo-with-overlay) ── */
body.oc-toc2 .oc-herolead { row-gap: 0; align-items: start; align-content: start; }
body.oc-toc2 .oc-herolead > .oc-hero { background: var(--octr-navy); border-radius: 10px; padding: 16px 16px 8px; }
body.oc-toc2 .oc-herolead .oc-feat { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: auto; gap: 22px; align-items: center; min-height: 0; background: transparent; border-radius: 0; overflow: visible; padding: 0; }
body.oc-toc2 .oc-herolead .oc-feat::after { display: none; }
body.oc-toc2 .oc-herolead .oc-feat { --oc-feat-fade: 0px; align-items: start; }
body.oc-toc2 .oc-herolead .oc-feat > .oc-media,
body.oc-toc2 .oc-herolead .oc-feat > .oc-nophoto { grid-row: 1; grid-column: 1; height: auto !important; aspect-ratio: 16 / 9 !important; min-height: 0; contain: none; border-radius: 8px; overflow: hidden; position: relative; }
body.oc-toc2 .oc-herolead .oc-feat > .oc-feat__body { grid-row: 1; grid-column: 2; position: static; margin: 0; padding: 2px 8px 4px 0; background: none; display: block; align-self: center; }
body.oc-toc2 .oc-herolead .oc-feat__body > * { flex: none; }
body.oc-toc2 .oc-herolead .oc-feat__h { font-size: clamp(1.2rem, .8rem + .85vw, 1.65rem); line-height: 1.15; margin: 4px 0 8px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
body.oc-toc2 .oc-herolead .oc-feat__dek { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0 0 8px; font-size: .92rem; line-height: 1.42; color: rgba(255,255,255,.92); }
body.oc-toc2 .oc-herolead .oc-feat__body .oc-byline { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 10px; font-size: .84rem; }
body.oc-toc2 .oc-herolead .oc-feat__body > .oc-btn { margin: 0 0 8px; }
body.oc-toc2 .oc-herolead .oc-feat__credit { margin: 0; font-size: .74rem; line-height: 1.35; color: rgba(255,255,255,.78); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
body.oc-toc2 .oc-hero__controls { margin: 12px 0 4px; }
@media (max-width: 1099px) { body.oc-toc2 .oc-herolead .oc-feat { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; } }
@media (max-width: 860px) {
  body.oc-toc2 .oc-herolead .oc-feat { grid-template-columns: minmax(0,1fr); gap: 14px; }
  body.oc-toc2 .oc-herolead .oc-feat > .oc-feat__body { grid-row: 2; grid-column: 1; padding: 0 4px 6px; }
}
@media (max-width: 640px) {
  body.oc-toc2 .oc-herolead > .oc-hero { padding: 12px 12px 6px; border-radius: 8px; }
  body.oc-toc2 .oc-herolead .oc-feat__dek { display: none; }
  body.oc-toc2 .oc-herolead .oc-feat__h { font-size: 1.35rem; }
}

/* pause / play next to the dots */
.octr-pp { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 40px; padding: 0 14px; border: 2px solid rgba(255,255,255,.7); border-radius: 8px; background: transparent; color: #fff; font-weight: 700; font-size: 15px; line-height: 1; font-family: inherit; cursor: pointer; }
.octr-pp:hover { background: rgba(255,255,255,.12); }
.octr-pp__ico { width: 12px; height: 14px; display: inline-block; }
.octr-pp__ico.is-pause { border-left: 4px solid #fff; border-right: 4px solid #fff; width: 13px; }
.octr-pp__ico.is-play { width: 0; height: 0; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
@media (max-width: 480px) { .octr-pp span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .octr-pp { padding: 0 11px; } }

/* ── Tile scroller (approved sizing: 1440 = 5 full + half peek, 768 = 3 + peek, 390 = 2 + peek) ── */
.octr-tiles { grid-column: 1; position: relative; margin: 14px 0 0; --n: 5; --g: 12px; }
.octr-tiles__track { list-style: none; margin: 0; padding: 6px 2px 12px; display: flex; gap: var(--g); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.octr-tiles__track::-webkit-scrollbar { display: none; }
.octr-tiles__track > li { flex: 0 0 calc((100% - var(--n) * var(--g)) / (var(--n) + .5)); scroll-snap-align: start; min-width: 0; margin: 0; }
.octr-tile { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0 0 12px; text-align: left; background: #fff; border: 1px solid #dde2e8; border-bottom: 4px solid transparent; border-radius: 8px; box-shadow: 0 2px 8px rgba(16,30,53,.10); cursor: pointer; font: inherit; color: var(--octr-navy); overflow: hidden; }
.octr-tile[aria-current="true"] { border-bottom-color: var(--octr-orange); }
.octr-tile__thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--octr-navy2); overflow: hidden; }
.octr-tile__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.octr-tile__play { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(16,30,53,.78); border: 2px solid #fff; }
.octr-tile__play::after { content: ""; position: absolute; left: 14px; top: 9px; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.octr-tile__k { padding: 9px 10px 0; font-size: 12.5px; font-weight: 800; color: #b8430b; line-height: 1.2; }
.octr-tile__t { padding: 3px 10px 0; font-size: 14.5px; font-weight: 800; line-height: 1.22; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.octr-tiles__arrow { position: absolute; top: 34%; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--octr-navy); box-shadow: 0 2px 10px rgba(16,30,53,.35); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.octr-tiles__arrow svg { width: 12px; height: 18px; }
.octr-tiles__arrow--prev { left: -8px; } .octr-tiles__arrow--next { right: -8px; }
.octr-tiles.is-start .octr-tiles__arrow--prev, .octr-tiles.is-end .octr-tiles__arrow--next, .octr-tiles.is-fit .octr-tiles__arrow { display: none; }
@media (min-width: 641px) and (max-width: 1099px) { .octr-tiles { --n: 3; } }
@media (max-width: 640px) { .octr-tiles { --n: 2; --g: 10px; } .octr-tiles__arrow { display: none; } .octr-tile__t { font-size: 13.5px; } .octr-tile__k { font-size: 12px; } .octr-tile__play { width: 32px; height: 32px; margin: -16px 0 0 -16px; } .octr-tile__play::after { left: 11px; top: 7px; border-left-width: 10px; border-top-width: 7px; border-bottom-width: 7px; } }
@media (min-width: 1100px) { body.oc-toc2 .octr-ready.oc-herolead { grid-template-rows: auto auto; } body.oc-toc2 .octr-ready.oc-herolead > .oc-spot { grid-column: 2; grid-row: 1 / span 2; } }

/* ── Video on the slide: poster = the photo, play badge, native player swaps in ── */
.octr-hasvid { position: relative; }
.octr-vplay { position: absolute; z-index: 3; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 12px; border: 2px solid #fff; border-radius: 999px; background: rgba(16,30,53,.86); color: #fff; font-weight: 700; font-size: 16px; line-height: 1; font-family: inherit; cursor: pointer; }
.octr-vplay:hover { background: var(--octr-orange); color: #101e35; border-color: var(--octr-orange); }
.octr-vplay__tri { width: 0; height: 0; border-left: 15px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.octr-vbox { position: absolute; inset: 0; z-index: 4; background: #000; }
.octr-vbox video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }

/* ── Optional: hide utility bar + ad rail (the approved board shows neither). Off unless oc-toc-refresh.bare exists. ── */
body.oc-toc2--bare .oc-util, body.oc-toc2--bare .oc-ad-rail { display: none; }

@media (prefers-reduced-motion: reduce) { .octr-tiles__track { scroll-behavior: auto; } }

.octr-tile--all { justify-content: center; align-items: center; text-align: center; gap: 6px; padding: 14px 10px; background: var(--octr-navy2); color: #fff; text-decoration: none; border-color: var(--octr-navy2); min-height: 100%; }
.octr-tile__allk { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.octr-tile__allh { font-size: 16px; font-weight: 800; line-height: 1.2; }
.octr-tile__allb { font-size: 12.5px; opacity: .85; }
body .octr-tile--all:hover { background: #24406b; color: #fff; }

/* phone: keep arrows/pause/dots on ONE row; tile arrows are swipe-only */
@media (max-width: 640px) {
  body.oc-toc2 .octr-tiles__arrow { display: none !important; }
  body.oc-toc2 .oc-hero__controls { flex-wrap: nowrap; gap: 8px; }
  body.oc-toc2 .oc-hero__dots { flex: 1 1 auto; min-width: 0; gap: 4px; justify-content: center; flex-wrap: nowrap; }
  body.oc-toc2 .oc-hero__dot { flex: 0 1 26px; min-width: 8px; width: auto; }
  body.oc-toc2 .octr-pp { margin-left: 0; flex: none; }
}
