.portal,
.article-index-page,
.changes-page,
.help-page {
  padding-block: 32px 60px;
}
.portal-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  padding-bottom: 25px;
}
.portal-heading h1,
.article-index-page h1,
.changes-page h1,
.help-page h1 {
  font: 500 clamp(40px, 4.6vw, 64px) / 1.08 var(--editorial);
  letter-spacing: -0.04em;
}
.portal-heading > div > p {
  font-size: 21px;
  margin-top: 10px;
}
.portal-edition {
  font: 500 12px/1.8 var(--mono);
  text-align: right;
  display: flex;
  flex-direction: column;
  color: var(--muted);
}
.portal-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  margin-bottom: 34px;
}
.portal-tabs a {
  padding: 12px 0;
  min-height: 46px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  font-weight: 650;
}
.portal-tabs [aria-current] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(250px, 1fr);
  gap: 55px;
}
.portal a,
.article-index-page a,
.changes-page a,
.help-page a {
  color: var(--blue);
}
.portal h2 {
  font: 550 32px/1.15 var(--editorial);
  letter-spacing: -0.025em;
}
.portal-town {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.85fr);
  gap: 25px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.portal-town h2 {
  font-size: 38px;
  margin-bottom: 18px;
}
.portal-town h2 a {
  text-decoration: none;
  color: var(--ink);
}
.portal-town-copy > p {
  font-size: 18px;
  line-height: 1.7;
}
.portal-town .town-reference {
  font-size: 14px;
  margin-top: 18px;
}
.portal-town figure img {
  aspect-ratio: 1.35;
  object-fit: cover;
  width: 100%;
  height: auto;
}
.portal figcaption {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 10px;
}
.portal-subjects {
  margin-top: 32px;
}
.portal-subjects h2 {
  margin-bottom: 18px;
}
.portal-subjects dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin: 0;
}
.portal-subjects dl > div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.portal-subjects dt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 20px;
  font-weight: 650;
}
.portal-subjects dt span {
  font: 500 12px var(--mono);
  color: var(--muted);
}
.portal-subjects dd {
  margin: 7px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.portal-sidebar h2 {
  font: 700 20px/1.3 var(--sans);
  letter-spacing: -0.02em;
}
.portal-index {
  border-top: 4px solid var(--blue);
  padding-top: 18px;
}
.portal-index ul {
  padding: 0;
  margin: 12px 0;
  list-style: none;
}
.portal-index li {
  font-size: 16px;
  line-height: 1.45;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.portal-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
}
.portal-records {
  margin-top: 30px;
}
.portal-records dl {
  margin-top: 15px;
}
.portal-records dl > div {
  margin-bottom: 20px;
}
.portal-records dt {
  font-size: 17px;
  font-weight: 650;
}
.portal-records dd {
  font-size: 15px;
  color: var(--muted);
  margin: 5px 0 0;
  line-height: 1.5;
}
.portal-contribute {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 25px;
}
.portal-contribute p {
  font-size: 16px;
  line-height: 1.6;
  margin: 12px 0;
}
.portal-contribute > a {
  display: block;
  min-height: 38px;
  font-size: 15px;
}
.portal-feature {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 30px;
  background: #f5f7fb;
  border-top: 3px solid var(--ink);
  padding: 28px;
  margin-top: 36px;
}
.feature-context {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.portal-feature h2 {
  margin-bottom: 15px;
}
.portal-feature h2 a {
  color: var(--ink);
  text-decoration: none;
}
.portal-feature p:not(.feature-context) {
  font-size: 17px;
  line-height: 1.65;
}
.portal-feature figure img {
  max-height: 240px;
  object-fit: contain;
  width: 100%;
}
.requested-articles {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 55px;
  border-top: 2px solid var(--ink);
  margin-top: 50px;
  padding-top: 28px;
}
.requested-articles h2 {
  font-size: 28px;
}
.requested-articles p {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 12px;
  color: var(--muted);
}
.requested-articles ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 25px;
  align-content: start;
}
.requested-articles li {
  border-bottom: 1px solid var(--line);
}
.requested-articles a {
  display: block;
  padding: 14px 0;
  font-size: 17px;
}
.index-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}
.index-title > a {
  font-size: 15px;
}
.article-index-page form {
  max-width: 850px;
  margin-bottom: 35px;
}
.article-index-page form > label {
  font-size: 15px;
  font-weight: 650;
  display: block;
  margin-bottom: 8px;
}
.article-index-search {
  display: flex;
  border: 1px solid var(--ink);
  min-height: 52px;
}
.article-index-search input {
  border: 0;
  background: white;
  min-width: 0;
  flex: 1;
  padding: 12px 15px;
  font-size: 19px;
}
.article-index-search button {
  background: var(--blue);
  color: white;
  border: 0;
  padding: 10px 22px;
  font-size: 16px;
  font-weight: 650;
}
.index-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 55px;
}
.index-layout aside h2 {
  font: 700 18px/1.4 var(--sans);
  margin-bottom: 13px;
}
.index-layout aside button {
  display: block;
  border: 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  text-align: left;
  background: white;
  padding: 10px 13px;
  font-size: 16px;
}
.index-layout aside button[aria-pressed="true"] {
  background: var(--wash);
  border-left: 3px solid var(--blue);
  color: var(--blue);
  font-weight: 650;
}
.saved-articles {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-size: 16px;
  margin-top: 18px;
  cursor: pointer;
}
.saved-articles input {
  width: 18px;
  height: 18px;
}
.index-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.index-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  border-bottom: 2px solid var(--ink);
  font-size: 15px;
  font-weight: 650;
}
.index-results-bar button {
  background: none;
  border: 0;
  text-decoration: underline;
  font-size: 14px;
}
#alphabet {
  display: flex;
  gap: 8px;
  margin: 18px 0 8px;
}
#alphabet a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  border: 1px solid var(--line);
  font-weight: 600;
}
.alphabet-section {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 25px;
  scroll-margin-top: 20px;
}
.alphabet-section > h2 {
  font: 500 38px var(--editorial);
  padding-top: 20px;
}
.alphabet-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.alphabet-section li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.alphabet-section h3 {
  font: 650 23px/1.3 var(--sans);
  letter-spacing: -0.02em;
}
.alphabet-section p {
  margin: 7px 0;
  font-size: 17px;
  line-height: 1.6;
}
.index-category {
  font-size: 13px;
  color: var(--muted);
}
.index-empty {
  padding: 30px 0;
}
.index-empty h2 {
  font: 550 32px var(--editorial);
  margin-bottom: 12px;
}
.index-empty p {
  font-size: 17px;
}
.changes-intro {
  font-size: 19px;
  line-height: 1.6;
  max-width: 740px;
  margin: 20px 0 30px;
}
.changes-controls {
  display: flex;
  align-items: end;
  gap: 20px;
  max-width: 780px;
}
.changes-controls label {
  font-size: 15px;
  font-weight: 650;
  flex: 1;
}
.changes-controls input {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ink);
  padding: 10px 14px;
  margin-top: 7px;
  background: white;
  font-size: 18px;
  font-weight: 400;
}
.changes-controls button {
  background: white;
  border: 1px solid var(--ink);
  min-height: 48px;
  padding: 8px 22px;
  font-size: 15px;
}
#change-count {
  font-size: 15px;
  margin: 28px 0 15px;
}
.changes-empty {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.changes-empty h2 {
  font: 500 32px var(--editorial);
  margin-bottom: 15px;
}
.changes-empty p {
  max-width: 700px;
  margin-bottom: 20px;
}
.change-rows {
  list-style: none;
  padding: 0;
}
.change-rows li {
  display: grid;
  grid-template-columns: 190px 1fr 100px;
  gap: 30px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.change-rows time {
  font-size: 14px;
  color: var(--muted);
}
.change-rows div > a {
  font-size: 20px;
  font-weight: 650;
}
.change-rows p {
  font-size: 16px;
  margin-top: 7px;
}
.change-rows li > a {
  font-size: 14px;
}
.help-lead {
  font-size: 22px;
  line-height: 1.6;
  max-width: 760px;
  margin: 20px 0 35px;
}
.help-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 300px);
  gap: 75px;
}
.help-layout article section {
  margin-bottom: 30px;
}
.help-layout h2 {
  font: 550 32px/1.15 var(--editorial);
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.help-layout p {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 18px;
}
.help-layout aside {
  background: #f5f7fb;
  border-top: 3px solid var(--blue);
  padding: 24px;
  align-self: start;
}
.help-layout aside h2 {
  font: 700 20px/1.3 var(--sans);
  border: 0;
  padding: 0;
  margin: 0 0 15px;
}
.help-layout aside h2:not(:first-child) {
  margin-top: 30px;
}
.help-layout aside p {
  font-size: 16px;
}
.help-layout aside > a {
  font-size: 15px;
}
.format-reference {
  margin: 0 0 20px;
}
.format-reference > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 25px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.format-reference dt {
  font-weight: 650;
}
.format-reference dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.format-reference code {
  font-size: 13px;
  background: var(--wash);
  padding: 2px 3px;
}
.help-action {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  font-size: 17px;
  font-weight: 650;
}
@media (max-width: 1050px) {
  .portal-grid {
    gap: 30px;
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .portal-town {
    grid-template-columns: 1fr;
  }
  .portal-town figure img {
    aspect-ratio: 2.2;
  }
  .help-layout {
    gap: 35px;
  }
  .portal-feature {
    grid-template-columns: 1fr 130px;
    padding: 24px;
  }
}
@media (max-width: 760px) {
  .portal,
  .article-index-page,
  .changes-page,
  .help-page {
    padding-top: 28px;
  }
  .portal-heading {
    display: block;
    padding-bottom: 18px;
  }
  .portal-heading h1,
  .article-index-page h1,
  .changes-page h1,
  .help-page h1 {
    font-size: 43px;
  }
  .portal-heading > div > p {
    font-size: 20px;
  }
  .portal-edition {
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 18px;
    font-size: 11px;
  }
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .portal-town {
    grid-template-columns: 1fr;
  }
  .portal-town figure img {
    aspect-ratio: 1.8;
  }
  .portal-subjects dl {
    gap: 0 22px;
  }
  .portal-subjects dt {
    font-size: 18px;
  }
  .portal-subjects dd {
    font-size: 15px;
  }
  .portal-feature {
    grid-template-columns: 1fr 110px;
    gap: 20px;
    padding: 20px;
  }
  .portal-feature h2 {
    font-size: 29px;
  }
  .portal-feature p:not(.feature-context) {
    font-size: 16px;
  }
  .portal-feature figcaption {
    font-size: 11px;
  }
  .requested-articles {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 35px;
  }
  .requested-articles ul {
    grid-template-columns: 1fr;
  }
  .portal-index ul {
    columns: 2;
    column-gap: 24px;
  }
  .portal-index li {
    break-inside: avoid;
  }
  .index-title {
    display: block;
  }
  .index-title > a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    margin-top: 10px;
  }
  .index-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .index-layout aside h2 {
    font-size: 16px;
  }
  .index-layout aside button {
    display: inline-flex;
    width: auto;
    min-height: 44px;
    border: 1px solid var(--line);
    padding: 7px 12px;
    font-size: 14px;
  }
  .index-layout aside button[aria-pressed="true"] {
    border: 1px solid var(--blue);
  }
  #article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .index-note {
    margin-top: 0;
  }
  .article-index-search button {
    font-size: 14px;
    padding: 10px 13px;
  }
  .article-index-search input {
    font-size: 18px;
  }
  .alphabet-section {
    grid-template-columns: 30px 1fr;
    gap: 15px;
  }
  .alphabet-section h3 {
    font-size: 22px;
  }
  .change-rows li {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .changes-controls {
    gap: 12px;
  }
  .changes-controls button {
    padding: 8px 15px;
  }
  .help-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .help-lead {
    font-size: 21px;
  }
  .help-layout p {
    font-size: 18px;
  }
  .format-reference > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .portal h2 {
    font-size: 30px;
  }
}

.article-index-page #article-search-hint {
  margin-top: 10px;
}
.index-layout aside button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.subject-count {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
#article-filter-summary {
  margin-top: 12px;
  overflow-wrap: anywhere;
}
#alphabet {
  flex-wrap: wrap;
}
#alphabet a {
  min-width: 44px;
  min-height: 44px;
}
.index-empty button {
  margin-top: 22px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
  padding: 10px 18px;
  font-weight: 650;
}
.index-empty > a {
  display: block;
  width: fit-content;
  margin-top: 12px;
  padding-block: 10px;
}
.index-results-jump {
  display: none;
}
@media (max-width: 760px) {
  .index-results-jump {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 16px;
    font-weight: 650;
  }
  .index-layout aside button {
    display: inline-flex;
  }
}

.portal-awards { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 22px 24px; margin-bottom: 34px; background: #faf7ef; border-top: 2px solid #b68b3e; }
.portal-awards h2 { font: 650 24px/1.2 var(--sans); }
.portal-awards h2 a { color: var(--ink); }
.portal-awards p { font-size: 16px; margin-top: 8px; }
.portal-awards > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 650; flex-shrink: 0; }
@media(max-width:760px) { .portal-awards { align-items: start; flex-direction: column; gap: 12px; padding: 20px; } }

.portal-main,
.portal-town-copy {
  min-width: 0;
}
.portal-main a {
  overflow-wrap: anywhere;
}

.alphabet-section li.has-portrait { display: flow-root; }
.index-portrait { float: left; width: 100px; margin: 0 20px 12px 0; }
.index-portrait img { display: block; width: 100%; height: 120px; object-fit: contain; object-position: center top; }
.index-portrait figcaption { font-size: 10px; line-height: 1.4; margin-top: 6px; overflow-wrap: anywhere; }
@media (max-width: 500px) {
  .index-portrait { width: 76px; margin-right: 14px; }
  .index-portrait img { height: 96px; }
}
@media (max-width: 760px) { .portal-tabs { flex-wrap: wrap; gap: 0 24px; } .portal-tabs a { white-space: nowrap; } }
