.apw-timeline{display:block;max-width:100%;}
.apw-timeline{
    --surface: #ede2c8;
    --surface-card: #fbf5e6;
    --ink: #241f14;
    --ink-soft: #4d4630;
    --ink-faint: #7c7255;
    --rule: #cdbb8e;
    --accent: #7a2e2e;
    --gold: #9c7a2e;
    --gold-deep: #7c5e1e;
    --gold-soft: #cbab5c;
    --wildlife-bg: #e9ecdd;
    --wildlife-ink: #33502f;
    --shadow: 0 2px 10px rgba(43,36,25,0.12), 0 1px 2px rgba(43,36,25,0.08);
    --shadow-lg: 0 25px 70px rgba(20,16,10,0.45);
    --radius: 3px;
    --c-prehistoric: #9c5a1f;
    --c-roman: #a33d2e;
    --c-medieval: #3f6b45;
    --c-tudorstuart: #7a2e46;
    --c-georgian: #3d5a73;
    --c-modern: #2e6165;
    color-scheme: light;
  }
.apw-timeline *{box-sizing:border-box;}
.apw-timeline{margin:0;padding:0;}
.apw-timeline{
    background-color: var(--surface);
    background-image:
      radial-gradient(ellipse at top left, rgba(255,255,255,0.35), transparent 55%),
      radial-gradient(ellipse at bottom right, rgba(0,0,0,0.05), transparent 55%),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/></svg>");
    color: var(--ink);
    font-family: 'Cormorant Garamond', 'Iowan Old Style','Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
    line-height: 1.5;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    position: relative;
  }
.apw-timeline .ghost-motif{
    position:absolute; pointer-events:none; z-index:0;
    stroke: var(--ink); fill:none; stroke-width: 1;
    opacity: 0.055;
    mix-blend-mode: multiply;
  }
.apw-timeline .wrap{ max-width: 980px; margin: 0 auto; padding: 0 20px 80px; position:relative; z-index:1; }
.apw-timeline .wrap::before{
    content:"";
    position:absolute; top:0; left:0; right:0; height:100%;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22680%22%20height%3D%221180%22%20viewBox%3D%220%200%20680%201180%22%3E%3Cg%20transform%3D%22translate%2855%2C70%29%20scale%282.3%29%20rotate%28-8%29%22%20stroke%3D%22%23241f14%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%229%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M9%2012%20C7%2015%205%2016%204%2020%22/%3E%3Cpath%20d%3D%22M15%2012%20C17%2015%2019%2016%2020%2020%22/%3E%3Cpath%20d%3D%22M8%208%20C6%207%205%207.5%204.5%208.5%22/%3E%3Cpath%20d%3D%22M16%208%20C18%207%2019%207.5%2019.5%208.5%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%28555%2C55%29%20scale%282.6%29%20rotate%2812%29%22%20stroke%3D%22%23241f14%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2022%20V12%22/%3E%3Cpath%20d%3D%22M12%2013%20C7%2013%205%209%205%205%20C9%205%2012%208%2012%2012%20C12%208%2015%205%2019%205%20C19%209%2017%2013%2012%2013%20Z%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%2840%2C480%29%20scale%282.2%29%20rotate%2820%29%22%20stroke%3D%22%23241f14%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%202%20L15.5%209%20L12%2022%20L8.5%209%20Z%22/%3E%3Cline%20x1%3D%229.5%22%20y1%3D%229.3%22%20x2%3D%2214.5%22%20y2%3D%229.3%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%28585%2C470%29%20scale%282.4%29%20rotate%28-14%29%22%20stroke%3D%22%23241f14%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2022%20V10%22/%3E%3Cpath%20d%3D%22M12%2010%20C10%208%209%206%206%205%22/%3E%3Cpath%20d%3D%22M12%2010%20C14%208%2015%206%2018%205%22/%3E%3Cpath%20d%3D%22M9%207%20C8%206.3%207%206.3%206.3%205.8%22/%3E%3Cpath%20d%3D%22M15%207%20C16%206.3%2017%206.3%2017.7%205.8%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%2850%2C900%29%20scale%282.3%29%20rotate%286%29%22%20stroke%3D%22%23241f14%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%228.5%22%20cy%3D%2213%22%20r%3D%223.6%22/%3E%3Ccircle%20cx%3D%2212.5%22%20cy%3D%2210.5%22%20r%3D%223%22/%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%2213.5%22%20r%3D%223.4%22/%3E%3Ccircle%20cx%3D%2218.3%22%20cy%3D%2214%22%20r%3D%222.3%22/%3E%3Cline%20x1%3D%227.5%22%20y1%3D%2217%22%20x2%3D%227.2%22%20y2%3D%2220%22/%3E%3Cline%20x1%3D%2215.5%22%20y1%3D%2217.5%22%20x2%3D%2215.8%22%20y2%3D%2220.5%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%28590%2C880%29%20scale%282.1%29%20rotate%28-18%29%22%20stroke%3D%22%23241f14%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%202%20L16%2012%20L13%2012%20L13%2022%20L11%2022%20L11%2012%20L8%2012%20Z%22/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-position: top center;
    background-size: 100% 1180px;
    opacity: 0.16;
    pointer-events: none;
    z-index: 0;
  }
.apw-timeline .ornament{ display:flex; align-items:center; justify-content:center; gap:12px; }
.apw-timeline .ornament svg{ width:26px; height:14px; stroke:var(--gold-deep); fill:none; stroke-width:1.2; }
.apw-timeline .ornament .rule{ height:1px; width:46px; background: linear-gradient(90deg, transparent, var(--gold-deep)); }
.apw-timeline .ornament .rule.right{ background: linear-gradient(90deg, var(--gold-deep), transparent); }
.apw-timeline header.hero{
    position:relative; z-index:1;
    padding: 64px 20px 44px;
    text-align:center;
    border-bottom: 3px double var(--gold-deep);
    margin-bottom: 8px;
    background: linear-gradient(180deg, rgba(156,122,46,0.07), transparent 75%);
  }
.apw-timeline header.hero .crest{
    width:46px; height:46px; margin: 0 auto 14px;
    stroke: var(--gold-deep); fill:none; stroke-width:1.1;
    opacity:0.85;
  }
.apw-timeline header.hero .kicker{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 11.5px;
    color: var(--gold-deep);
    margin-bottom: 14px;
    font-weight:600;
  }
.apw-timeline header.hero h1{
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(38px, 6vw, 62px);
    margin: 0 0 6px;
    font-weight: 700;
    letter-spacing: 0.005em;
    color: var(--ink);
  }
.apw-timeline header.hero h1 em{ font-style:italic; font-weight:500; color: var(--gold-deep); }
.apw-timeline header.hero p.sub{
    max-width: 580px;
    margin: 14px auto 0;
    color: var(--ink-soft);
    font-size: 17px;
    font-style: italic;
  }
.apw-timeline header.hero .span-line{
    margin-top: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }
.apw-timeline .controls{
    position: relative;
    background: rgba(237,226,200,0.95);
    padding: 16px 0 14px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 20px;
  }
.apw-timeline .controls-inner{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:center; }
.apw-timeline .search-box{
    flex: 0 1 340px;
    position: relative;
  }
.apw-timeline .search-box input{
    width:100%;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 16px;
    padding: 9px 16px 9px 36px;
    border-radius: 999px;
    border: 1px solid var(--gold-soft);
    background: var(--surface-card);
    color: var(--ink);
  }
.apw-timeline .search-box input:focus{ outline: 1px solid var(--gold-deep); outline-offset: 1px; }
.apw-timeline .search-box svg{
    position:absolute; left:13px; top:50%; transform:translateY(-50%);
    width:14px; height:14px; stroke: var(--gold-deep); fill:none; stroke-width:2;
  }
.apw-timeline .result-count{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11.5px; letter-spacing:0.04em; color: var(--ink-faint); width:100%; margin-top: 2px; text-align:center;
  }
.apw-timeline .timeline{
    position: relative;
    margin-top: 14px;
  }
.apw-timeline .timeline::before{
    content:"";
    position:absolute; left:50%; top: 4px; bottom: 4px; width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(var(--gold-soft), var(--gold-deep) 15%, var(--gold-deep) 85%, var(--gold-soft));
    
    z-index: 1;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
  }
.apw-timeline .era-heading{
    position: relative;
    clear: both;
    margin: 40px auto 30px;
    text-align: center;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(253,247,231,0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 14px 30px;
    border-radius: 6px;
    box-shadow: 0 10px 26px rgba(20,16,10,0.16);
  }
.apw-timeline .era-heading .flourish{
    display:flex; align-items:center; justify-content:center; gap:14px; margin-bottom:8px;
  }
.apw-timeline .era-heading .flourish .line{ height:1px; width:64px; background: linear-gradient(90deg, transparent, var(--era-color)); }
.apw-timeline .era-heading .flourish .line.r{ background: linear-gradient(90deg, var(--era-color), transparent); }
.apw-timeline .era-heading .flourish svg{ width:16px; height:16px; stroke: var(--era-color); fill:none; stroke-width:1.3; }
.apw-timeline .era-heading .label{
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 27px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.01em;
    color: var(--era-color);
  }
.apw-timeline .entry{
    position: relative;
    margin-bottom: 34px;
    width: 50%;
    clear: none;
  }
.apw-timeline .entry.side-left{ margin-left: 0; padding-right: 56px; text-align:right; }
.apw-timeline .entry.side-right{ margin-left: 50%; padding-left: 56px; text-align:left; }
.apw-timeline .entry .connector{
    position:absolute; top:30px; width:52px; height:1px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  }
.apw-timeline .entry.side-left .connector{ right:0; }
.apw-timeline .entry.side-right .connector{ left:0; background: linear-gradient(90deg, var(--gold-soft), var(--gold-deep)); }
.apw-timeline .entry .node{
    position:absolute;
    top: 20px;
    width: 20px; height:20px;
    border-radius:50%;
    background: var(--surface-card);
    border: 2px solid var(--era-color);
    box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--gold-soft);
    z-index: 2;
  }
.apw-timeline .entry.side-left .node{ right:-11px; }
.apw-timeline .entry.side-right .node{ left:-11px; }
.apw-timeline .entry .year-tick{
    position:absolute;
    top: 44px;
    width: 76px;
    text-align:center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--ink-faint);
    background: var(--surface);
    padding: 1px 0;
    pointer-events: none;
    z-index: 3;
  }
.apw-timeline .entry.side-left .year-tick{ right:-39px; }
.apw-timeline .entry.side-right .year-tick{ left:-39px; }
.apw-timeline .card{
    background: var(--surface-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
    width: 100%;
    text-align: left;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
.apw-timeline .card::before{
    content:"";
    position:absolute; inset:5px;
    border: 1px solid var(--era-color);
    opacity: 0.35;
    pointer-events: none;
    border-radius: 1px;
  }
.apw-timeline .card::after{
    content:"";
    position:absolute; top:-1px; left:-1px; right:-1px; height:3px;
    background: var(--era-color);
  }
.apw-timeline .card:hover, .apw-timeline .card:focus-visible{
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(43,36,25,0.18), 0 2px 5px rgba(43,36,25,0.1);
  }
.apw-timeline .card:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
.apw-timeline .card-inner{ display:flex; gap:14px; align-items:flex-start; }
.apw-timeline .entry.side-left .card-inner{ flex-direction: row-reverse; text-align:right; }
.apw-timeline .card .date{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--era-color);
    margin-bottom: 5px;
  }
.apw-timeline .card h3{ margin: 0 0 7px; font-family:'Playfair Display', Georgia, serif; font-size: 19px; font-weight: 700; line-height:1.25; }
.apw-timeline .card p.teaser{
    margin: 0;
    color: var(--ink-soft);
    font-size: 14.5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
.apw-timeline .card .thumb-wrap{ flex:none; position:relative; width:64px; height:64px; }
.apw-timeline .card .thumb{
    width: 64px; height: 64px;
    object-fit: cover;
    border: 1px solid var(--gold-soft);
    outline: 1px solid var(--surface-card);
    outline-offset: -4px;
    filter: sepia(0.35) saturate(1.05) contrast(1.02);
    flex: none;
    display:block;
  }
.apw-timeline .card .icon-badge{
    width: 46px; height:46px;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background: color-mix(in srgb, var(--era-color) 12%, var(--surface-card));
    border: 1px solid var(--era-color);
    color: var(--era-color);
    flex: none;
  }
.apw-timeline .card .icon-badge svg{ width:24px; height:24px; stroke: currentColor; fill:none; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.apw-timeline .card .meta-row{ display:flex; align-items:center; gap:8px; margin-top:9px; }
.apw-timeline .entry.side-left .card .meta-row{ justify-content:flex-end; }
.apw-timeline .wildlife-flag{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 10.5px;
    color: var(--wildlife-ink);
    background: var(--wildlife-bg);
    padding: 2px 8px;
    border-radius: 999px;
    display:inline-flex; align-items:center; gap:4px;
    border: 1px solid rgba(51,80,47,0.18);
  }
.apw-timeline .wildlife-flag svg{ width:11px; height:11px; }
.apw-timeline .modal-overlay{
    position: fixed; inset:0; background: rgba(20,15,8,0.55);
    display:none; align-items:flex-start; justify-content:center;
    padding: 4vh 16px; z-index: 100; overflow-y:auto;
  }
.apw-timeline .modal-overlay.open{ display:flex; }
.apw-timeline .modal{
    background: var(--surface-card);
    max-width: 700px; width:100%;
    border-radius: 2px;
    box-shadow: var(--shadow-lg);
    overflow:hidden;
    margin-bottom: 4vh;
    border: 1px solid var(--gold-soft);
    position: relative;
  }
.apw-timeline .modal::before{
    content:"";
    position:absolute; inset:7px; border:1px solid var(--era-color); opacity:0.3;
    pointer-events:none; z-index:1;
  }
.apw-timeline .modal-head{
    padding: 26px 30px 16px;
    border-bottom: 1px solid var(--rule);
    position: relative;
    border-top: 4px solid var(--era-color);
    background: linear-gradient(180deg, rgba(156,122,46,0.06), transparent);
  }
.apw-timeline .modal-head .date{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11.5px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
    color: var(--era-color);
  }
.apw-timeline .modal-head h2{ margin: 8px 40px 5px 0; font-family:'Playfair Display', Georgia, serif; font-size: 29px; font-weight:700; line-height:1.2; }
.apw-timeline .modal-head .era-label{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11.5px; letter-spacing:0.04em; color: var(--ink-faint);
  }
.apw-timeline .modal-close{
    position:absolute; top:18px; right:18px;
    width:32px; height:32px; border-radius:50%;
    border:1px solid var(--gold-soft); background: var(--surface-card);
    cursor:pointer; display:flex; align-items:center; justify-content:center;
    color: var(--ink-soft); z-index:2;
  }
.apw-timeline .modal-close:hover{ background: var(--surface); }
.apw-timeline .modal-body{ padding: 22px 30px 28px; }
.apw-timeline .modal-body .images{ float:right; width:190px; max-width:42%; display:flex; flex-direction:column; gap:10px; margin:2px 0 14px 20px; }
.apw-timeline .modal-body .images figure{ margin:0; width:100%; }
.apw-timeline .modal-body .images img{
    width:100%; display:block; border:1px solid var(--gold-soft);
    outline: 1px solid var(--surface-card); outline-offset:-5px;
    filter: sepia(0.3) saturate(1.05) contrast(1.02);
    cursor: zoom-in;
  }
.apw-timeline .modal-body .images figcaption{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size:11.5px; color: var(--ink-faint); margin-top:5px; line-height:1.4;
  }
.apw-timeline .modal-body .images .img-credit{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size:10.5px; color: var(--ink-faint); margin-top:2px; line-height:1.3;
  }
.apw-timeline .modal-body .images .img-credit a{ color: var(--ink-faint); }
.apw-timeline .source-note a{ color: var(--ink-faint); }
.apw-timeline .modal-body .icon-hero{
    width:64px; height:64px; border-radius:50%;
    background: color-mix(in srgb, var(--era-color) 12%, var(--surface-card));
    border: 1px solid var(--era-color);
    color: var(--era-color);
    display:flex; align-items:center; justify-content:center;
    margin-bottom:16px;
  }
.apw-timeline .modal-body .icon-hero svg{ width:34px; height:34px; stroke:currentColor; fill:none; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.apw-timeline .modal-body p{ font-size:17px; color: var(--ink); margin: 0 0 14px; }
.apw-timeline .wildlife-box{
    background: var(--wildlife-bg);
    color: var(--wildlife-ink);
    border-radius: 2px;
    border: 1px solid rgba(51,80,47,0.2);
    padding: 12px 14px;
    font-size: 14.5px;
    margin: 0 0 14px;
    display:flex; gap:10px;
    clear:both;
  }
.apw-timeline .wildlife-box svg{ width:18px; height:18px; flex:none; margin-top:2px; stroke:currentColor; fill:none; stroke-width:1.6; }
.apw-timeline .source-note{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size:12px; color: var(--ink-faint); border-top:1px solid var(--rule);
    padding-top:12px; margin-top:4px;
    clear:both;
  }
.apw-timeline .modal-nav{
    display:flex; justify-content:space-between; padding: 4px 30px 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }
.apw-timeline .modal-nav button{
    background:none; border:1px solid var(--gold-soft); border-radius:999px;
    padding:7px 15px; font-size:12.5px; letter-spacing:0.03em; cursor:pointer; color: var(--ink-soft);
    display:flex; align-items:center; gap:6px;
  }
.apw-timeline .modal-nav button:hover{ background: var(--surface); }
.apw-timeline .modal-nav button:disabled{ opacity:0.35; cursor:default; }
.apw-timeline .lightbox{
    position:fixed; inset:0; background:rgba(10,8,5,0.9); z-index:200;
    display:none; align-items:center; justify-content:center; padding:24px;
  }
.apw-timeline .lightbox.open{ display:flex; }
.apw-timeline .lightbox img{ max-width:100%; max-height:100%; border-radius:6px; }
.apw-timeline footer.pagefoot{
    text-align:center; margin-top: 56px; padding-top:28px; color: var(--ink-faint);
    border-top: 1px solid var(--rule);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12.5px; line-height:1.7;
  }
.apw-timeline .references{
    margin-top: 40px; padding-top: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }
.apw-timeline .references .refs-title{
    text-align:center; font-family:'Playfair Display', Georgia, serif;
    font-size: 26px; font-weight:700; color: var(--ink);
    margin: 0 0 6px;
  }
.apw-timeline .references .refs-intro{
    text-align:center; font-size:13px; color: var(--ink-faint); font-style:italic;
    max-width:560px; margin:0 auto 30px; line-height:1.6;
  }
.apw-timeline .refs-section{
    background: var(--surface-card);
    border: 1px solid var(--gold-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 26px 24px;
    margin-bottom: 20px;
  }
.apw-timeline .refs-section h3{
    font-family:'Playfair Display', Georgia, serif; font-size:17px; font-weight:700;
    color: var(--accent); margin: 0 0 4px;
    border-bottom: 1px solid var(--rule); padding-bottom:10px;
  }
.apw-timeline .refs-section .refs-note{
    font-size:12px; color: var(--ink-faint); font-style:italic; margin: 8px 0 12px;
  }
.apw-timeline .refs-section ul{ margin: 12px 0 0; padding-left: 20px; }
.apw-timeline .refs-section li{
    font-size: 13px; color: var(--ink-soft); line-height:1.6; margin-bottom:8px;
  }
.apw-timeline .refs-section li a{ color: var(--accent); text-decoration: underline; text-decoration-color: var(--gold-soft); }
.apw-timeline .refs-section li a:hover{ text-decoration-color: var(--accent); }
.apw-timeline .refs-section .refs-subhead{
    font-weight:700; color: var(--ink); font-size:13.5px; margin: 14px 0 2px;
  }
@media (max-width: 560px){.apw-timeline .refs-section{ padding: 16px 16px 18px; }}
@media (max-width: 720px){.apw-timeline .timeline{ padding-left:34px; }
.apw-timeline .timeline::before{ left:9px; top:6px; bottom:6px; transform:none; }
.apw-timeline .entry, .apw-timeline .entry.side-left, .apw-timeline .entry.side-right{
      width:auto; margin-left:0; padding:0; text-align:left;
    }
.apw-timeline .entry .connector{ display:none; }
.apw-timeline .entry.side-left .node, .apw-timeline .entry.side-right .node{ left:-34px; right:auto; top:22px; }
.apw-timeline .entry .year-tick{ display:none; }
.apw-timeline .card{ width:auto; }
.apw-timeline .card-inner, .apw-timeline .entry.side-left .card-inner{ flex-direction:row; text-align:left; }
.apw-timeline .entry.side-left .card .meta-row{ justify-content:flex-start; }
.apw-timeline .era-heading{ text-align:left; }
.apw-timeline .era-heading .flourish{ justify-content:flex-start; }
.apw-timeline .era-heading .flourish .line{ display:none; }}
@media (max-width: 560px){.apw-timeline .card{ padding: 13px 14px; }
.apw-timeline .card .thumb, .apw-timeline .card .icon-badge{ width:52px; height:52px; }
.apw-timeline .card h3{ font-size:16.5px; }
.apw-timeline header.hero{ padding: 40px 16px 28px; }
.apw-timeline .modal-head h2{ font-size:22px; }
.apw-timeline .modal-body .images{ float:none; width:100%; max-width:100%; flex-direction:row; flex-wrap:wrap; margin:0 0 16px; }
.apw-timeline .modal-body .images figure{ flex:1 1 140px; }}
.apw-timeline .visually-hidden{
    position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;
  }
.apw-timeline .era-block{
  position: relative;
}
.apw-timeline .era-scroll-content{
  position: relative;
  z-index: 2;
  margin-top: 0;
}
.apw-timeline .era-hero{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  margin-top:10px;
  margin-bottom:0;
  position:sticky;
  top:0;
  z-index:0;
  background:#17140f;
  border-top:3px double var(--gold-deep);
  border-bottom:3px double var(--gold-deep);
  box-shadow:0 10px 30px rgba(43,36,25,.16);
  overflow:hidden;
}
.apw-timeline .era-hero-button{
  display:block;
  position:relative;
  width:100%;
  padding:0;
  margin:0;
  border:0;
  background:#17140f;
  color:inherit;
  cursor:pointer;
  text-align:center;
}
.apw-timeline .era-hero-button > img{
  display:block;
  position:relative;
  width:100%;
  height:auto;
  object-fit:contain;
}
.apw-timeline .era-hero-shade{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(8,7,5,.03) 0%, rgba(8,7,5,.06) 42%, rgba(8,7,5,.62) 100%),
    linear-gradient(180deg, rgba(156,122,46,.08), transparent 42%);
}
.apw-timeline .era-hero-copy{
  position:absolute;
  left:50%;
  bottom:26px;
  transform:translateX(-50%);
  z-index:3;
  width:min(900px, calc(100% - 42px));
  color:#fffaf1;
  text-shadow:0 2px 18px rgba(0,0,0,.72);
}
.apw-timeline .era-hero-copy .kicker{
  display:block;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  text-transform:uppercase;
  letter-spacing:.28em;
  font-size:11.5px;
  color:#f1d995;
  margin-bottom:14px;
  font-weight:600;
}
.apw-timeline .era-hero-copy h2{
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(30px,5vw,62px);
  line-height:1.16;
  margin:0 0 8px;
  font-weight:700;
  letter-spacing:.005em;
  color:#fffaf1;
}
.apw-timeline .era-hero-copy .sub{
  display:block;
  max-width:680px;
  margin:10px auto 0;
  color:rgba(255,250,241,.96);
  font-size:17px;
  font-style:italic;
  line-height:1.5;
}
.apw-timeline .era-hero-note{
  padding:10px 20px 12px;
  text-align:center;
  color:var(--ink-faint);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size:11.5px;
  line-height:1.5;
  background:linear-gradient(180deg,rgba(156,122,46,.07),transparent 75%);
}
.apw-timeline .era-species-layer{
  position:absolute;
  inset:0;
  z-index:4;
  pointer-events:none;
}
.apw-timeline .era-species{
  position:absolute;
  left:calc(var(--x) * 1%);
  top:calc(var(--y) * 1%);
  transform:translate(-50%,-50%) scale(.84);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease;
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
}
.apw-timeline .era-hero.revealed .era-species{
  opacity:1;
  pointer-events:auto;
  transform:translate(-50%,-50%) scale(1);
}
.apw-timeline .era-species-dot{
  width:28px;
  height:28px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  border:2px solid rgba(255,255,255,.96);
  background:#526d52;
  box-shadow:0 3px 12px rgba(0,0,0,.38);
  font-size:12px;
}
.apw-timeline .era-species.bird .era-species-dot{background:#4d6f8c;}
.apw-timeline .era-species.mammal .era-species-dot{background:#775d3f;}
.apw-timeline .era-species.human .era-species-dot{background:#7b5048;}
.apw-timeline .era-species.habitat .era-species-dot{background:#506c67;}
.apw-timeline .era-species-tip{
  position:absolute;
  left:50%;
  bottom:36px;
  transform:translateX(-50%) translateY(7px);
  width:190px;
  max-width:48vw;
  padding:9px 10px;
  border-radius:10px;
  background:rgba(255,250,242,.98);
  color:#2d281f;
  text-align:left;
  text-shadow:none;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size:11px;
  line-height:1.35;
  box-shadow:0 8px 22px rgba(0,0,0,.25);
  opacity:0;
  transition:.16s ease;
  pointer-events:none;
}
.apw-timeline .era-species-tip strong{display:block;color:#201c15;margin-bottom:3px;}
.apw-timeline .era-species:hover .era-species-tip, .apw-timeline .era-species:focus .era-species-tip{opacity:1;transform:translateX(-50%) translateY(0);}
@media(max-width:720px){.apw-timeline .era-hero-copy{bottom:14px;width:calc(100% - 28px);}
.apw-timeline .era-hero-copy .kicker{font-size:9px;letter-spacing:.2em;margin-bottom:8px;}
.apw-timeline .era-hero-copy h2{font-size:29px;}
.apw-timeline .era-hero-copy .sub{font-size:13px;margin-top:8px;}
.apw-timeline .era-species-dot{width:24px;height:24px;}}
.apw-timeline .era-hero{width:100%;margin-left:auto;margin-right:auto;}
