/* Rules reference: shared field-manual styling and procedural hierarchy. */
.rules-subnav{background:#261d21;border-top:1px solid #70563e;border-bottom:1px solid #a58a65;color:#efdfc4;position:relative;z-index:4}
.rules-subnav>.container{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1200px;min-height:62px}
.rules-subnav-label{font:700 12px/1.3 system-ui,sans-serif;letter-spacing:1.8px;color:#f1d9ad;white-space:nowrap}
.rules-subnav-label small{display:block;font-size:10px;letter-spacing:1px;color:#b6a18c;margin-top:3px}
.rules-subnav-links{display:flex;gap:5px;align-items:stretch;flex-wrap:wrap}
.rules-subnav-links a{display:inline-flex;align-items:center;color:#e2d1ba;text-decoration:none;font:600 13px/1.2 system-ui,sans-serif;letter-spacing:.2px;padding:12px 14px;border-bottom:3px solid transparent}
.rules-subnav-links a:hover,.rules-subnav-links a:focus-visible{background:#3c2d2e;color:#fff}
.rules-subnav-links a[aria-current="page"]{background:#4b3233;color:#ffe8c1;border-bottom-color:#d2a66c}

/* Both page introductions use the same compact folio header. */
.crib-page,.bestiary-page{background:#e6dac0;color:#2c2220}
.crib-page .crib-hero,.bestiary-page .beast-hero{background:linear-gradient(110deg,#22191e,#3f292c)!important;min-height:0;padding:45px 0 42px;border-bottom:3px solid #a98a61}
.crib-page .crib-hero-inner{display:block;max-width:1120px}
.crib-page .crib-icon{display:none}
.crib-page .crib-hero h1,.bestiary-page .beast-hero h1{font:600 clamp(39px,5vw,60px)/1.13 Georgia,serif;letter-spacing:0;margin:6px 0 14px;color:#f4e6ca}
.crib-page .crib-deck,.bestiary-page .beast-hero .lede{font:19px/1.58 Georgia,serif;max-width:760px;color:#f0e0ca;margin:0 0 12px}
.crib-page .crib-caveat{color:#d1c0ad;font:15px/1.55 system-ui,sans-serif;max-width:760px}
.crib-page .crib-caveat strong{color:#f8e0b6}
.crib-page .crib-actions,.bestiary-page .beast-footer-cta{margin-top:18px}
.crib-page .crib-hero .eyebrow,.bestiary-page .beast-hero .eyebrow{color:#d9b782}
.crib-page .crib-hero .btn,.bestiary-page .beast-hero .btn{font-size:13px}

/* Sequential instruction layout used by the fast reference and the manual. */
.reference-round-section{padding:48px 0 56px;background:#e6dac0;color:#29211e}
.reference-round-section .container{max-width:1120px}
.reference-round-section h2{font:600 clamp(33px,4vw,45px)/1.2 Georgia,serif;margin:8px 0 12px;color:#662e2c}
.reference-round-section .eyebrow{color:#763d38}
.reference-intro{max-width:825px;font:17px/1.65 Georgia,serif;margin:0 0 24px}
.reference-round-section a{color:#783830;text-decoration:underline;text-underline-offset:3px}
.reference-steps{margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;list-style:none;counter-reset:none}
.reference-steps>li{display:flex;align-items:flex-start;gap:18px;padding:20px 21px;background:#f4ead6;border:1px solid #b9a17a;border-left:4px solid #8f5343;box-shadow:0 3px 12px #46352612;min-width:0}
.reference-steps>li:last-child{grid-column:1/-1}
.reference-number{font:700 26px/1 Georgia,serif;color:#8e4841;min-width:32px}
.reference-steps h3{font:700 21px/1.2 Georgia,serif;margin:0 0 8px;color:#552c2a}
.reference-steps p{font:15px/1.56 system-ui,sans-serif;margin:0;color:#392f2a}
.reference-note,.manual-reminder{padding:14px 18px;border-left:4px solid #9a6650;background:#ead8b9;color:#392b25;font:15px/1.55 system-ui,sans-serif;margin:18px 0 0}

/* Crib Sheet glossary now resembles printed reference cards, not a second lore site. */
.crib-page .crib-focus{padding:43px 0 48px;background:#e1d0af;color:#2b2420;border-bottom:1px solid #b9a17a}
.crib-page .crib-focus h2{font:600 clamp(31px,3.7vw,43px)/1.2 Georgia,serif;color:#662e2c}
.crib-page .crib-focus p{font:17px/1.6 Georgia,serif}
.crib-page .crib-focus .eyebrow{font:700 12px/1.4 system-ui,sans-serif;color:#763d38;letter-spacing:1.8px}
.crib-page .crib-example{background:#f3e6cd;border-left-color:#a26e50}
.crib-page .crib-comparison{background:#2d2224;color:#efdfc8;border-color:#967955}
.crib-page .crib-comparison p{font:700 13px/1.4 system-ui,sans-serif;color:#e3c293}
.crib-page .crib-section{padding:47px 0 53px;background:#e6dac0;border-top:1px solid #bda983}
.crib-page .crib-section-dark{background:#dfcdae}
.crib-page .crib-section .container{max-width:1120px}
.crib-page .crib-section-heading h2{font:600 clamp(31px,3.5vw,43px)/1.18 Georgia,serif;color:#662e2c}
.crib-page .crib-section-heading p:not(.eyebrow){font:16px/1.5 Georgia,serif;color:#49392f}
.crib-page .crib-section .eyebrow{color:#763d38}
.crib-page .crib-entry{background:#f4ead6;border:1px solid #bea987;border-left:3px solid #955448;color:#342923;padding:19px}
.crib-page .crib-entry-mark{color:#915349}
.crib-page .crib-entry h3{font:600 22px/1.2 Georgia,serif;color:#602d2b}
.crib-page .crib-eq{border-color:#cbb997}
.crib-page .crib-eq span{color:#665448;font-size:12px}
.crib-page .crib-eq strong{font:600 16px/1.3 Georgia,serif;color:#673a33}
.crib-page .crib-entry p{font:15px/1.57 system-ui,sans-serif;color:#3f322b}
.crib-page .crib-entry a{color:#7a352e}
.crib-page .crib-closing{background:#3b292b;color:#ebdac2;border-top:2px solid #a88960;padding:38px 0}
.crib-page .crib-closing h2{font:600 clamp(29px,3.8vw,43px)/1.2 Georgia,serif;color:#f1dec0}

/* Bestiary: plain procedure and restrained stat cards; creature illustration remains in cards. */
.bestiary-page .beast-section{background:#e6dac0;padding:47px 0 55px;border-bottom:1px solid #b9a17a}
.bestiary-page .beast-section-dark{background:#dfcdae}
.bestiary-page .beast-title{font:600 clamp(31px,4vw,43px)/1.18 Georgia,serif;color:#662e2c;margin:7px 0 14px}
.bestiary-page .beast-section .eyebrow{color:#783d37}
.bestiary-page .beast-intro{font:17px/1.6 Georgia,serif;color:#453730;max-width:880px}
.bestiary-page .beast-steps-list{grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;padding:0}
.bestiary-page .beast-step{background:#f4ead6;border:1px solid #b9a17a;border-left:4px solid #8f5343;box-shadow:0 3px 12px #46352612;padding:20px 21px}
.bestiary-page .beast-step .step-no{font:700 26px/1 Georgia,serif;color:#91483e}
.bestiary-page .beast-step h3{font:700 21px/1.22 Georgia,serif;color:#602d2b;margin:7px 0 9px}
.bestiary-page .beast-step p{font:15px/1.55 system-ui,sans-serif;color:#3e322c}
.bestiary-page .beast-example{font:15px/1.6 system-ui,sans-serif;background:#ead8b9;color:#342922;border-left:4px solid #97584a;padding:17px 20px}
.bestiary-page .beast-toolbar label{color:#49382f}
.bestiary-page .beast-toolbar select{background:#f4ead6;color:#32221e;border:1px solid #ad956f}
.bestiary-page .beast-card{background:#f4ead6;border:1px solid #b9a17a;color:#362b25}
.bestiary-page .beast-card h3{font:600 29px/1.2 Georgia,serif;color:#662e2c}
.bestiary-page .beast-card>p,.bestiary-page .beast-card .instinct{color:#40332d}
.bestiary-page .beast-tags{color:#6c5242}
.bestiary-page .beast-tags span{border-color:#baa27e}
.bestiary-page .beast-profile>div{background:#e2d1b2;border:1px solid #b49a75}
.bestiary-page .beast-profile span{color:#675044}
.bestiary-page .beast-profile strong{color:#502d2b}
.bestiary-page .beast-province{background:#f4ead6;border:1px solid #b9a17a}
.bestiary-page .beast-province h3{font:600 24px/1.25 Georgia,serif;color:#662e2c}
.bestiary-page .beast-province p,.bestiary-page .beast-province li{color:#47392f}
.bestiary-page .beast-province a{color:#783a30}
.bestiary-page .bestiary-image-credits{color:#392d27}
.bestiary-page .bestiary-image-credits a{color:#783a30}

/* Standardise Field Manual and Armoury without disturbing dynamic profiles. */
.public-doc .manual-article{font:16px/1.65 Georgia,serif}
.public-doc .manual-article h1{font:600 clamp(35px,4.5vw,50px)/1.2 Georgia,serif;color:#662e2c;margin:5px 0 10px}
.public-doc .manual-article h2{font:600 clamp(23px,3vw,30px)/1.25 Georgia,serif}
.public-doc .manual-article .eyebrow{color:#783d37;font:700 12px/1.5 system-ui,sans-serif;letter-spacing:1.5px}
.public-doc .manual-edition{font:16px/1.5 system-ui,sans-serif;color:#544038;margin:0 0 18px}
.public-doc .manual-steps{list-style:none;counter-reset:rule-step;padding:0;margin:17px 0 22px;display:grid;gap:9px}
.public-doc .manual-steps li{counter-increment:rule-step;position:relative;margin:0;padding:12px 15px 12px 54px;background:#e9dabe;border:1px solid #c6ae88;font:15px/1.55 system-ui,sans-serif;min-height:45px}
.public-doc .manual-steps li::before{content:counter(rule-step,decimal-leading-zero);position:absolute;left:12px;top:13px;font:700 20px/1 Georgia,serif;color:#89463d}
.public-doc .manual-reminder{font-size:14px}

@media(max-width:820px){
  .rules-subnav>.container{display:block;padding-top:13px;padding-bottom:5px}
  .rules-subnav-label small{display:inline;margin-left:8px}
  .rules-subnav-links{margin-top:8px}
  .rules-subnav-links a{padding:10px;font-size:12px}
  .reference-steps,.bestiary-page .beast-steps-list{grid-template-columns:1fr}
  .reference-steps>li:last-child{grid-column:auto}
  .crib-page .crib-focus-inner{display:block}
  .crib-page .crib-comparison{margin-top:22px}
}
@media(max-width:560px){
  .crib-page .crib-hero,.bestiary-page .beast-hero{padding:33px 0}
  .crib-page .crib-deck,.bestiary-page .beast-hero .lede{font-size:17px}
  .reference-round-section{padding:35px 0}
  .reference-steps>li{padding:16px;gap:12px}
  .reference-steps h3,.bestiary-page .beast-step h3{font-size:19px}
  .crib-page .crib-grid,.bestiary-page .beast-province-grid,.bestiary-page .beast-procedure{grid-template-columns:1fr!important}
  .bestiary-page .beast-profile{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media print{
  .rules-subnav{display:none!important}
  .reference-round-section,.crib-page .crib-section,.bestiary-page .beast-section{background:#fff!important;color:#111!important}
  .reference-steps>li,.bestiary-page .beast-step,.public-doc .manual-steps li{background:#fff!important;color:#111!important;break-inside:avoid}
  .reference-steps h3,.bestiary-page .beast-step h3,.reference-steps p,.bestiary-page .beast-step p{color:#111!important}
  .bestiary-page .beast-card,.bestiary-page .beast-province{background:#fff!important;color:#111!important}
}
