/* Ethewa's public reading workspace. Other review and editor pages are unaltered. */
.ethewa-site {
  --ink: #173341;
  --muted: #586971;
  --accent: #9b4f2b;
  --line: #dce2df;
  --paper: #fffefa;
  --wash: #f5f5ef;
  --blue: #e9efec;
  background: var(--wash);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.ethewa-site :is(button, a, input, select, summary):focus-visible {
  outline: 3px solid #a75125;
  outline-offset: 4px;
}

.ethewa-site .site-header {
  min-height: 88px;
  padding: 19px max(32px, calc((100vw - 1536px) / 2));
  border-bottom: 0;
  background: #173341;
  gap: 1.5rem;
}

.ethewa-site .brand {
  font-size: 1.875rem;
  gap: .85rem;
  letter-spacing: -.025em;
}

.ethewa-site .brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 46px;
  padding: 0 0 2px;
  border-color: #8caaa9;
  border-radius: 2px;
  font-size: 1.875rem;
  font-weight: normal;
  letter-spacing: 0;
  color: #eac09a;
}

.ethewa-site .brand small {
  margin-top: 7px;
  color: #d0dcdd;
  font-size: .6875rem;
  line-height: 1.3;
  letter-spacing: .1em;
}

.ethewa-site .site-nav { gap: 1.75rem; }
.ethewa-site .site-nav button {
  min-height: 44px;
  padding: .65rem .15rem;
  color: #e0e8e8;
  font-size: .875rem;
  font-weight: 500;
}
.ethewa-site .site-nav button:hover { color: #fff; border-color: #71908f; }
.ethewa-site .site-nav button[aria-pressed="true"] { color: #fff; border-color: #e5b487; }
.ethewa-site .site-nav .about-button { margin-left: 0; }
.ethewa-site .site-header :is(button, a):focus-visible { outline-color: #f3c89e; }

.ethewa-site .collection-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 36px 40px 38px;
  border-bottom: 1px solid var(--line);
}
.ethewa-site .collection-intro-copy { max-width: 48rem; min-width: 0; }
.ethewa-site .collection-intro .eyebrow {
  display: block;
  margin: 0 0 .6rem;
  color: var(--accent);
  font-size: .6875rem;
  font-weight: 650;
  letter-spacing: .13em;
}
.ethewa-site .collection-intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.6vw, 2.55rem);
  font-weight: normal;
  line-height: 1.18;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.ethewa-site .collection-intro p {
  max-width: 43rem;
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.65;
}
.ethewa-site .collection-intro-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.ethewa-site .collection-intro-actions button {
  min-height: 46px;
  padding: .7rem 1.05rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.45;
}
.ethewa-site .intro-primary { background: var(--ink); color: #fff; }
.ethewa-site .intro-primary:hover { background: #244b59; border-color: #244b59; }
.ethewa-site .intro-secondary { background: transparent; color: var(--ink); }
.ethewa-site .intro-secondary:hover { background: #e8eeea; }

.ethewa-site #dictionary-workspace { grid-template-columns: 360px minmax(0, 1fr); }
.ethewa-site #dictionary-workspace .dictionary {
  top: 1rem;
  height: calc(100vh - 2rem);
  height: calc(100dvh - 2rem);
  max-height: 62rem;
  padding: 28px 24px 20px;
  background: var(--paper);
}
.ethewa-site .index-heading { margin-bottom: 1.1rem; }
.ethewa-site .index-heading :is(h1, h2) {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: normal;
}
.ethewa-site .count { font-size: .75rem; white-space: nowrap; }
.ethewa-site .search-label { display: block; margin: 0 0 .45rem; font-size: .8125rem; font-weight: 600; }
.ethewa-site .search-wrap input {
  min-height: 48px;
  padding: .75rem .65rem .75rem 2.5rem;
  border: 1px solid #aebfbc;
  border-radius: 4px;
  background: #fff;
  font-size: .9375rem;
  box-shadow: 0 1px 2px #17334105;
}
.ethewa-site .search-wrap svg { left: .8rem; top: 15px; }
.ethewa-site input::placeholder { color: #617277; opacity: 1; }
.ethewa-site .search-tips { margin: .3rem 0 .25rem; color: var(--muted); }
.ethewa-site .search-tips summary {
  display: list-item;
  width: fit-content;
  max-width: 100%;
  padding: .65rem 0;
  min-height: 44px;
  cursor: pointer;
  font-size: .8125rem;
  line-height: 1.5;
  text-underline-offset: 3px;
}
.ethewa-site .search-tips summary:hover { color: var(--ink); text-decoration: underline; }
.ethewa-site .search-tips #dictionary-search-help {
  padding: 0 0 .7rem;
  margin: 0;
  border: 0;
  font-size: .8125rem;
  line-height: 1.6;
}
.ethewa-site .filter-row { margin-top: .65rem; gap: .7rem; font-size: .8125rem; }
.ethewa-site .filter-row label { min-width: 2.4rem; }
.ethewa-site .filter-row select { min-height: 44px; padding-block: .55rem; font-size: .875rem; background: #f8f9f5; }
.ethewa-site .alphabet {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  margin: 1rem 0;
}
.ethewa-site .alphabet button {
  min-height: 40px;
  padding: .4rem 0;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: .8125rem;
  line-height: 1.5;
}
.ethewa-site .alphabet button:hover { background: #eef2ed; border-color: #d9e2db; }
.ethewa-site .alphabet button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ethewa-site .results-meta { min-height: 36px; padding-bottom: .6rem; font-size: .75rem; }
.ethewa-site .entry-list { padding-top: .5rem; }
.ethewa-site .list-item { min-height: 58px; padding: .65rem .8rem; border-radius: 3px; }
.ethewa-site .list-item:hover { background: #f1f4ee; }
.ethewa-site .list-item[aria-current="true"] { background: #e9efea; box-shadow: inset 3px 0 0 var(--accent); }
.ethewa-site .list-item .word { font-size: .9375rem; font-weight: 600; }
.ethewa-site .list-item .small { font-size: .75rem; }
.ethewa-site .index-note { font-size: .75rem; line-height: 1.5; padding-top: .8rem; }

.ethewa-site #dictionary-workspace .entry { padding: 32px 36px 48px; }
.ethewa-site .entry-topline { margin-bottom: 1rem; }
.ethewa-site .entry-topline .eyebrow { font-size: .6875rem; letter-spacing: .11em; }
.ethewa-site .entry-nav { gap: .5rem; }
.ethewa-site .entry-nav button { min-height: 44px; padding: .5rem .35rem; font-size: .8125rem; }
.ethewa-site .word-heading { margin-bottom: .85rem; font-size: clamp(2.5rem, 4vw, 3.25rem); letter-spacing: -.025em; }
.ethewa-site .entry-subline { margin-bottom: 1.35rem; gap: .6rem; font-size: .8125rem; line-height: 1.6; }
.ethewa-site .pill { padding: .25rem .6rem; font-size: .75rem; background: #f0f4ef; border-color: #ced9d0; }
.ethewa-site .review-pill { color: #80502c; background: #faf0e5; border-color: #e7d2bd; }
.ethewa-site #entry > .source-note { margin: 1rem 0 1.4rem; padding: .75rem 1rem; border-left-width: 2px; background: #edf0e9; font-size: .8125rem; }
.ethewa-site .view-controls { gap: 1.5rem; margin-bottom: 1.25rem; border-bottom-color: #cfd9d3; }
.ethewa-site .view-controls button { min-height: 46px; font-size: .875rem; padding: .65rem .05rem .8rem; }
.ethewa-site .accounts { gap: 20px; }
.ethewa-site .source-card { border-color: #d9e1db; border-radius: 6px; background: var(--paper); box-shadow: 0 2px 8px #17334104; animation: none; }
.ethewa-site .source-card-head { gap: .75rem; padding: 23px 24px 20px; border-bottom-color: #e2e7e0; }
.ethewa-site .source-name { font-size: .8125rem; }
.ethewa-site .source-card-head h3 { margin-top: .35rem; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.015em; }
.ethewa-site .source-card-head .year { padding-top: 1px; font-size: .8125rem; }
.ethewa-site .account-body { padding: 21px 24px 24px; }
.ethewa-site .transcript-label { margin-bottom: .8rem; color: #63716e; font-size: .6875rem; line-height: 1.65; letter-spacing: .08em; }
.ethewa-site .transcript { font-size: 1.125rem; line-height: 1.75; }
.ethewa-site .account-body summary { min-height: 44px; padding-block: .4rem; font-size: .8125rem; }
.ethewa-site .full-transcript { font-size: 1.0625rem; line-height: 1.75; }
.ethewa-site .source-card-footer { padding: 16px 24px; border-top-color: #e2e7e0; background: #f9faf5; }
.ethewa-site .source-card-footer span { font-size: .75rem; }
.ethewa-site .outline-button { min-height: 44px; border-color: #b7c7bd; background: #fffefa; border-radius: 4px; font-size: .8125rem; }
.ethewa-site .outline-button:hover { background: #edf2eb; }
.ethewa-site .illustration { margin-inline: 24px; }
.ethewa-site .comparison-note { margin-top: 1.5rem; font-size: .8125rem; line-height: 1.7; }
.ethewa-site .related-section { padding-top: 1.25rem; }
.ethewa-site .related-section button { min-height: 44px; border-color: #c9d6cd; background: var(--paper); }
.ethewa-site .site-footer { padding: 24px 40px; gap: 1rem; flex-wrap: wrap; background: #edf0e9; font-size: .8125rem; }
.ethewa-site .site-footer .text-button { min-height: 44px; display: inline-flex; align-items: center; font-size: .8125rem; }
.ethewa-site .site-footer .reporting-target:empty { display: none; }

@media (min-width: 1101px) {
  .ethewa-site #dictionary-workspace .accounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ethewa-site #dictionary-workspace .accounts.single { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1100px) {
  .ethewa-site #dictionary-workspace .accounts { grid-template-columns: minmax(0, 1fr); }
  .ethewa-site .site-header { padding-inline: 28px; }
  .ethewa-site .collection-intro { padding: 30px 28px; gap: 1.5rem; }
  .ethewa-site .collection-intro-actions { flex-direction: column; }
  .ethewa-site .collection-intro-actions button { width: 100%; }
  .ethewa-site #dictionary-workspace { grid-template-columns: 320px minmax(0, 1fr); }
  .ethewa-site #dictionary-workspace .dictionary { padding-inline: 20px; }
  .ethewa-site .alphabet { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ethewa-site #dictionary-workspace .entry { padding: 28px 28px 40px; }
  .ethewa-site .source-card-head, .ethewa-site .account-body { padding-inline: 22px; }
  .ethewa-site .source-card-footer { padding-inline: 22px; }
  .ethewa-site .illustration { margin-inline: 22px; }
}

@media (max-width: 760px) {
  .ethewa-site .site-header { min-height: 0; padding: 19px 20px 0; gap: .8rem; }
  .ethewa-site .brand { font-size: 1.75rem; }
  .ethewa-site .brand-mark { width: 41px; height: 43px; font-size: 1.75rem; }
  .ethewa-site .brand small { font-size: .625rem; }
  .ethewa-site .site-nav { width: 100%; justify-content: flex-start; gap: 1.5rem; }
  .ethewa-site .site-nav button { font-size: .8125rem; min-height: 47px; padding-block: .65rem; }
  .ethewa-site .collection-intro { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 28px 20px 30px; }
  .ethewa-site .collection-intro h1 { max-width: 25rem; font-size: clamp(1.875rem, 6vw, 2.4rem); }
  .ethewa-site .collection-intro p { font-size: .875rem; margin-top: .75rem; }
  .ethewa-site .collection-intro-actions { flex-direction: row; gap: .6rem; }
  .ethewa-site .collection-intro-actions button { width: auto; flex: 1 1 9rem; padding: .7rem .9rem; }
  .ethewa-site #dictionary-workspace { display: block; }
  .ethewa-site #dictionary-workspace .dictionary { position: static; height: auto; max-height: none; padding: 8px 20px; }
  .ethewa-site .browse-toggle { min-height: 52px; font-weight: 600; padding-inline: 0; font-size: .9375rem; }
  .ethewa-site .browse-toggle span { font-size: .8125rem; font-weight: normal; }
  .ethewa-site .dictionary-browse { margin-top: .75rem; padding-bottom: .75rem; }
  .ethewa-site .index-heading { margin-bottom: 1rem; }
  .ethewa-site .search-wrap input { font-size: 1rem; }
  .ethewa-site .alphabet { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-block: .9rem; }
  .ethewa-site .alphabet button { min-height: 44px; font-size: .875rem; }
  .ethewa-site .entry-list { max-height: 22rem; }
  .ethewa-site .list-item { min-height: 60px; }
  .ethewa-site .index-note { margin-bottom: .3rem; }
  .ethewa-site #dictionary-workspace .entry { padding: 20px 20px 36px; }
  .ethewa-site .entry-topline { align-items: center; margin-bottom: .65rem; gap: .25rem; }
  .ethewa-site .entry-topline .eyebrow { font-size: .625rem; letter-spacing: .08em; }
  .ethewa-site .entry-nav { gap: .25rem; }
  .ethewa-site .entry-nav button { font-size: .75rem; padding-inline: .25rem; }
  .ethewa-site .word-heading { font-size: 2.625rem; }
  .ethewa-site .entry-subline { margin-bottom: 1.1rem; }
  .ethewa-site .view-controls { gap: 1.25rem; margin-bottom: 1rem; }
  .ethewa-site .view-controls button { font-size: .8125rem; }
  .ethewa-site .accounts { gap: 1.1rem; }
  .ethewa-site .source-card-head { padding: 20px 20px 18px; }
  .ethewa-site .source-card-head h3 { font-size: 1.5rem; }
  .ethewa-site .account-body { padding: 19px 20px 22px; }
  .ethewa-site .source-card-footer { padding: 15px 20px; }
  .ethewa-site .illustration { margin-inline: 20px; }
  .ethewa-site .transcript { font-size: 1.125rem; line-height: 1.75; }
  .ethewa-site .site-footer { padding: 20px; gap: .25rem; align-items: flex-start; }
  .ethewa-site .site-footer > span { margin-bottom: .4rem; }
}

@media (max-width: 380px) {
  .ethewa-site .site-header { padding-inline: 16px; }
  .ethewa-site .site-nav { gap: .9rem; }
  .ethewa-site .site-nav button { font-size: .75rem; }
  .ethewa-site .collection-intro { padding-inline: 16px; }
  .ethewa-site .collection-intro-actions button { flex-basis: 8rem; font-size: .8125rem; padding-inline: .65rem; }
  .ethewa-site #dictionary-workspace .dictionary, .ethewa-site #dictionary-workspace .entry { padding-inline: 16px; }
  .ethewa-site .alphabet { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (pointer: coarse) {
  .ethewa-site .alphabet button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .ethewa-site *, .ethewa-site *::before, .ethewa-site *::after { scroll-behavior: auto !important; }
  .ethewa-site .source-card { animation: none; }
}
