/* =====================================================================
   The ArtHistory.org — shared style matching the 2026 homepage
   Load LAST in <head>. Pages opt in with <body class="ah ah-…">.
   Sections: 1 tokens · 2 header · 3 footer · 4 learning · 5 collection
             6 archaeo index · 7 archaeo topics · 8 toolchain
   ===================================================================== */

/* ---------- 1. tokens & base ---------- */
body.ah-site{
  --ink:#111111;--paper:#ffffff;--line:#dedede;--muted:#555555;--soft:#f5f5f5;--wash:#f5f5f5;
  --lime:#C5F500;--orange:#FF8A00;
  --purple:#111111;               /* purple blocks of the old pages become ink, like the homepage */
  --rule:#dedede;
  --display:Inter,Arial,"IBM Plex Sans Thai",sans-serif;
  --body:Inter,Arial,"IBM Plex Sans Thai",sans-serif;
  --mono:Inter,Arial,sans-serif;
  margin:0;background:#fff;color:#111;
  font-family:Inter,Arial,"IBM Plex Sans Thai",sans-serif;-webkit-font-smoothing:antialiased;
}
body.ah-site h1,body.ah-site h2,body.ah-site h3,body.ah-site h4{font-family:Inter,Arial,sans-serif}
body.ah-site :focus-visible{outline:2px solid #111;outline-offset:2px}
body.ah-site ::selection{background:#C5F500;color:#111}
.ah-container{width:min(91.2%,1320px);margin-left:auto;margin-right:auto}

/* ---------- 2. header (same as homepage) ---------- */
.ah-header{all:unset;display:block;background:#fff;color:#111;border:0;position:relative;z-index:30;font-family:Inter,Arial,sans-serif}
.ah-bar{height:70px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.ah-brand{display:flex;align-items:center;gap:12px;flex-shrink:0;color:#111;text-decoration:none;border:0;background:none;padding:0;margin:0;min-width:0}
.ah-brand svg{height:38px;width:auto;flex:none;display:block}
.ah-brand-name{font-size:21px;font-weight:500;letter-spacing:-.06em;line-height:1.1;color:#111;text-transform:none}
.ah-brand-tag{font-size:8px;font-weight:500;letter-spacing:.05em;margin-top:5px;color:#111;text-transform:uppercase}
.ah-nav{display:flex;align-items:center;gap:27px;font-size:12px;font-weight:550;margin:0;padding:0}
.ah-nav a{color:#111;text-decoration:none;border:0;padding:4px 0;border-bottom:1px solid transparent;background:none;font-size:12px;font-weight:550;letter-spacing:normal;text-transform:none}
.ah-nav a:hover,.ah-nav a[aria-current="page"]{border-bottom-color:#111;background:none}
.ah-search{border:0;border-left:1px solid #dedede;height:31px;padding:4px 0 4px 22px;background:none;cursor:pointer;color:#111}
.ah-search svg{width:20px;height:20px;display:block}
.ah-menu{display:none;background:none;border:0;font-size:26px;cursor:pointer;color:#111;padding:0}
.ah-subnav{display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px;border-top:1px solid #dedede;border-bottom:1px solid #dedede;padding:9px 0;font-size:10px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;font-family:Inter,Arial,sans-serif}
.ah-subnav .ah-sub-title{color:#555;margin-right:4px}
.ah-subnav a{color:#111;text-decoration:none;border:0;border-bottom:1px solid transparent;padding:2px 0;background:none}
.ah-subnav a:hover{border-bottom-color:#111}
.ah-subnav .ah-sub-end{margin-left:auto}
.ah-dialog{border:1px solid #111;border-radius:0;padding:20px;width:min(90vw,480px);font-family:Inter,Arial,sans-serif;color:#111}
.ah-dialog::backdrop{background:rgba(17,17,17,.5)}
.ah-dialog-head{display:flex;justify-content:space-between;align-items:center;font-size:13px}
.ah-dialog-head button{border:0;background:none;font-size:22px;cursor:pointer;color:#111}
.ah-search-form{display:flex;margin-top:14px}
.ah-search-form input{flex:1;padding:10px;border:1px solid #111;border-right:0;border-radius:0;font:13px Inter,Arial,sans-serif;min-width:0}
.ah-search-form button{border:0;background:#111;color:#fff;padding:0 14px;font:500 12px Inter,Arial,sans-serif;cursor:pointer}

/* ---------- 3. footer (same as homepage) ---------- */
.ah-footer{all:unset;display:block;background:#fff;color:#111;font-family:Inter,Arial,sans-serif;margin-top:40px}
.ah-footer *{box-sizing:border-box}
.ah-footer a{color:#111;background:none;border:0}
.ah-footer-in{border-top:1px solid #dedede;padding-top:12px}
.ah-footer-top{display:grid;grid-template-columns:25% 30% 1fr;gap:18px;padding-bottom:14px}
.ah-footer .ah-brand svg{height:44px}
.ah-footer .ah-brand-name{font-size:17px}
.ah-footer .ah-brand-tag{font-size:7px}
.ah-footer-about{border-left:1px solid #dedede;padding-left:18px;font:11px/1.5 Inter,Arial,sans-serif;margin:0}
.ah-footer-about strong{display:block;margin-bottom:4px}
.ah-footer-links{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ah-footer-links strong{display:block;font-size:9px;margin-bottom:5px;letter-spacing:normal}
.ah-footer-links a{display:block;font-size:9px;line-height:1.4;text-decoration:none}
.ah-footer-links a:hover{text-decoration:underline}
.ah-legal{border-top:1px solid #dedede;display:grid;grid-template-columns:1fr auto;gap:8px 24px;padding:10px 0;font-size:9px;line-height:1.5}
.ah-legal p{margin:0;font-size:9px;line-height:1.5}
.ah-legal a{text-decoration:underline;text-underline-offset:2px}
.ah-license{display:flex;gap:10px;align-items:flex-start}
.ah-license .ah-cc{text-decoration:none;flex:none;display:inline-flex;gap:3px;color:#111}
.ah-cc svg{width:16px;height:16px;display:block;overflow:visible}
.ah-cc svg circle,.ah-cc svg path{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ah-cc svg text{fill:currentColor;stroke:none;font:500 6.3px Arial,Helvetica,sans-serif;letter-spacing:-.2px}
.ah-cc svg .cc-fill{fill:currentColor;stroke:none}
.ah-credit{color:#555;text-align:right}
.ah-cite,.ah-notes{grid-column:1/-1;color:#555}
.ah-notes p+p{margin-top:2px}
.ah-terms{border-top:1px solid #dedede;padding:8px 0 20px;font-size:9px;color:#555}
.ah-terms summary{cursor:pointer;font-weight:500;color:#111;letter-spacing:.06em;text-transform:uppercase}
.ah-terms-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:10px}
.ah-terms h4{margin:0 0 4px;font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:#111}
.ah-terms p{margin:0;line-height:1.5;font-size:9px}

@media(max-width:760px){
  .ah-bar{height:65px}
  .ah-nav{display:none;position:absolute;top:62px;left:0;right:0;background:#fff;border-bottom:1px solid #ddd;padding:20px 5%;z-index:40;flex-direction:column;align-items:flex-start;gap:18px}
  .ah-nav.open{display:flex}
  .ah-search{border:0;padding:0}
  .ah-menu{display:block;margin-left:auto}
  .ah-brand-name{font-size:18px}
  .ah-brand svg{height:32px}
  .ah-subnav .ah-sub-end{margin-left:0}
  .ah-footer-top{grid-template-columns:1fr 1fr}
  .ah-footer-about{border:0;padding:0}
  .ah-footer-links{grid-column:1/-1}
  .ah-legal{grid-template-columns:1fr}
  .ah-credit{text-align:left}
  .ah-terms-grid{grid-template-columns:1fr}
}
@media(max-width:430px){.ah-footer-links{grid-template-columns:repeat(2,1fr)}}

/* ---------- shared content scale (homepage) ---------- */
/* page title  : clamp(30px,3.6vw,54px) 850 -.055em
   section h2  : 32px  · card h3: 15px · body: 12px · labels: 9–10px caps */

/* ---------- 4. Open Learning Repos ---------- */
body.ah-learning .wrap{max-width:none;width:min(91.2%,1320px);padding:0;margin:0 auto}
body.ah-learning .hero{padding:16px 0 0;border-top:0}
body.ah-learning .eyebrow{color:#111;font-size:10px;letter-spacing:.13em;font-weight:500}
body.ah-learning .hero h1{font-size:clamp(30px,3.6vw,54px);line-height:1.085;letter-spacing:-.055em;font-weight:500;margin:18px 0 14px;text-transform:none}
body.ah-learning .hero h1 .p{color:#111}
body.ah-learning .intro{gap:20px}
body.ah-learning .intro p{font-size:12px;line-height:1.52;max-width:560px}
body.ah-learning .stat strong{font-size:30px;letter-spacing:-.055em}
body.ah-learning .stat span{font-size:9px;letter-spacing:.06em;font-weight:500}
body.ah-learning .stripe{display:none}
body.ah-learning .controls{border-top:1px solid #dedede;border-bottom:1px solid #dedede;margin-top:20px;padding:14px 0}
body.ah-learning .controls input,body.ah-learning .controls select{padding:9px 10px;border:1px solid #dedede;border-radius:3px;font-size:12px}
body.ah-learning .controls input:focus,body.ah-learning .controls select:focus{outline:2px solid #111}
body.ah-learning .meta{font-size:10px;padding:12px 0}
body.ah-learning .grid{border:0;gap:14px;margin-bottom:40px}
body.ah-learning .repo{border:1px solid #dedede;border-radius:5px;padding:14px;min-height:0}
body.ah-learning .repo:hover{box-shadow:none;border-color:#111}
body.ah-learning .org{font-size:9px;letter-spacing:.06em;font-weight:500}
body.ah-learning .repo h2{font-size:15px;letter-spacing:-.035em;line-height:1.12;margin:8px 0 6px}
body.ah-learning .repo p{font-size:11px;line-height:1.52}
body.ah-learning .fit{font-size:11px;border-left:1px solid #111}
body.ah-learning .fit b{color:#111;font-size:9px}
body.ah-learning .note{font-size:10px}
body.ah-learning .tag{font-size:8px;padding:2px 5px;border-color:#dedede;letter-spacing:.06em}
body.ah-learning .tag.lic{background:#111;border-color:#111;color:#fff}
body.ah-learning .bottom{border-top:1px solid #dedede;font-size:10px}
body.ah-learning .bottom a{color:#111;font-weight:500}
body.ah-learning .empty{border:1px solid #dedede}
body.ah-learning section.resources,body.ah-learning section.about{border-top:1px solid #dedede;padding:20px 0 18px}
body.ah-learning .sechead{margin-bottom:20px}
body.ah-learning .sechead h2,body.ah-learning section.about h2{font-size:32px;line-height:1.1;letter-spacing:-.055em;margin:8px 0 0}
body.ah-learning .sechead h2 span,body.ah-learning section.about h2 span{color:#111}
body.ah-learning .sechead p{font-size:11px;max-width:470px}
body.ah-learning .tiles{border:0;gap:12px}
body.ah-learning .tile{border:1px solid #dedede;border-radius:5px;min-height:150px;padding:13px;background:#fff;color:#111}
body.ah-learning .tile.t-lime,body.ah-learning .tile.t-purple,body.ah-learning .tile.t-orange{background:#fff;color:#111}
body.ah-learning .tile:hover,body.ah-learning .tile.t-lime:hover,body.ah-learning .tile.t-orange:hover,body.ah-learning .tile.t-purple:hover{background:#fff;color:#111;border-color:#111}
body.ah-learning .tile .k{font-size:9px;letter-spacing:.06em}
body.ah-learning .tile h3{font-size:15px;letter-spacing:-.035em;line-height:1.12}
body.ah-learning .tile p{font-size:10px;line-height:1.4}
body.ah-learning .tile .arr{font-size:18px}
body.ah-learning .notes article{border-top:1px solid #dedede!important}
body.ah-learning .notes .k{font-size:9px}
body.ah-learning .notes h3{font-size:15px;letter-spacing:-.035em}
body.ah-learning section.about p,body.ah-learning section.about .notes p{font-size:12px;line-height:1.52}
body.ah-learning .actions button{border:1px solid #111;border-radius:3px;background:#111;color:#fff;padding:10px 20px;font-size:12px;font-weight:500;text-transform:none;letter-spacing:normal}
body.ah-learning .actions button:nth-child(2){background:#fff;color:#111}
body.ah-learning .actions button:hover{background:#333;border-color:#333;color:#fff}
body.ah-learning #sync-msg{font-size:11px}

/* ---------- 5. Open Collections ---------- */
body.ah-collection .hero,body.ah-collection .app{width:min(91.2%,1320px);margin:0 auto;padding-left:0;padding-right:0}
body.ah-collection .hero{grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);padding-top:16px;padding-bottom:24px;gap:24px;border-bottom:0}
body.ah-collection .eyebrow,body.ah-collection .section-label{font-size:10px;letter-spacing:.13em;font-weight:500}
body.ah-collection .hero h1{font-size:clamp(30px,3.6vw,54px);line-height:1.085;letter-spacing:-.055em;font-weight:500;text-transform:none;margin:18px 0 0}
body.ah-collection .hero h1 span{color:#111}
body.ah-collection .intro{border-top:0;border-left:1px solid #dedede;background:none;padding:6px 0 6px 18px;font-size:12px;line-height:1.52}
body.ah-collection .intro strong{font-size:9px;letter-spacing:.1em;margin-bottom:8px}
body.ah-collection .app{border-top:1px solid #dedede;padding-top:20px;padding-bottom:40px}
body.ah-collection .registry-tabs{gap:6px;margin-bottom:20px}
body.ah-collection .registry-tabs button{border:1px solid #dedede;border-radius:3px;padding:9px 14px;font-size:11px;font-weight:500;letter-spacing:.04em;background:#fff;color:#111}
body.ah-collection .registry-tabs button[aria-selected=true]{background:#111;border-color:#111;color:#fff}
body.ah-collection .search input{height:44px;border:1px solid #dedede;border-radius:3px;font-size:14px;padding:0 14px}
body.ah-collection .primary{border:1px solid #111;border-radius:3px;background:#111;padding:0 20px;font-size:12px;font-weight:500;letter-spacing:normal;text-transform:none}
body.ah-collection .primary:hover{background:#333}
body.ah-collection .sources{gap:6px;margin:14px 0}
body.ah-collection .source{border:1px solid #dedede;border-radius:3px;padding:7px 10px;font-size:10px;font-weight:500}
body.ah-collection .source:has(input:checked){background:#C5F500;border-color:#C5F500;color:#111}
body.ah-collection .source.local:has(input:checked){background:#111;border-color:#111;color:#fff}
body.ah-collection .source input{accent-color:#111}
body.ah-collection .options{font-size:11px}
body.ah-collection .status{background:none;border-left:1px solid #111;padding:10px 14px;font-size:12px;margin:20px 0 14px}
body.ah-collection .status.error{border-color:#FF8A00}
body.ah-collection .source-status span{font-size:9px;border-color:#dedede}
body.ah-collection .toolbar h2,body.ah-collection .registry-head h2{font-size:32px;line-height:1.1;letter-spacing:-.055em}
body.ah-collection .count{font-size:10px;letter-spacing:.06em}
body.ah-collection .grid{gap:14px}
body.ah-collection .card{border:1px solid #dedede;border-radius:5px;overflow:hidden}
body.ah-collection .card:hover{border-color:#111}
body.ah-collection .visual{background:#f2f2f2}
body.ah-collection .tag{border:0;font-size:8px;padding:2px 5px;letter-spacing:.06em}
body.ah-collection .tag.local{background:#111;color:#fff}
body.ah-collection .card-body{padding:12px}
body.ah-collection .card h3{font-size:15px;line-height:1.12;letter-spacing:-.035em}
body.ah-collection .card p{font-size:11px;color:#555}
body.ah-collection .card .rights{font-size:9px;font-weight:500}
body.ah-collection .card .rights.local{color:#111}
body.ah-collection .card a,body.ah-collection .card button{border:1px solid #dedede;border-radius:3px;font-size:10px;font-weight:500;padding:6px 9px}
body.ah-collection .card button{background:#111;border-color:#111;color:#fff}
body.ah-collection .notes{gap:14px;margin-top:30px}
body.ah-collection .note{border:1px solid #dedede;border-radius:5px;padding:14px}
body.ah-collection .note h2{font-size:15px;letter-spacing:-.035em;text-transform:none}
body.ah-collection .note p{font-size:12px;line-height:1.52}
body.ah-collection .registry-panel{border:1px solid #dedede;border-radius:5px;padding:18px}
body.ah-collection .registry-item{border:1px solid #dedede;border-radius:5px}
body.ah-collection .registry-item[aria-current=true]{border-color:#111;outline:1px solid #111;outline-offset:-2px}
body.ah-collection .registry-item strong{font-size:14px}
body.ah-collection .registry-item small{font-size:11px}
body.ah-collection .subhead{font-size:18px;border-top:1px solid #dedede}
body.ah-collection .field input,body.ah-collection .field textarea,body.ah-collection .field select,body.ah-collection .form-grid input,body.ah-collection .form-grid textarea,body.ah-collection .form-grid select{border:1px solid #dedede;border-radius:3px;font-size:12px}
body.ah-collection .field label,body.ah-collection .form-grid label{font-size:10px}
body.ah-collection .mini-btn{border:1px solid #111;border-radius:3px;background:#111;color:#fff;font-size:11px;font-weight:500;padding:8px 14px}
body.ah-collection .mini-btn.secondary{background:#fff;color:#111}
body.ah-collection .mini-btn.purple{background:#111;color:#fff}
body.ah-collection .history li{border-left:1px solid #111;background:#f5f5f5;font-size:12px}
body.ah-collection .help,body.ah-collection .notice{font-size:11px}
body.ah-collection .notice{background:#f5f5f5;border-left:1px solid #C5F500}
body.ah-collection .standards-grid{gap:12px}
body.ah-collection .standard-card{border:1px solid #dedede;border-radius:5px;padding:14px;min-height:140px}
body.ah-collection .standard-card h3{font-size:15px;letter-spacing:-.035em}
body.ah-collection .standard-card p{font-size:11px}
body.ah-collection .standard-status{color:#111;font-size:9px}
body.ah-collection .audit-item{border-color:#dedede}
body.ah-collection .audit-item.pass{border-left:1px solid #8cb400}
body.ah-collection .audit-item.fail{border-left:1px solid #FF8A00}
body.ah-collection .standards-intro{font-size:12px}
body.ah-collection .standard-warning{border-left:1px solid #FF8A00;font-size:12px}
body.ah-collection .score{font-size:30px}
body.ah-collection dialog#detailDialog{border:1px solid #111;border-top:1px solid #111;border-radius:0}
body.ah-collection .dialog-head{border-bottom:1px solid #dedede}
body.ah-collection .dialog-head h2{font-size:18px}
body.ah-collection .dialog-head button{border:1px solid #111;border-radius:3px;background:#fff}
body.ah-collection .details dt,body.ah-collection .details dd{font-size:12px;border-bottom-color:#dedede}

/* ---------- 6. Open Archaeology Toolkit (index) ---------- */
body.ah-archaeo .tri{display:none}
body.ah-archaeo .wrap{max-width:none;width:min(91.2%,1320px);padding:0;margin:0 auto}
body.ah-archaeo{font-size:12px;--gut:20px}
body.ah-archaeo .lab{font-size:10px;letter-spacing:.13em;font-weight:500}
body.ah-archaeo .hero{padding:16px 0 24px;border-bottom:0}
body.ah-archaeo .hero .kick{margin-bottom:6px}
body.ah-archaeo .hero .kick a{border-bottom-color:#111}
body.ah-archaeo .hero h1{font-size:clamp(30px,3.6vw,54px);line-height:1.085;letter-spacing:-.055em;font-weight:500}
body.ah-archaeo .hero h1 span{color:#111}
body.ah-archaeo .hero h1 em{background:none;padding:0;margin:0}
body.ah-archaeo .comp .c-circ,body.ah-archaeo .comp .c-sq,body.ah-archaeo .comp .c-bar,body.ah-archaeo .comp .c-half{display:none}
body.ah-archaeo .plate{background:#fff;color:#111;border:1px solid #dedede;border-radius:5px;padding:14px}
body.ah-archaeo .plate b{font-size:45px;letter-spacing:-.055em;line-height:1}
body.ah-archaeo .plate span{font-size:9px;letter-spacing:.1em;margin-top:6px}
body.ah-archaeo .hero .intro{font-size:12px;line-height:1.52;margin-top:14px;max-width:560px}
body.ah-archaeo .hero .src{font-size:11px;border-left:1px solid #FF8A00}
body.ah-archaeo .ext{border-bottom:1px solid #111}
body.ah-archaeo .ext:hover{background:#f2f2f2}
body.ah-archaeo .stats{border-top:1px solid #dedede;border-bottom:1px solid #dedede}
body.ah-archaeo .stat,body.ah-archaeo .stat:not(:first-child){border-top:0;border-bottom:0;border-left:1px solid #dedede;padding:12px 14px}
body.ah-archaeo .stat:first-child{background:none;color:#111;border-left:0;padding-left:0}
body.ah-archaeo .stat b{font-size:26px;letter-spacing:-.055em}
body.ah-archaeo .stat b.sm{font-size:14px}
body.ah-archaeo .stat span{font-size:10px;color:#555}
body.ah-archaeo .sec{padding:20px 0 8px;border-top:1px solid #dedede;margin-top:20px}
body.ah-archaeo .sec-head{border-top:0;margin-bottom:18px;align-items:end}
body.ah-archaeo .sec-head .no{display:none!important}
body.ah-archaeo .sec-head .tt{grid-column:1/8!important}
body.ah-archaeo .sec-head .aside{grid-column:8/13!important}
@media(max-width:820px){body.ah-archaeo .sec-head .tt,body.ah-archaeo .sec-head .aside{grid-column:1/-1!important}}
body.ah-archaeo .sec-head .tt,body.ah-archaeo .sec-head .aside{border-top:0;padding-top:0}
body.ah-archaeo .sec-head h2{font-size:32px;line-height:1.1;letter-spacing:-.055em;font-weight:500}
body.ah-archaeo .sec-head .aside{font-size:11px}
body.ah-archaeo .btn{border:1px solid #dedede;border-radius:3px;background:#fff;color:#111;padding:6px 12px;font-size:10px;font-weight:500;letter-spacing:.04em}
body.ah-archaeo .btn:hover{background:#f2f2f2}
body.ah-archaeo .btn[aria-pressed="true"],body.ah-archaeo .btn.pri{background:#111;border-color:#111;color:#fff}
body.ah-archaeo .tiers{border:1px solid #dedede;border-radius:5px;overflow:hidden}
body.ah-archaeo .tier{border-left:1px solid #dedede;border-top:0!important;padding:12px 14px}
body.ah-archaeo .tier span{font-size:10px;letter-spacing:.1em}
body.ah-archaeo .tier em{font-size:30px;letter-spacing:-.055em}
body.ah-archaeo .tier small{font-size:10px}
body.ah-archaeo .tier:hover{background:#f5f5f5}
body.ah-archaeo .tier[aria-pressed="true"]{background:#111;color:#fff}
body.ah-archaeo .groups{background:#dedede;border:1px solid #dedede;border-top:0;border-radius:0 0 5px 5px;overflow:hidden}
body.ah-archaeo .grp{padding:12px 14px}
body.ah-archaeo .grp b{font-size:15px;letter-spacing:-.035em}
body.ah-archaeo .grp span.u{font-size:10px}
body.ah-archaeo .grp em{font-size:26px;letter-spacing:-.055em}
body.ah-archaeo .grp .cd{width:22px;height:22px;font-size:10px}
body.ah-archaeo .grp:nth-child(3n+1) .cd{background:#111;color:#fff}
body.ah-archaeo .grp:hover{background:#f5f5f5}
body.ah-archaeo .grp[aria-pressed="true"]{background:#111;color:#fff}
body.ah-archaeo .grp[aria-pressed="true"] .cd{background:#fff;color:#111}
body.ah-archaeo .feat-h h3,body.ah-archaeo .res-h h3{font-size:18px;letter-spacing:-.04em}
body.ah-archaeo .res-h h3::before{width:10px;height:10px;background:#111}
body.ah-archaeo .feat ol{border-top:1px solid #111}
body.ah-archaeo .feat li{border-bottom:1px solid #dedede;padding:8px 0}
body.ah-archaeo .feat .ix{width:22px;height:22px;font-size:10px}
body.ah-archaeo .feat li:nth-child(3n) .ix{background:#111;color:#fff}
body.ah-archaeo .feat .nm{font-size:14px;letter-spacing:-.03em}
body.ah-archaeo .feat .ds{font-size:11px}
body.ah-archaeo .feat .gc span{font-size:9px;border-width:1px}
body.ah-archaeo .feat li>a,body.ah-archaeo .lnk a{font-size:10px;letter-spacing:.04em;border-bottom:1px solid #111}
body.ah-archaeo .feat li>a:hover,body.ah-archaeo .lnk a:hover{background:#f2f2f2}
body.ah-archaeo .note-sm{font-size:10px;color:#555}
body.ah-archaeo .tasks{background:#dedede;border:1px solid #dedede;border-radius:5px;overflow:hidden}
body.ah-archaeo .task{border-top:1px solid var(--c);min-height:120px;padding:12px}
body.ah-archaeo .task .tn em{font-size:24px;letter-spacing:-.055em}
body.ah-archaeo .task .tn i{font-size:10px}
body.ah-archaeo .task b{font-size:14px;letter-spacing:-.03em}
body.ah-archaeo .task span{font-size:10px}
body.ah-archaeo .task[aria-pressed="true"]{background:#111;color:#fff}
body.ah-archaeo .topics{font-size:11px}
body.ah-archaeo .topics a:hover{background:#f2f2f2}
body.ah-archaeo .bar{top:0;border-top:1px solid #dedede;border-bottom:1px solid #dedede}
body.ah-archaeo .srch{border:1px solid #dedede;border-radius:3px;font-size:12px;padding:8px 10px}
body.ah-archaeo .srch:focus{background:#fff;outline:2px solid #111}
body.ah-archaeo .sortsel{border:1px solid #dedede;border-radius:3px;font-size:11px}
body.ah-archaeo .panel{border-bottom:1px solid #dedede}
body.ah-archaeo .pg{border-left:1px solid #dedede}
body.ah-archaeo .chip{border:1px solid #dedede;border-radius:3px;font-size:11px}
body.ah-archaeo .chip:hover{background:#f5f5f5}
body.ah-archaeo .chip[aria-pressed="true"]{background:#C5F500;border-color:#C5F500}
body.ah-archaeo .tog,body.ah-archaeo .hint{font-size:11px}
body.ah-archaeo .tog input{accent-color:#111}
body.ah-archaeo .cards{background:none;border:0;gap:14px}
body.ah-archaeo .card{border:1px solid #dedede;border-top:1px solid var(--c,#111);border-radius:5px;padding:12px}
body.ah-archaeo .card:hover{background:#fff;border-color:#111}
body.ah-archaeo .card h3{font-size:15px;letter-spacing:-.035em}
body.ah-archaeo .card .ds{font-size:11px}
body.ah-archaeo .pf{font-size:9px}
body.ah-archaeo .ct,body.ah-archaeo .au{font-size:10px}
body.ah-archaeo .tg{font-size:9px;border-color:#dedede}
body.ah-archaeo .lnk{border-top:1px solid #dedede}
body.ah-archaeo .mx-wrap{border:1px solid #dedede;border-radius:5px}
body.ah-archaeo .mx td button i{background:#111}
body.ah-archaeo .mx tbody tr:nth-child(3n+1) th i{background:#111}
body.ah-archaeo .mxk{font-size:10px}
body.ah-archaeo .note{border-top:1px solid #dedede!important;border-top-width:1px}
body.ah-archaeo .note h3{font-size:15px;letter-spacing:-.035em}
body.ah-archaeo .note p,body.ah-archaeo .note li{font-size:11px}
body.ah-archaeo .tag{font-size:8px;border-width:1px;padding:2px 5px}
@media(max-width:820px){body.ah-archaeo .stat,body.ah-archaeo .stat:not(:first-child){border-left:0;border-bottom:1px solid #dedede}}

/* ---------- 7. Open Archaeology Toolkit — topic pages ---------- */
body.ah-topic{font-size:12px}
body.ah-topic .topic-wrap{max-width:none;width:min(91.2%,1320px);padding:0;margin:0 auto}
body.ah-topic .topic-edition{display:none!important}
body.ah-topic .breadcrumbs{font-size:10px;margin:14px 0 0;color:#555}
body.ah-topic .breadcrumbs a{border-bottom:1px solid #111}
body.ah-topic .topic-hero{grid-template-columns:minmax(0,1fr) minmax(200px,28%);border-bottom:0;min-height:0;margin-top:6px;gap:24px}
body.ah-topic .topic-heading{padding:10px 0 20px;gap:14px;justify-content:flex-start}
body.ah-topic .topic-heading .kicker{color:#111;font-size:10px;letter-spacing:.13em;font-weight:500}
body.ah-topic .topic-heading h1{font:850 clamp(30px,3.6vw,54px)/1.085 Inter,Arial,sans-serif!important;letter-spacing:-.055em!important;max-width:18ch}
body.ah-topic .topic-heading .deck{font-size:12px;line-height:1.52;max-width:560px}
body.ah-topic .topic-plaque{min-height:0!important;background:#fff!important;color:#111!important;border:1px solid #dedede;border-radius:5px;padding:14px!important;align-self:start;gap:8px;overflow:visible}
body.ah-topic .topic-plaque .topic-arch{display:none!important}
body.ah-topic .topic-plaque .index{font-size:9px!important;color:#555!important;letter-spacing:.1em}
body.ah-topic .topic-plaque strong{font:850 45px/1 Inter,Arial,sans-serif!important;letter-spacing:-.055em!important;color:#111!important}
body.ah-topic .topic-plaque .sub{color:#111!important;font-size:9px!important;letter-spacing:.1em}
body.ah-topic .section-mark{border-top:1px solid #dedede;padding:20px 0 12px;font-size:10px;letter-spacing:.13em;font-weight:500;color:#111}
body.ah-topic .section-mark b{color:#111}
body.ah-topic .topic-scope{margin:10px 0 30px;gap:30px}
body.ah-topic .topic-scope h2,body.ah-topic .topic-selector h2,body.ah-topic .results-head h2{font:850 32px/1.1 Inter,Arial,sans-serif!important;letter-spacing:-.055em!important;margin:4px 0 12px}
body.ah-topic .topic-scope p{font-size:12px;line-height:1.52}
body.ah-topic .scope-tags span{border:1px solid #dedede;border-radius:3px;font-size:10px;padding:3px 7px}
body.ah-topic .topic-selector{border-top:0;padding-top:0;margin-bottom:30px}
body.ah-topic .topic-links{border:0;gap:10px}
body.ah-topic .topic-links a{border:1px solid #dedede!important;border-radius:5px;min-height:70px;padding:12px;font:500 12px/1.25 Inter,Arial,sans-serif;letter-spacing:-.02em;background:#fff;color:#111}
body.ah-topic .topic-links a span{font-size:9px;color:#555;letter-spacing:.06em}
body.ah-topic .topic-links a:hover{border-color:#111!important;background:#fff}
body.ah-topic .topic-links a[aria-current=page]{background:#111;color:#fff;border-color:#111!important}
body.ah-topic .topic-links a[aria-current=page] span{color:#fff}
body.ah-topic .lab{font-size:10px;letter-spacing:.13em;font-weight:500}
body.ah-topic .search-box{font-size:9px;letter-spacing:.08em;font-weight:500}
body.ah-topic .search-box input{border:1px solid #dedede;border-radius:3px;font-size:12px;padding:9px 10px}
body.ah-topic .search-box input:focus{background:#fff;outline:2px solid #111}
body.ah-topic .results-status{font-size:10px}
body.ah-topic .results-list{border:0!important;gap:14px;margin-bottom:40px}
body.ah-topic .results-list>.card,body.ah-topic .topic-wrap .results-list>.card{border:1px solid #dedede!important;border-radius:5px;padding:12px!important;gap:8px}
body.ah-topic .results-list>.card:hover{border-color:#111!important}
body.ah-topic .card .meta{font-size:9px}
body.ah-topic .card .meta .pf{background:#111!important;color:#fff;padding:2px 5px}
body.ah-topic .card .meta .ct{background:#f2f2f2;padding:2px 5px}
body.ah-topic .card h3{font:500 15px/1.12 Inter,Arial,sans-serif!important;letter-spacing:-.035em!important}
body.ah-topic .card p{font-size:11px;line-height:1.52}
body.ah-topic .card .tg{border:1px solid #dedede;border-radius:3px;font-size:9px}
body.ah-topic .card .au{font-size:10px}
body.ah-topic .card .lnk{border-top:1px solid #dedede;padding-top:8px}
body.ah-topic .card .lnk a{font-size:10px;border-bottom:1px solid #111}
body.ah-topic .card .lnk a:hover{background:#f2f2f2}
body.ah-topic .notice{border-top:1px solid #dedede;font-size:11px;padding:20px 0 10px}

/* ---------- 8. Toolchain Builder ---------- */
body.ah-toolchain{font-size:12px}
body.ah-toolchain .wrap{max-width:none;width:min(91.2%,1320px);padding:0;margin:0 auto}
body.ah-toolchain .hero{padding:16px 0 24px;border-bottom:0;gap:20px}
body.ah-toolchain .eyebrow{font-size:10px;letter-spacing:.13em;font-weight:500;color:#111}
body.ah-toolchain .hero h1{font-size:clamp(30px,3.6vw,54px);line-height:1.085;letter-spacing:-.055em;font-weight:500}
body.ah-toolchain .hero p{font-size:12px;line-height:1.52}
body.ah-toolchain .q{border-top:1px solid #dedede;border-bottom:0;padding:20px 0}
body.ah-toolchain .q .num{font-size:30px;letter-spacing:-.055em}
body.ah-toolchain .q .lab h2{font-size:15px;letter-spacing:-.035em}
body.ah-toolchain .q .lab div{font-size:11px}
body.ah-toolchain .opt{border:1px solid #dedede;border-radius:3px;padding:8px 12px;font-size:12px;font-weight:500}
body.ah-toolchain .opt:hover{border-color:#111;background:#fff}
body.ah-toolchain .opt[aria-pressed=true]{background:#111;border-color:#111;color:#fff}
body.ah-toolchain .resultHead{border-top:1px solid #dedede;border-bottom:1px solid #dedede;padding:20px 0 14px}
body.ah-toolchain .resultHead h2{font-size:32px;line-height:1.1;letter-spacing:-.055em}
body.ah-toolchain .btn{border:1px solid #111;border-radius:3px;background:#111;color:#fff;padding:8px 16px;font-size:12px;font-weight:500}
body.ah-toolchain .btn.ghost{background:#fff;color:#111}
body.ah-toolchain .empty{font-size:13px}
body.ah-toolchain .chain{border-left:1px solid #dedede}
body.ah-toolchain .stage{border-right:1px solid #dedede;padding:14px}
body.ah-toolchain .stage .sn{font-size:30px;letter-spacing:-.055em}
body.ah-toolchain .stage h3{font-size:15px;letter-spacing:-.035em}
body.ah-toolchain .stage .sd{font-size:10px}
body.ah-toolchain .tool{border-top:1px solid #dedede}
body.ah-toolchain .tool.core{border-top-color:#111}
body.ah-toolchain .tool h4{font-size:13px}
body.ah-toolchain .tool p{font-size:11px}
body.ah-toolchain .badge{font-size:8px;border-color:#dedede}
body.ah-toolchain .tool a{font-size:10px}
body.ah-toolchain .alt{border:1px solid #dedede;border-radius:3px;font-size:10px}
body.ah-toolchain .legend{font-size:10px}
body.ah-toolchain .legend i[style*="753BFF"],body.ah-toolchain .legend i[style*="purple"]{background:#111!important}
body.ah-toolchain .method{border-top:1px solid #dedede;font-size:11px}
body.ah-toolchain .method h3{font-size:12px}

/* ---------- fixes ---------- */
.topic-wrap .ah-container{width:100%}
body.ah-archaeo .tasks{background:#fff;gap:0}
body.ah-archaeo .task{border-right:1px solid #dedede;border-bottom:1px solid #dedede}
@media(max-width:760px){
  body.ah-collection .hero{grid-template-columns:1fr}
  body.ah-collection .intro{border-left:0;border-top:1px solid #dedede;padding:12px 0 0}
}
@media(max-width:690px){
  body.ah-topic .topic-hero{grid-template-columns:1fr}
  body.ah-topic .topic-plaque{display:flex!important}
}
body.ah-topic .topic-heading .deck{border-top:0!important;padding-top:0!important}

/* ---------- 9. Academic Research Index ---------- */
body.ah-research{background:#fff;font-size:12px}
body.ah-research main{max-width:none;width:min(91.2%,1320px);margin:0 auto;padding:16px 0 20px}
body.ah-research .eyebrow{color:#111;font-size:10px;letter-spacing:.13em;font-weight:500}
body.ah-research main h1{font-size:clamp(30px,3.6vw,54px);line-height:1.085;letter-spacing:-.055em;font-weight:500;margin:18px 0 14px}
body.ah-research p.lead{font-size:12px;line-height:1.52;max-width:560px;color:#111}
body.ah-research .stats{gap:0;margin:20px 0;border-top:1px solid #dedede;border-bottom:1px solid #dedede}
body.ah-research .stat{border-left:1px solid #dedede;padding:12px 18px;font-size:10px;color:#555}
body.ah-research .stat:first-child{border-left:0;padding-left:0}
body.ah-research .stat strong{font-size:26px;letter-spacing:-.055em;color:#111;line-height:1.1}
body.ah-research .notice{background:none;border-left:1px solid #FF8A00;padding:4px 0 4px 14px;font-size:11px;margin:16px 0}
body.ah-research .controls{gap:10px;margin:20px 0;padding:14px 0;border-top:1px solid #dedede;border-bottom:1px solid #dedede}
body.ah-research .controls input,body.ah-research .controls select{padding:9px 10px;border:1px solid #dedede;border-radius:3px;font-size:12px}
body.ah-research .controls input:focus,body.ah-research .controls select:focus{outline:2px solid #111}
body.ah-research .grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
body.ah-research .card{border:1px solid #dedede;border-radius:5px;padding:14px;min-height:120px;gap:10px}
body.ah-research .card:hover{border-color:#111}
body.ah-research .card a{font-size:15px;line-height:1.12;letter-spacing:-.035em;font-weight:500}
body.ah-research .card a:hover{color:#111;text-decoration:underline;text-underline-offset:2px}
body.ah-research .meta{font-size:10px;color:#555}
body.ah-research .tag{background:#f2f2f2;color:#111;font-size:9px;padding:2px 5px;letter-spacing:.04em}
@media(max-width:550px){body.ah-research main{padding:12px 0 20px}body.ah-research .stat{padding:10px 12px}}

/* ---------- shared header/footer hardening (pages with global element rules) ---------- */
.ah-header{border:0!important;box-shadow:none!important;background:#fff!important;min-height:0!important;max-width:none!important;padding:0!important;margin:0!important}
.ah-menu,.ah-search,.ah-dialog-head button,.ah-search-form button{min-height:0!important;height:auto;width:auto;font-family:Inter,Arial,sans-serif;border-radius:0}
.ah-search{height:31px!important}
.ah-search-form input{min-height:0!important;height:auto}
.ah-footer{max-width:none!important;padding:0!important}

/* ---------- 10. Research tools: OpenAlex · Getty · Crossref ---------- */
body.ah-tools{font-size:12px;--green:#C5F500;--yellow:#C5F500}
body.ah-tools .shell{width:min(91.2%,1320px);max-width:none;margin:0 auto;padding:0}
body.ah-tools main .hero{padding:16px 0 24px;gap:24px;grid-template-columns:minmax(0,1.7fr) minmax(220px,.65fr);border-bottom:0}
body.ah-tools .kicker{color:#111!important;font-size:10px!important;letter-spacing:.13em!important;font-weight:500;margin-bottom:0}
body.ah-tools .kicker::after,body.ah-tools .kicker::before{display:none!important}
body.ah-tools main .hero h1{font-size:clamp(30px,3.6vw,54px)!important;line-height:1.085!important;letter-spacing:-.055em!important;font-weight:500;margin:18px 0 14px!important}
body.ah-tools main .hero .intro{font-size:12px!important;line-height:1.52;max-width:560px}
body.ah-tools main .heroaside{border-top:0;border-left:1px solid #dedede;padding:4px 0 4px 18px;font-size:11px;align-self:end}
body.ah-tools main .heroaside .accent{font-size:9px;padding:3px 6px;letter-spacing:.08em;background:#C5F500}
body.ah-tools .tooltabs{border-top:1px solid #dedede;border-bottom:1px solid #dedede;gap:0}
body.ah-tools .tooltabs a{font-size:12px;padding:10px 0;border-bottom:1px solid transparent;font-weight:500}
body.ah-tools .tooltabs a span{color:#555;font-size:9px}
body.ah-tools .tooltabs a[aria-current]{border-bottom-color:#111}
body.ah-tools .searcharea{padding:16px 0;border:0}
body.ah-tools .searcharea label{font-size:9px;letter-spacing:.08em;font-weight:500;gap:6px}
body.ah-tools .searcharea input,body.ah-tools .searcharea select,body.ah-tools .searcharea button{height:40px!important;min-height:40px!important;font-size:12px!important;border:1px solid #dedede!important;border-radius:3px!important}
body.ah-tools .searcharea button{background:#111!important;border-color:#111!important;color:#fff!important;font-weight:500;letter-spacing:.02em}
body.ah-tools .searcharea button:hover{background:#333!important}
body.ah-tools .bar{border-top:1px solid #dedede;border-bottom:1px solid #111;font-size:11px;padding:10px 0}
body.ah-tools .results .item{border-bottom:1px solid #dedede;padding:14px 0}
body.ah-tools .results .item>.num,body.ah-tools .results .item>.number{color:#555;font-size:9px}
body.ah-tools .item h2{font-size:15px!important;line-height:1.12;letter-spacing:-.035em}
body.ah-tools .item p,body.ah-tools .item .details{font-size:11px;color:#555}
body.ah-tools .meta,body.ah-tools .record .meta{font-size:9px;letter-spacing:.06em}
body.ah-tools .item a,body.ah-tools .item button{border:1px solid #dedede;border-radius:3px;font:500 10px Inter,Arial,sans-serif;padding:6px 9px}
body.ah-tools .item a:hover,body.ah-tools .item button:hover{border-color:#111;background:#fff}
body.ah-tools .pill{font-size:9px}
body.ah-tools .pager button{background:#111;border-radius:3px;min-height:36px!important;height:36px;font-size:11px;font-weight:500;border:0}
body.ah-tools .pager{font-size:12px;padding:20px}
body.ah-tools .notice{font-size:11px;color:#555;margin:20px 0 10px}
body.ah-tools .error{color:#b34700}
@media(max-width:760px){body.ah-tools main .hero{grid-template-columns:1fr}body.ah-tools main .heroaside{border-left:0;border-top:1px solid #dedede;padding:12px 0 0}}

/* ---------- 11. TRIS — Research Intelligence ---------- */
body.ah-tris{font-size:12px}
body.ah-tris main{max-width:none;width:min(91.2%,1320px);margin:0 auto;padding:0}
body.ah-tris .hero{padding:16px 0 20px;border-bottom:0}
body.ah-tris .kicker{color:#111;font-size:10px;letter-spacing:.13em;font-weight:500}
body.ah-tris .hero h1{font-size:clamp(30px,3.6vw,54px);line-height:1.085;letter-spacing:-.055em;font-weight:500;margin:18px 0 14px}
body.ah-tris .hero h1 em{color:#111}
body.ah-tris .hero p{font-size:12px;line-height:1.52;color:#111;max-width:560px}
body.ah-tris .searcharea{padding:16px 0;border-top:1px solid #dedede}
body.ah-tris .searchbar input{border:1px solid #dedede;border-radius:3px;padding:10px 12px;font-size:13px}
body.ah-tris .primary{background:#111;border:1px solid #111;border-radius:3px;padding:10px 20px;font-size:12px;font-weight:500}
body.ah-tris .primary:hover{background:#333}
body.ah-tris .filters label{font-size:9px;letter-spacing:.06em}
body.ah-tris .filters select,body.ah-tris .filters input[type=number]{border:1px solid #dedede;border-radius:3px;font-size:11px;padding:6px}
body.ah-tris .status{font-size:11px}
body.ah-tris .tabs{border-top:1px solid #dedede;border-bottom:1px solid #dedede}
body.ah-tris .tabs button{font-size:10px;font-weight:500;letter-spacing:.04em;padding:10px 14px;background:#fff;color:#111;border-bottom:1px solid transparent}
body.ah-tris .tabs button[aria-current=page]{background:#fff;color:#111;border-bottom-color:#111}
body.ah-tris .workspace{padding:20px 0 40px}
body.ah-tris h2{font-size:32px;letter-spacing:-.055em;font-weight:500}
body.ah-tris h3{letter-spacing:-.035em}
body.ah-tris .card h3{font-size:15px}
body.ah-tris .card,body.ah-tris .panel,body.ah-tris .record,body.ah-tris .review-pair article{border:1px solid #dedede;border-radius:5px;padding:14px}
body.ah-tris .card:hover{border-color:#111}
body.ah-tris .card p,body.ah-tris .record p{font-size:11px}
body.ah-tris .metadata{font-size:9px;letter-spacing:.06em}
body.ah-tris .pill,body.ah-tris .stats span{background:#f2f2f2;font-size:9px}
body.ah-tris .tiny{border:1px solid #dedede;border-radius:3px;font-size:10px;padding:6px 9px}
body.ah-tris .tiny:hover{border-color:#111;color:#111}
body.ah-tris .badge{font-size:8px}
body.ah-tris .notice{background:none;border-left:1px solid #FF8A00;padding:4px 0 4px 14px;font-size:12px}
body.ah-tris .note{border-left:1px solid #111}
body.ah-tris .field{font-size:10px}
body.ah-tris .field input,body.ah-tris .field textarea,body.ah-tris .field select,body.ah-tris .graph-controls input,body.ah-tris .graph-controls select{border:1px solid #dedede;border-radius:3px;font-size:12px}
body.ah-tris .graph-controls,body.ah-tris .review-signals{background:#f5f5f5}
body.ah-tris .graph-inspector{border:1px solid #dedede;border-radius:5px}
body.ah-tris .graph-linked:hover{border-color:#111}
body.ah-tris .graph-index-item.active{border:1px solid #111}
body.ah-tris .source{border-top:1px solid #111;background:#f5f5f5;border-radius:0 0 5px 5px}
body.ah-tris .source:nth-child(2){border-color:#C5F500}
body.ah-tris .source:nth-child(3){border-color:#FF8A00}
body.ah-tris .auditflag.attention{background:#f2f2f2}
body.ah-tris dialog#detail{border:1px solid #111;border-radius:0}
body.ah-tools main .hero h1::before{display:none!important}
.ah-footer strong{font-size:inherit!important;letter-spacing:inherit}
.ah-footer .ah-footer-links strong{font-size:9px!important}
.ah-footer .ah-footer-about strong{font-size:11px!important}
/* research section: sub-menu current page + tool cards on /research/ */
.ah-subnav a[aria-current="page"]{border-bottom-color:#111}
body.ah-research .rs-tools{border-top:1px solid #dedede;padding:20px 0 6px;margin-top:20px}
body.ah-research .rs-tools-head{display:grid;grid-template-columns:38% 1fr;gap:20px;align-items:start;margin-bottom:17px}
body.ah-research .rs-tools-head h2,body.ah-research .rs-sources-title{font-size:32px;line-height:1.1;letter-spacing:-.055em;font-weight:500;margin:0}
body.ah-research .rs-tools-head p{font-size:11px;max-width:470px;margin:0}
body.ah-research .rs-tools-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
body.ah-research .rs-tool{border:1px solid #dedede;border-radius:5px;padding:13px;color:#111;text-decoration:none;display:block;min-height:96px}
body.ah-research .rs-tool:hover{border-color:#111}
body.ah-research .rs-tool span{font-size:9px;font-weight:500;letter-spacing:.06em;color:#555}
body.ah-research .rs-tool h3{font-size:12px;letter-spacing:-.035em;margin:6px 0 0}
body.ah-research .rs-tool p{font-size:10px;line-height:1.4;margin:5px 0 0}
body.ah-research .rs-sources-title{border-top:1px solid #dedede;padding-top:20px;margin-top:24px}
@media(max-width:760px){body.ah-research .rs-tools-head{grid-template-columns:1fr}body.ah-research .rs-tools-grid{grid-template-columns:repeat(2,1fr)}}

/* ---------- 12. History of Archaeology · Milestones ---------- */
body.ah-milestones{font-size:12px}
body.ah-milestones .shell{max-width:none;width:min(91.2%,1320px);margin:0 auto;padding:0}
body.ah-milestones .mono,body.ah-milestones .tag,body.ah-milestones .controls label,body.ah-milestones .eyebrow,body.ah-milestones .counter,body.ah-milestones .matched,body.ah-milestones .uncertain,body.ah-milestones .src,body.ah-milestones .kv span{font-family:Inter,'Noto Sans Thai',Arial,sans-serif!important}
body.ah-milestones .hero{grid-template-columns:minmax(0,1.7fr) minmax(220px,.65fr);gap:24px;padding:16px 0 24px}
body.ah-milestones .eyebrow{color:#111;font-size:10px;letter-spacing:.13em;font-weight:500}
body.ah-milestones h1{font-family:Inter,'Noto Sans Thai',Arial,sans-serif;font-size:clamp(30px,3.6vw,54px);line-height:1.085;letter-spacing:-.055em;font-weight:500;margin:18px 0 14px}
body.ah-milestones h1 em{color:#111}
body.ah-milestones .lead{font-size:12px;line-height:1.7;max-width:560px}
body.ah-milestones .meta{border:1px solid #dedede;border-radius:5px;padding:14px;gap:12px;align-self:start}
body.ah-milestones .meta strong{font:850 45px/1 Inter,Arial,sans-serif;letter-spacing:-.055em}
body.ah-milestones .meta .mono,body.ah-milestones .meta p{font-size:9px;letter-spacing:.06em;color:#555}
body.ah-milestones .warning{border-left:1px solid #FF8A00;padding:4px 0 4px 14px;font-size:11px;margin:0 0 20px}
body.ah-milestones .controls{border-top:1px solid #dedede;padding:16px 0;gap:10px}
body.ah-milestones .controls label{font-size:9px;letter-spacing:.06em;font-weight:500}
body.ah-milestones .controls input,body.ah-milestones .controls select{height:40px;border:1px solid #dedede;border-radius:3px;font-size:12px;padding:8px 10px}
body.ah-milestones .controls input:focus,body.ah-milestones .controls select:focus{outline:2px solid #111}
body.ah-milestones .go{height:40px;border:1px solid #111;border-radius:3px;background:#111;color:#fff;font-size:12px;font-weight:500}
body.ah-milestones .go:hover{background:#333}
body.ah-milestones .stats{border-top:1px solid #dedede;border-bottom:1px solid #111;padding:10px 0;font-size:11px}
body.ah-milestones .counter{font-size:10px;letter-spacing:.06em;font-weight:500}
body.ah-milestones .mode{border:1px solid #dedede;font-size:10px;font-weight:500;padding:6px 12px}
body.ah-milestones .mode:first-child{border-radius:3px 0 0 3px}
body.ah-milestones .mode:last-child{border-radius:0 3px 3px 0;border-left:0}
body.ah-milestones .mode[aria-pressed=true]{background:#111;border-color:#111;color:#fff}
body.ah-milestones .yeargroup{border-bottom:1px solid #dedede}
body.ah-milestones .year{font-size:20px;letter-spacing:-.055em;font-weight:500;padding:16px 14px 12px 0}
body.ah-milestones .item{border-bottom:1px solid #dedede;border-left:1px solid #dedede;padding:14px;min-height:96px;gap:8px}
body.ah-milestones .item:hover,body.ah-milestones .item:focus-visible{background:#f5f5f5}
body.ah-milestones .item.selected{background:#C5F500}
body.ah-milestones .item h3{font-size:14px;line-height:1.3;letter-spacing:-.025em;font-weight:500}
body.ah-milestones .tag{font-size:9px;letter-spacing:.06em;color:#555}
body.ah-milestones .matched{border:1px solid #dedede;font-size:8px;font-weight:500;letter-spacing:.04em;padding:2px 5px}
body.ah-milestones .uncertain{font-size:8px}
body.ah-milestones .detail{box-shadow:none;border-left:1px solid #111;padding:24px}
body.ah-milestones .close{border-radius:3px;font-size:11px;font-weight:500;padding:7px 12px}
body.ah-milestones .detail h2{font-size:26px;line-height:1.12;letter-spacing:-.045em;font-weight:500}
body.ah-milestones .kv{border-top:1px solid #dedede;font-size:12px}
body.ah-milestones .kv span{font-size:9px;letter-spacing:.06em;font-weight:500}
body.ah-milestones .detail .notice{border-left:1px solid #FF8A00;background:#f5f5f5;font-size:11px}
body.ah-milestones .detail a{color:#111;text-decoration:underline}
body.ah-milestones .navlinks{padding:20px 0}
body.ah-milestones .navlinks a{border:1px solid #dedede;border-radius:3px;font-size:11px;font-weight:500;padding:9px 14px}
body.ah-milestones .navlinks a:hover{background:#fff;color:#111;border-color:#111}
@media(max-width:900px){body.ah-milestones .hero{grid-template-columns:1fr}}

/* ---------- typography system v2 (20261127): Inter + Noto Sans JP, neo-grotesque, light weights ---------- */
:root{--font:"Inter","Noto Sans JP","IBM Plex Sans Thai","Noto Sans Thai",Arial,Helvetica,sans-serif;--display:"Inter","Noto Sans JP","IBM Plex Sans Thai","Noto Sans Thai",Arial,sans-serif;--body:"Inter","Noto Sans JP","IBM Plex Sans Thai","Noto Sans Thai",Arial,sans-serif;--mono:"Inter",Arial,sans-serif}
html,body,button,input,select,textarea{font-family:"Inter","Noto Sans JP","IBM Plex Sans Thai","Noto Sans Thai",Arial,Helvetica,sans-serif;font-feature-settings:"ss01" 0,"cv11" 1}
body{font-weight:400;line-height:1.45;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,h5,h6{font-weight:500;letter-spacing:-.02em}
b,strong,dt,th,summary,legend{font-weight:500}
p,li,dd{line-height:1.45}
