/* Phase 2 refines the existing design; no framework or animation dependency. */
body{overflow-wrap:break-word}main,section,article,aside,form{min-width:0}button,input,select{min-height:44px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #6541d9;outline-offset:4px}.hero-search{max-width:510px;margin-top:22px}.hero-search label{display:block;font-size:12px;font-weight:700;margin-bottom:7px}.hero-search>div{display:flex;gap:8px}.hero-search input{min-width:0;flex:1;width:100%;padding:12px;border:2px solid var(--ink);border-radius:7px;background:white}.hero-search>p{font-size:11px;margin-top:10px}.hero{min-height:0;padding-top:40px;padding-bottom:45px}.hero h1{font-size:clamp(50px,5.6vw,80px)}.hero-actions{margin-top:20px}.timeline-entry{border:2px solid var(--ink);border-radius:18px;background:#e5ddfa;padding:35px;margin-top:45px;margin-bottom:12px;box-shadow:5px 5px var(--ink)}.timeline-entry h2{max-width:850px;font-size:clamp(30px,4vw,48px)}.timeline-entry>p{margin:18px 0;max-width:720px}.count-note{font-size:12px;line-height:1.7;max-width:950px;margin-top:-45px;margin-bottom:15px}.topic{min-height:175px;padding:20px}.topic-icon{height:40px;font-size:28px}.topic p{font-size:13px}.section{padding-top:55px;padding-bottom:50px}.fresh-section{padding-top:10px}.tiny-fact{padding-bottom:50px}.historical-context{max-width:900px;margin:15px 0 20px;font-size:15px;line-height:1.7}.story-breadcrumb{font-size:12px;display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.story-breadcrumb a{text-decoration:underline}.article-head h1{font-size:clamp(38px,5.6vw,78px)}.article-body{font-size:17px}.creatingboring-credit{font-size:12px;padding-bottom:22px}.creatingboring-credit a{text-decoration:underline;text-underline-offset:3px}.related-stories .section-heading p{margin-top:12px;font-size:13px}.date-precision-note{font-size:12px!important;max-width:850px;line-height:1.65;margin-top:12px!important}.discovery-head{padding-top:40px;padding-bottom:24px}.discovery-head h1{font-size:clamp(38px,5.5vw,76px);max-width:1000px}.discovery-head>p{max-width:850px}.discovery-controls{display:grid;grid-template-columns:2fr repeat(4,minmax(0,1fr));gap:14px;margin-top:26px;align-items:end}.discovery-controls label{display:block;font-size:12px;font-weight:700;margin-bottom:6px}.discovery-controls input,.discovery-controls select{width:100%;max-width:100%;min-width:0;border:2px solid var(--ink);border-radius:7px;padding:11px 9px;background:white;font-size:14px;min-height:48px}.discovery-reset{grid-column:1/-1;justify-self:start}.active-filters{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.filter-chip{border:1px solid var(--ink);border-radius:24px;background:#fff0bd;padding:7px 13px;font-size:12px;max-width:100%;overflow-wrap:anywhere}.discovery-section{padding-top:10px;padding-bottom:60px}.discovery-status{font-size:14px;font-weight:700;margin-bottom:22px;min-height:24px}.discovery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.discovery-card{display:flex;flex-direction:column;gap:12px;border:2px solid var(--ink);border-radius:13px;background:white;padding:22px;box-shadow:4px 4px var(--ink);min-width:0}.discovery-card h2{font-size:27px;line-height:1.12;margin:0}.discovery-card h2 a:hover{text-decoration:underline;text-underline-offset:4px}.discovery-card>p{font-size:14px;line-height:1.6}.discovery-card>.text-link{margin-top:auto;min-height:44px;display:flex;align-items:end}.discovery-card-meta{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#51408d;font-weight:700}.discovery-place{font-size:12px!important;color:#45445b}.discovery-pagination{display:flex;gap:20px;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:30px}.discovery-pagination button{min-width:100px}.discovery-pagination>span{font-size:13px}.discovery-pagination button:disabled,.event-stepper button:disabled{opacity:.55;cursor:default;box-shadow:none}.period-rail{display:flex;flex-wrap:wrap;gap:9px;margin:24px 0 5px}.period-chip{border:2px solid var(--ink);border-radius:25px;padding:8px 15px;background:white;font-weight:700;font-size:12px;line-height:1.3;min-height:44px;max-width:100%}.period-chip[aria-pressed=true]{background:var(--yellow);box-shadow:2px 2px var(--ink)}.timeline-workspace{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start;gap:35px}.chronology-axis{position:relative;padding-left:28px;border-left:3px solid var(--purple);margin-left:10px}.event-marker{position:relative;margin:14px 0;background:transparent}.event-marker:before{content:'';position:absolute;left:-38px;top:25px;width:15px;height:15px;border:3px solid var(--ink);border-radius:50%;background:var(--yellow)}.axis-group-label{font-size:22px;margin:24px 0 16px;background:var(--paper);line-height:1.3}.event-button{display:flex;flex-direction:column;gap:7px;width:100%;text-align:left;background:white;border:2px solid var(--ink);border-radius:10px;padding:18px;line-height:1.4}.event-button[aria-pressed=true]{background:#e9e0ff;border-color:var(--purple);box-shadow:4px 4px var(--purple)}.event-marker[data-period=prehistory] .marker-date{background:#d9edc8}.event-marker[data-period=ancient] .marker-date{background:#fff0b7}.event-marker[data-period=medieval] .marker-date{background:#f8d4c3}.event-marker[data-period=knights] .marker-date{background:#e6dbff}.event-marker[data-period=french] .marker-date{background:#e0ebfa}.event-marker[data-period=british] .marker-date{background:#f8d4e0}.event-marker[data-period=modern] .marker-date{background:#cfeceb}.marker-date{display:block;align-self:flex-start;font-size:12px;font-weight:700;background:#eae7e0;padding:4px 8px;border-radius:5px}.event-button strong{font-size:20px;letter-spacing:-.025em;line-height:1.2}.marker-place{font-size:11px}.event-preview{position:sticky;top:20px;border:2px solid var(--ink);border-radius:14px;box-shadow:5px 5px var(--ink);padding:27px;background:#fff1b4;scroll-margin-top:20px}.event-preview h2{font-size:clamp(25px,2.8vw,36px);line-height:1.1;margin:14px 0}.event-preview>p{font-size:14px;line-height:1.6}.event-preview ul{padding-left:20px;font-size:14px;line-height:1.65;margin:18px 0}.event-preview img{width:100%;max-height:170px;object-fit:contain;background:#fffdf5}.event-preview figure{margin:18px 0}.event-preview figcaption{font-size:11px;line-height:1.5;margin-top:8px}.event-preview figure a{font-size:11px}.preview-date{font-weight:700}.event-stepper{display:flex;justify-content:space-between;gap:16px;margin-top:18px}.event-stepper button{font-size:12px}.no-js-links{margin-top:35px}.no-js-links li{margin:10px 0}.no-js-links a{text-decoration:underline}.discovery-empty{padding:30px;border:2px dashed var(--ink);grid-column:1/-1}.article-body a,.sources a{overflow-wrap:anywhere}
@media(max-width:1100px){.discovery-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.discovery-keyword{grid-column:span 2}.discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.timeline-workspace{grid-template-columns:1fr}.event-preview{position:static;order:-1;padding:22px}.event-preview figure{display:none}.event-preview ul{font-size:13px}.event-preview h2{font-size:28px}.timeline-explorer{padding-bottom:40px}.hero-collage{height:430px}.hero-search>div{flex-wrap:wrap}.hero-search input{flex-basis:100%}}
@media(max-width:600px){.wrap{width:89%}.discovery-controls{grid-template-columns:1fr 1fr;gap:12px}.discovery-keyword{grid-column:1/-1}.discovery-grid{grid-template-columns:1fr}.discovery-head h1{font-size:40px}.discovery-card{padding:20px}.discovery-card h2{font-size:26px}.discovery-head{padding-top:28px}.period-rail{gap:7px}.period-chip{font-size:11px;padding:9px 12px}.chronology-axis{padding-left:22px;margin-left:7px}.event-marker:before{left:-32px}.event-button{padding:15px}.event-button strong{font-size:19px}.event-stepper{gap:12px}.timeline-entry{padding:24px;margin-top:30px}.timeline-entry h2{font-size:32px}.count-note{margin-top:-26px;margin-bottom:10px}.hero-search .button{width:100%}.hero h1{font-size:54px}.hero-copy>p{font-size:14px}.hero-actions{gap:16px;flex-wrap:wrap}.hero-bottom{flex-wrap:wrap;gap:10px}.topline span{margin-left:8px}.topic{min-height:155px}.topic h3{font-size:20px}.section-heading{align-items:start}.historical-context{font-size:13px}.article-head h1{font-size:39px}.island-card{padding:21px}.discovery-pagination{gap:14px}.discovery-pagination .button{min-width:85px;padding:12px 16px}}
@media(max-width:360px){.discovery-controls{grid-template-columns:1fr}.discovery-keyword{grid-column:auto}.hero h1{font-size:48px}.brand{font-size:20px}.brand-mark{width:39px;height:39px}.menu-button{font-size:12px}.timeline-entry h2{font-size:28px}.discovery-head h1{font-size:36px}.article-head h1{font-size:35px}.topic-grid{gap:12px}.topic{padding:15px}.topic h3,html[lang=mt] .topic h3{font-size:18px}.period-chip{font-size:11px}.discovery-pagination>span{flex-basis:100%;text-align:center;order:3}}
.language-switch a{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}.menu-button{min-width:70px}.event-button:hover{border-color:var(--purple)}
.era-sampler{border:2px solid var(--ink);border-radius:12px;margin-top:20px;margin-bottom:35px;background:#e8dffc}.era-sampler>summary{font-weight:700;cursor:pointer;padding:18px;min-height:54px}.era-sampler .time-machine{border-top:2px solid var(--ink)}.era-sampler .section{padding-top:30px;padding-bottom:30px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
