/* Shared screen refinement. Print and presentation keep their own layouts. */
:root { --navy: #0f1d33; --pearl: #faf6ef; --gold-warm: #c9a961; --ink-soft: #526073; }
body { background: var(--pearl); }
:focus-visible { outline: 3px solid #92702c; outline-offset: 4px; }
.iwm-head-in, main, .iwm-foot-in { max-width: 72rem; }
.iwm-head-in { padding-top: 14px; padding-bottom: 14px; }
.iwm-head-tail { max-width: 100%; }
.iwm-work-list { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.iwm-work-list li { margin: 0; padding: 0; }
.iwm-work-list a { padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.iwm-work-list a[aria-current="page"] { background: #edf1f6; color: var(--navy); font-weight: 600; }
.iwm-work-list a:hover { background: #f4f1eb; }
body[data-view="home"] main { padding-top: 30px; }
.iwm-home-hero { display: grid; gap: 28px; padding: clamp(24px, 4vw, 48px); margin-bottom: 30px; border-radius: 20px; background: var(--navy); color: #faf6ef; }
.iwm-home-hero .iwm-h1 { color: #faf6ef; font-size: clamp(2rem, 4.5vw, 3.35rem); max-width: 14ch; letter-spacing: -.035em; line-height: 1.1; margin: 12px 0 18px; }
.iwm-home-hero .iwm-lede { color: #e2e6ec; max-width: 42ch; margin: 0; line-height: 1.65; }
.iwm-hero-kicker { color: #dfc589; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.iwm-hero-facts { color: #d1d8e3; font-size: .83rem; margin: 22px 0 0; }
.iwm-home-routine { align-self: center; border-left: 1px solid #465064; padding-left: 24px; }
.iwm-home-routine h2 { color: #dfc589; font: 600 .78rem/1.4 "Segoe UI", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.iwm-home-routine ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.iwm-home-routine li { display: flex; align-items: center; gap: 12px; }
.iwm-routine-n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border: 1px solid #617089; border-radius: 50%; color: #dfc589; font-size: .78rem; }
.iwm-home-routine strong { color: #faf6ef; font-size: .95rem; font-weight: 500; }
.iwm-home-routine small { display: block; color: #c2cad7; font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.iwm-section-title { font: 700 1.4rem/1.2 Georgia, serif; color: var(--navy); margin: 0 0 18px; }
.iwm-cards { gap: 16px; }
.iwm-card { border: 1px solid #e1dcd2; border-radius: 14px; padding: 22px; box-shadow: 0 5px 16px #0f1d3305; transition: border-color .15s, box-shadow .15s; }
.iwm-card:hover { border-color: #c9a961; background: white; box-shadow: 0 8px 24px #0f1d330d; }
.iwm-card-name { font-size: 1.55rem; }
.iwm-card-text { line-height: 1.55; color: var(--ink-soft); }
.iwm-card-count { border-top: 1px solid #eee8df; padding-top: 13px; }
.iwm-card-icon { margin-bottom: 18px; }
.iwm-home-tail { margin-top: 12px; }
.iwm-home-tail a { font-weight: 600; }
.iwm-continue { border: 1px solid #ddd6c8; border-radius: 10px; background: #fff; padding: 8px 16px; }
.iwm-start { border-radius: 0 10px 10px 0; padding: 15px 18px; }
.iwm-list .iwm-row { background: white; border: 1px solid #e1dcd2; border-radius: 12px; margin-bottom: 12px; padding-top: 20px; padding-bottom: 20px; }
.iwm-row-title { margin-top: 0; }
.iwm-row-title a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.iwm-row-target { color: var(--ink-soft); }
.iwm-further { border-radius: 12px; }
.iwm-skill-note { padding: 14px 18px; border: 1px solid #e3d7bb; border-radius: 10px; background: #fffbf1; }
@media (min-width: 800px) { .iwm-home-hero { grid-template-columns: 1.35fr 1fr; align-items: center; } }
@media (min-width: 1000px) { .iwm-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .iwm-byline { display: none; } .iwm-head-tail { width: 100%; margin-left: 0; } .iwm-home-routine { padding-top: 20px; border-left: 0; border-top: 1px solid #465064; padding-left: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.iwm-card { display: flex; flex-direction: column; }
.iwm-card-count { margin-top: auto; }

.iwm-card-mobile { display: none; }
@media (max-width: 600px) {
 .iwm-home-hero { gap: 20px; padding: 22px; }
 .iwm-home-hero .iwm-h1 { font-size: 1.95rem; margin-top: 10px; margin-bottom: 14px; }
 .iwm-home-hero .iwm-lede { font-size: .94rem; }
 .iwm-hero-facts { margin-top: 14px; font-size: .73rem; }
 .iwm-home-routine { padding-top: 16px; }
 .iwm-home-routine h2, .iwm-home-routine small { display: none; }
 .iwm-home-routine ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 6px; }
 .iwm-home-routine li { gap: 7px; }
 .iwm-home-routine strong { font-size: .72rem; line-height: 1.35; }
 .iwm-routine-n { width: 22px; height: 22px; font-size: .65rem; }
 .iwm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
 body[data-view="home"] .iwm-card { padding: 16px 14px; }
 .iwm-card-name { font-size: 1.15rem; }
 .iwm-card-text { display: none; }
 .iwm-card-mobile { display: block; color: #526073; font-size: .8rem; line-height: 1.4; margin: 0 0 12px; }
 .iwm-card-count { font-size: .72rem; padding-top: 10px; }
 .iwm-card-icon { margin-bottom: 12px; }
}
