/* Operations introduction (/operations/). Scoped to .op-intro. No thick top borders on boxes (site rule). */
.op-intro{
  --op-ink:#0f2a3d;--op-navy:#0a2233;--op-navy-2:#123349;--op-muted:#5a6f80;--op-line:#d8e3ea;--op-soft:#f2f7fa;
  --op-blue:#0a63b0;--op-green:#108760;--op-orange:#d46f1c;--op-gold:#f0b640;--op-red:#c2410c;
    color:var(--op-ink);background:#fff;overflow-x:clip
}
.op-intro *{box-sizing:border-box}
.op-wrap{width:min(1160px,calc(100% - 64px));margin-inline:auto}
.op-intro p{line-height:1.95}
.op-intro a:focus-visible{outline:3px solid var(--op-gold);outline-offset:4px;border-radius:6px}
.op-intro-section:focus{outline:none}

/* Buttons */
.op-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.op-actions-center{justify-content:center}
.op-button{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 24px;border-radius:999px;background:var(--op-gold);color:#14202a;font-weight:800;font-size:15px;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease}
.op-button:hover{transform:translateY(-1px);box-shadow:0 10px 24px #0003;color:#14202a}
.op-button svg{width:16px;height:16px}
.op-button-ghost{background:#ffffff14;color:#fff;border:1px solid #ffffff59}
.op-button-ghost:hover{color:#fff;background:#ffffff24}
.op-button-line{background:#fff;color:var(--op-ink);border:1px solid var(--op-line)}
.op-button-line:hover{color:var(--op-ink)}

/* Hero */
.op-hero{position:relative;isolation:isolate;background:var(--op-navy);color:#fff;overflow:hidden}
.op-hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% center;z-index:-2;opacity:.55}
.op-hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(100deg,var(--op-navy) 0%,#0a2233f2 34%,#0a2233b3 58%,#0a223366 100%)}
.op-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:48px;align-items:center;padding:72px 0 80px;min-height:600px}
.op-kicker{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin:0 0 22px;font-size:12px;font-weight:800;letter-spacing:.14em;color:#9fd2ff}
.op-kicker span{padding:4px 10px;border-radius:999px;background:#ffffff1a;color:#fff;letter-spacing:.04em}
.op-intro .op-hero h1{margin:0;color:#fff}
.op-catch{word-break:auto-phrase;display:block;font-size:clamp(34px,4.6vw,60px);line-height:1.3;font-weight:900;letter-spacing:-.03em}
.op-title{display:block;margin-top:18px;font-size:clamp(15px,1.5vw,18px);font-weight:700;color:#cfe3f1;letter-spacing:.02em}
.op-intro .op-lead{margin:18px 0 0;max-width:34em;font-size:16px;color:#e3edf4}
.op-hero-visual{min-width:0}
.op-intro:not(.op-page-top) .op-catch{font-size:clamp(30px,3.6vw,48px)}
@media (min-width:1001px){.op-intro:not(.op-page-top) .op-hero-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}}
.opm-tablet-stage{position:relative;width:100%;max-width:600px;padding-top:30px}
.opm-tablet-stage .opm-screen{min-height:300px}

/* Before / after strip */
.op-promise{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:-40px;position:relative;z-index:2}
.op-promise>div{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;align-items:center;padding:20px 22px;background:#fff;border:1px solid var(--op-line);border-radius:16px;box-shadow:0 18px 40px #0a22331a}
.op-promise span,.op-promise b{font-size:10px;letter-spacing:.12em;font-weight:800;padding:3px 7px;border-radius:5px;text-align:center}
.op-promise span{background:#eef1f3;color:#738390}
.op-promise b{background:#e5f4ee;color:var(--op-green)}
.op-intro .op-promise p{margin:0;color:var(--op-muted);font-size:14px;text-decoration:line-through;text-decoration-color:#b8c4cc}
.op-promise strong{font-size:16px}

.op-intro>.op-subnav{margin-top:40px}
.op-page-top>.op-subnav{margin-top:48px}

/* FAQ */
.op-faq-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.6fr);gap:48px;align-items:start}
.op-faq-head{position:sticky;top:calc(var(--op-stick-total,0px) + 24px)}
.op-faq-head>p:last-child{color:#33495a}
.op-faq-list{display:grid;gap:10px}
.op-faq-list details{border:1px solid var(--op-line);border-radius:14px;background:#fff}
.op-faq-list summary{display:flex;align-items:flex-start;gap:12px;padding:18px 20px;cursor:pointer;list-style:none;font-weight:800;font-size:16px;line-height:1.6}
.op-faq-list summary::-webkit-details-marker{display:none}
.op-faq-list summary:after{content:"+";margin-left:auto;flex-shrink:0;font-size:20px;line-height:1.2;color:var(--op-blue)}
.op-faq-list details[open] summary:after{content:"−"}
.op-faq-list summary span{flex-shrink:0;display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--op-navy);color:var(--op-gold);font-size:13px}
.op-faq-list summary:focus-visible{outline:3px solid var(--op-gold);outline-offset:2px;border-radius:14px}
.op-faq-list details>div{padding:0 20px 18px 58px}
.op-intro .op-faq-list details p{margin:0;color:#33495a;font-size:15px;line-height:1.9}
.op-faq-list details a{display:inline-flex;align-items:center;gap:6px;margin-top:10px;font-weight:700;font-size:14px}
.op-faq-list details a svg{width:13px;height:13px}
@media (max-width:1000px){.op-faq-grid{grid-template-columns:1fr;gap:20px}.op-faq-head{position:static}}
@media (max-width:640px){.op-faq-list details>div{padding-left:20px}.op-faq-list summary{font-size:15px;padding:16px}}

/* Sections */
.op-intro-section{padding:88px 0;scroll-margin-top:calc(var(--op-stick-total,0px) + 12px)}
.op-intro-section:nth-of-type(even){background:var(--op-soft)}
.op-section-head{max-width:760px;margin-bottom:44px}
.op-num{margin:0 0 10px;font-size:13px;font-weight:900;letter-spacing:.14em;color:var(--op-blue)}
.op-intro h2{text-wrap:balance;word-break:auto-phrase;margin:0 0 18px;font-size:clamp(26px,3vw,40px);line-height:1.45;font-weight:900;letter-spacing:-.02em}
.op-section-head>p:last-child,.op-feature-copy>p{color:#33495a;font-size:16px}
.op-small{font-size:13px;color:var(--op-muted)}

/* Role cards */
.op-roles{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.op-role{display:flex;flex-direction:column;border:1px solid var(--op-line);border-radius:20px;overflow:hidden;background:#fff;color:inherit;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease}
.op-role:hover{transform:translateY(-3px);box-shadow:0 22px 44px #0a22331f;color:inherit}
.op-role-media{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--op-navy)}
.op-role-photo{width:100%;height:100%;object-fit:cover;opacity:.88}
.op-role-media .opm-mini{position:absolute;right:14px;bottom:14px;width:min(78%,240px)}
.op-role-body{padding:22px 24px 26px;display:flex;flex-direction:column;flex:1}
.op-role-tag{align-self:flex-start;padding:4px 12px;border-radius:999px;font-size:12px;font-weight:800;color:#fff;background:var(--tone)}
.op-role h3{margin:14px 0 6px;font-size:19px;line-height:1.55}
.op-intro .op-role p{margin:0 0 18px;font-size:14px;color:var(--op-muted)}
.op-more{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font-weight:800;font-size:14px;color:var(--tone)}
.op-more svg{width:14px;height:14px}
.op-tone-desk{--tone:var(--op-blue)}.op-tone-referee{--tone:var(--op-green)}.op-tone-spectator{--tone:var(--op-orange)}
.op-sheet-link{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 20px;margin-top:20px;padding:20px 26px;border:1px dashed #b9cad6;border-radius:16px;color:var(--op-ink);text-decoration:none;font-size:15px}
.op-sheet-link strong{display:inline-flex;align-items:center;gap:6px;color:var(--op-blue)}
.op-sheet-link svg{width:14px;height:14px}

/* Flow timeline */
.op-flow{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,1fr);gap:12px;position:relative}
.op-flow:before{content:"";position:absolute;left:4%;right:4%;top:27px;height:2px;background:repeating-linear-gradient(90deg,#b7c9d6 0 8px,transparent 8px 14px)}
.op-flow li{position:relative;display:flex;flex-direction:column;align-items:flex-start;padding:0 4px}
.op-flow time{position:relative;z-index:1;display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#fff;border:2px solid var(--tone);color:var(--tone);font-weight:900;font-size:14px;font-variant-numeric:tabular-nums}
.op-flow b{margin-top:16px;font-size:18px}
.op-flow span{margin-top:4px;font-size:12px;font-weight:800;color:var(--tone)}
.op-intro .op-flow p{margin:6px 0 0;font-size:13px;line-height:1.7;color:var(--op-muted)}

/* Formats */
.op-formats{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.op-browser{margin:0;min-width:0;border-radius:14px;overflow:hidden;border:1px solid var(--op-line);background:#fff;box-shadow:0 20px 44px #0a22331a}
.op-browser-bar{display:flex;align-items:center;gap:6px;padding:10px 14px;background:#eef3f6;border-bottom:1px solid var(--op-line)}
.op-browser-bar i{width:9px;height:9px;border-radius:50%;background:#c4d0d8}
.op-browser-bar span{margin-left:10px;font-size:12px;color:var(--op-muted);font-weight:700}
.op-browser img{display:block;width:100%;height:auto}
.op-browser figcaption{padding:10px 14px;font-size:13px;color:var(--op-muted);border-top:1px solid var(--op-line)}
.op-format-tags{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 0;padding:0}
.op-format-tags li{padding:8px 16px;border-radius:999px;background:#fff;border:1px solid var(--op-line);font-weight:700;font-size:14px}

/* Start steps */
.op-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.op-steps li{padding:28px;border-radius:18px;background:var(--op-soft);border:1px solid var(--op-line)}
.op-steps span{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--op-navy);color:var(--op-gold);font-weight:900}
.op-steps h3{margin:18px 0 8px;font-size:18px}
.op-intro .op-steps p{margin:0;font-size:14px;color:var(--op-muted)}
.op-page-top .op-top-start .op-actions{margin-top:36px}

/* Subpage feature rows */
.op-feature-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;align-items:center}
.op-feature:nth-of-type(even) .op-feature-copy{order:2}
.op-feature-visual{display:flex;justify-content:center;min-width:0}
.op-inline-links{display:flex;flex-wrap:wrap;gap:8px 20px}
.op-inline-links a{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.op-inline-links svg{width:13px;height:13px}

/* Related pages */
.op-related{padding:80px 0}
.op-related h2{text-align:center}
.op-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:32px}
@media (max-width:1000px){.op-related-grid{grid-template-columns:1fr 1fr}}
.op-related-grid a{position:relative;display:flex;align-items:flex-end;gap:10px;min-height:170px;padding:18px;border-radius:16px;overflow:hidden;isolation:isolate;color:#fff;text-decoration:none;font-weight:800;line-height:1.5}
.op-related-grid img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .35s ease}
.op-related-grid a:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#0a223300 20%,#0a2233e6 100%)}
.op-related-grid a:hover img{transform:scale(1.05)}
.op-related-grid a:hover{color:#fff}
.op-related-grid a>span{flex:1}
.op-related-grid small{display:block;font-size:11px;letter-spacing:.1em;color:var(--op-gold)}
.op-related-grid svg{width:16px;height:16px;flex-shrink:0}

/* Closing */
.op-closing{position:relative;isolation:isolate;padding:96px 0;color:#fff;background:var(--op-navy);overflow:hidden;text-align:left}
.op-closing-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 35%;z-index:-2;opacity:.4}
.op-closing:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,var(--op-navy) 10%,#0a223399 100%)}
.op-intro .op-closing h2{font-size:clamp(26px,3.4vw,44px);color:#fff}
.op-intro .op-closing p:not(.op-kicker){color:#d9e6ef}
.op-note{padding:20px 0 40px;font-size:12px;color:var(--op-muted)}

.op-hero .opm-panel{box-shadow:0 30px 60px #0006;border-color:transparent}
.op-hero .opm-paper{box-shadow:0 30px 60px #0007}
.op-hero-visual .opm-solo .opm-phone{box-shadow:0 40px 80px #0008}
.op-hero-visual{display:flex;justify-content:flex-end}

/* Responsive */
@media (max-width:1000px){
  .op-hero-grid{grid-template-columns:1fr;gap:36px;padding:56px 0 72px;min-height:0}
  .op-hero-visual{justify-content:center}
  .op-promise{grid-template-columns:1fr;margin-top:-32px}
  .op-roles{grid-template-columns:1fr 1fr}
  .op-flow{grid-template-columns:repeat(3,1fr);row-gap:28px}
  .op-flow:before{display:none}
  .op-feature-grid{grid-template-columns:1fr;gap:32px}
  .op-feature:nth-of-type(even) .op-feature-copy{order:0}
}
@media (max-width:640px){
  .op-wrap{width:calc(100% - 32px)}
  .op-hero-grid{padding:40px 0 64px;gap:28px}
  .op-hero-photo{opacity:.35}
  .op-catch{font-size:32px}
  .op-actions .op-button{flex:1 1 100%;justify-content:center}
  .op-intro-section{padding:60px 0}
  .op-section-head{margin-bottom:28px}
  .op-roles,.op-formats,.op-steps{grid-template-columns:1fr}
  .op-flow{grid-template-columns:1fr;row-gap:0}
  .op-flow:before{display:block;left:27px;right:auto;top:28px;bottom:28px;width:2px;height:auto;background:repeating-linear-gradient(180deg,#b7c9d6 0 8px,transparent 8px 14px)}
  .op-flow li{display:grid;grid-template-columns:56px 1fr;column-gap:16px;padding:0 0 22px;align-items:center}
  .op-flow time{grid-row:1/4}
  .op-flow b{margin:0;font-size:17px}
  .op-flow span{margin:0}
  .op-intro .op-flow p{margin:0}
  .op-promise>div{padding:16px}
  .op-related-grid{grid-template-columns:1fr}
  .op-related-grid a{min-height:130px}
  .op-closing{padding:64px 0}
}
@media (prefers-reduced-motion:reduce){
  .op-role,.op-button,.op-related-grid img{transition:none}
}

/* Real PC / tablet + phone screens (.opd). Screens are captures of a fictional dev tournament. */
.opd{margin:0;width:100%;min-width:0}
.opd-stage{position:relative;padding:0 9% 7% 0}
.opd-pc{border-radius:14px;overflow:hidden;background:#fff;border:1px solid var(--op-line);box-shadow:0 28px 60px #0a223326}
.opd-bar{display:flex;align-items:center;gap:6px;height:30px;padding:0 12px;background:#e9eff3;border-bottom:1px solid var(--op-line)}
.opd-bar i{width:8px;height:8px;border-radius:50%;background:#c2ced6}
.opd-bar span{flex:0 1 60%;min-width:0;margin-left:10px;padding:3px 10px;border-radius:6px;background:#fff;color:var(--op-muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.opd-pc img,.opd-sp img{display:block;width:100%;height:auto}
.opd-is-tab .opd-pc{border:10px solid #0c1a24;border-radius:24px}
.opd-is-tab .opd-bar{display:none}
.opd-is-tab .opd-pc img{border-radius:12px}
.opd-sp{position:absolute;right:0;bottom:0;width:27%;max-width:210px;padding:6px;border-radius:30px;background:#0c1a24;box-shadow:0 24px 50px #0a223359}
.opd-sp img{aspect-ratio:585/1080;object-fit:cover;object-position:top;border-radius:24px}
.opd figcaption{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:14px;font-size:13px;color:var(--op-muted)}
.opd figcaption span{display:inline-flex;align-items:center;gap:8px}
.opd figcaption b{padding:2px 8px;border-radius:6px;background:var(--op-navy);color:#fff;font-size:11px}
.op-hero .opd{max-width:640px;margin-left:auto}
.op-hero .opd-pc{border-color:transparent;box-shadow:0 40px 80px #0008}
.op-hero .opd figcaption{color:#cfe0ec}
.op-hero .opd figcaption b{background:var(--op-gold);color:#14202a}
.op-feature-visual .opd{max-width:600px}
@media (max-width:640px){.opd-stage{padding:0 12% 10% 0}.opd-sp{width:32%;border-radius:22px;padding:4px}.opd-sp img{border-radius:18px}.opd-is-tab .opd-pc{border-width:6px;border-radius:16px}}
