/* Ironstrike brand tokens (copied from ironstrike-ai/index.html). Zero dependencies. */
:root{--bg:#0a0a0b;--panel:#141416;--steel-line:#38393e;--text:#eae8e4;--dim:#9a9a9f;--ember:#f5821f;--ember-bright:#ff9e42}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;min-height:100vh;display:flex;flex-direction:column}
[hidden]{display:none!important}
.wrap{width:100%;max-width:760px;margin:0 auto;padding:24px 16px}
main.wrap{flex:1}
h1{font-size:2rem;line-height:1.15;margin:0 0 8px;overflow-wrap:anywhere}
h1:focus{outline:none}
p{margin:0 0 12px}
a{color:var(--ember-bright)}
.lede{color:var(--dim)}
button,.btn{min-height:44px;min-width:44px;padding:10px 20px;font:inherit;font-weight:600;color:#0a0a0b;background:var(--ember);border:0;border-radius:8px;cursor:pointer}
button:disabled{opacity:.45;cursor:default}
button:focus-visible,a:focus-visible,summary:focus-visible,textarea:focus-visible,input:focus-visible{outline:3px solid var(--ember-bright);outline-offset:2px}
.is-footer{border-top:1px solid var(--steel-line);color:var(--dim);font-size:.875rem;padding:16px;max-width:760px;margin:0 auto;width:100%}
.is-footer p{margin:0 0 8px}
.is-footer a{padding:14px 6px;margin:-14px -6px}

/* tool */
label{display:block;font-weight:600;margin:0 0 6px}
textarea{display:block;width:100%;min-height:11rem;padding:12px;font:16px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--text);background:var(--panel);border:1px solid var(--steel-line);border-radius:8px;resize:vertical;overflow-wrap:anywhere}
.switches{border:0;margin:12px 0;padding:0;display:grid;gap:4px}
.switches legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.sw{display:flex;align-items:center;gap:12px;min-height:44px;margin:0;padding:6px 0;font-weight:400;cursor:pointer}
.sw input{width:24px;height:24px;margin:0;flex:none;accent-color:var(--ember)}
.summary{font-weight:600;margin:12px 0 8px;overflow-wrap:anywhere}
.outlabel{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#copy{width:100%;margin-top:12px}
.note{color:var(--dim);margin:8px 0 0;min-height:1.5em}
details{margin:12px 0;border:1px solid var(--steel-line);border-radius:8px;background:var(--panel)}
summary{min-height:44px;padding:10px 12px;cursor:pointer;font-weight:600;overflow-wrap:anywhere}
details ol{margin:0;padding:0 12px 12px 40px;max-height:24rem;overflow:auto;overflow-wrap:anywhere}
.nav{margin:16px 0 0}
.pill{display:inline-flex;align-items:center;min-height:44px;padding:0 20px;border:1px solid var(--steel-line);border-radius:999px;color:var(--text);text-decoration:none}
#how li{margin:0 0 10px}
#how ul{padding-left:20px}

/* tablet: one centred column about 720 wide */
@media (min-width:820px){
  .wrap{max-width:720px;padding:40px 24px}
  h1{font-size:2.6rem}
  textarea{min-height:13rem}
  .switches{grid-template-columns:1fr 1fr;column-gap:24px}
  .panes{display:grid;gap:24px}
  .pane-out{display:grid;grid-template-columns:1fr auto;column-gap:16px;align-items:center}
  .summary{grid-column:1;margin:0}
  #copy{grid-column:2;grid-row:1;width:auto;margin:0;min-width:120px}
  #out,.note{grid-column:1/-1}
  #out{margin-top:12px}
}

/* laptop: two panes, switches in one row above */
@media (min-width:1440px){
  .wrap{max-width:1200px}
  .panes{grid-template-columns:1fr 1fr;column-gap:32px;row-gap:16px}
  .switches{grid-column:1/-1;grid-row:1;grid-template-columns:repeat(4,1fr);margin:0}
  .pane-in{grid-column:1;grid-row:2}
  .pane-out{grid-column:2;grid-row:2;align-content:start}
  textarea{min-height:18rem}
  details ol{columns:2;column-gap:32px;max-height:none}
  details li{break-inside:avoid}
}

/* wide: same layout, capped, taller */
@media (min-width:1900px){
  .wrap{max-width:1280px}
  textarea{min-height:24rem}
}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
