/* Period timeline used on architectural style pages */
.as-timeline { margin: 0 0 28px; }
.as-tl-scroll { overflow-x: auto; padding-bottom: 4px; }
.as-tl-inner { position: relative; min-width: 560px; padding-top: 44px; }
.as-tl-label { position: absolute; top: 0; height: 36px; display: flex; align-items: flex-end; justify-content: center; text-align: center; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: .8rem; font-weight: 800; color: var(--navy); line-height: 1.15; white-space: nowrap; box-sizing: border-box; padding: 0 4px 4px; }
.as-tl-label::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 2px; height: 8px; background: var(--gold); }
.as-tl-bar { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); height: 54px; border: 1.5px solid var(--mid); border-radius: 8px; overflow: hidden; background: #fff; }
.as-tl-bar > span { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 3px; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: .72rem; font-weight: 700; color: #3a4658; line-height: 1.15; border-left: 1px solid var(--mid); }
.as-tl-bar > span:first-child { border-left: 0; }
.as-tl-bar > span:nth-child(even) { background: #f3f5f9; }
.as-tl-band { position: absolute; top: 0; bottom: 0; background: rgba(245,166,35,.55); border-left: 2px solid var(--gold); border-right: 2px solid var(--gold); pointer-events: none; }
.as-tl-years { position: relative; height: 22px; margin-top: 4px; }
.as-tl-years b { position: absolute; top: 0; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: .7rem; font-weight: 700; color: var(--muted); transform: translateX(-50%); white-space: nowrap; }
.as-tl-years b:first-child { transform: none; }
.as-tl-years b:last-child { transform: translateX(-100%); }
.as-tl-note { font-size: .78rem; color: var(--muted); margin: 6px 2px 0; font-family: 'Roboto Condensed', Arial, sans-serif; }
@media (max-width: 600px) { .as-tl-bar > span { font-size: .66rem; } }

/* Timeline used as a filter on the hub */
.as-tl-nav { padding-top: 0; }
.as-tl-bar > button { appearance: none; border: 0; border-left: 1px solid var(--mid); border-radius: 0; background: #fff; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 3px; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: .78rem; font-weight: 800; color: var(--navy); line-height: 1.15; cursor: pointer; transition: background .15s; }
.as-tl-bar > button:first-child { border-left: 0; }
.as-tl-bar > button:nth-child(even) { background: #f3f5f9; }
.as-tl-bar > button:hover { background: #fdebc8; }
.as-tl-bar > button.is-active { background: var(--gold); color: var(--navy); }
.as-tl-bar > button:focus-visible, .as-pill:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.as-filter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--mid); }
.as-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.as-pill { appearance: none; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--mid); border-radius: 22px; background: #fff; color: var(--navy); font-family: 'Roboto Condensed', Arial, sans-serif; font-size: .86rem; font-weight: 800; line-height: 1; padding: 8px 8px 8px 16px; cursor: pointer; transition: background .15s, border-color .15s; }
.as-pill span { display: inline-block; min-width: 24px; padding: 3px 7px; border-radius: 12px; background: #eef1f6; color: #3a4658; font-size: .76rem; text-align: center; }
.as-pill:hover { background: #fdebc8; border-color: var(--gold); }
.as-pill.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.as-pill.is-active span { background: var(--gold); color: var(--navy); }
.as-status { display: flex; align-items: center; gap: 10px; margin: 0; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: .86rem; font-weight: 700; color: var(--muted); }
.as-clear { appearance: none; border: 0; background: none; padding: 0; font-family: inherit; font-size: .86rem; font-weight: 800; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.as-clear:hover { color: #b9770e; }
.as-clear:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 600px) { .as-status { width: 100%; } }
/* Tables wrap on phones instead of scrolling sideways */
@media (max-width: 600px) {
  .rg-table { min-width: 0; font-size: .84rem; }
  .rg-table th, .rg-table td { padding: 9px 10px; }
  .rg-table td:first-child { white-space: normal; width: 30%; }
}
