/**
 * LinkCentre Dictionary - editorial entry layout
 */

.dict-page {
  --dict-paper: #fbfaf7;
  --dict-blue: #00498f;
  --dict-blue-deep: #002f5c;
  --dict-ink: #1a2332;
  --dict-muted: #5c6778;
  --dict-line: rgba(16, 24, 40, 0.1);
  --dict-surface: #f4f6f9;
  --dict-white: #ffffff;
  --dict-serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --dict-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  background: var(--dict-paper);
  color: var(--dict-ink);
  font-family: var(--dict-sans);
}

.dict-page #wrapper {
  background: transparent !important;
  box-shadow: none !important;
  max-width: none;
}

.dict-page--hub #wrapper,
.dict-page--browse #wrapper,
.dict-page--entry #wrapper,
.dict-page--missing #wrapper {
  width: 100%;
  padding: 0;
}

.dict-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 24px 64px;
}

.dict-crumb {
  font-size: 13px;
  color: var(--dict-muted);
  margin: 8px 0 20px;
}

.dict-crumb a {
  color: var(--dict-blue);
  text-decoration: none;
}

.dict-crumb a:hover {
  text-decoration: underline;
}

.dict-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.dict-main {
  background: var(--dict-white);
  border: 1px solid var(--dict-line);
  border-radius: 12px;
  padding: 36px 40px 48px;
  min-width: 0;
}

.dict-side {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dict-card {
  background: var(--dict-white);
  border: 1px solid var(--dict-line);
  border-radius: 12px;
  padding: 20px 22px;
}

.dict-card h2 {
  font-family: var(--dict-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--dict-blue-deep);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--dict-line);
}

.dict-note {
  background: #eef5fc;
  border-left: 3px solid var(--dict-blue);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 15px;
  margin: 0 0 20px;
  color: var(--dict-blue-deep);
}

.dict-headword {
  font-family: var(--dict-serif);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--dict-ink);
  margin: 0 0 6px;
  text-transform: none;
}

.dict-hyphen {
  font-size: 16px;
  color: var(--dict-muted);
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

.dict-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 18px;
}

.dict-ipa {
  font-family: "Charis SIL", "Doulos SIL", "Lucida Sans Unicode", "Source Sans 3", sans-serif;
  font-size: 17px;
  color: var(--dict-ink);
}

.dict-ipa .region {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dict-muted);
  margin-right: 4px;
}

.dict-speak {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--dict-line);
  border-radius: 50%;
  background: #fff;
  color: var(--dict-blue);
  cursor: pointer;
  padding: 0;
}

.dict-speak:hover,
.dict-speak[aria-pressed="true"] {
  background: var(--dict-blue);
  color: #fff;
  border-color: var(--dict-blue);
}

.dict-speak svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.dict-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #eef5fc;
  color: var(--dict-blue-deep);
  padding: 4px 10px;
  border-radius: 999px;
}

.dict-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dict-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dict-line);
}

.dict-tab {
  font-family: var(--dict-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--dict-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  text-decoration: none;
}

.dict-tab:hover {
  color: var(--dict-blue);
  background: #eef5fc;
}

.dict-tab.is-active {
  color: #fff;
  background: var(--dict-blue);
}

.dict-pos {
  scroll-margin-top: 80px;
  margin-bottom: 36px;
}

.dict-pos-label {
  font-family: var(--dict-serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  color: var(--dict-blue);
  margin: 0 0 16px;
}

.dict-sense {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px 12px;
  padding: 14px 0;
  border-top: 1px solid var(--dict-line);
}

.dict-sense:first-of-type {
  border-top: none;
  padding-top: 0;
}

.dict-sense-num {
  font-weight: 700;
  color: var(--dict-blue);
  font-size: 16px;
  padding-top: 2px;
}

.dict-def {
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--dict-ink);
  margin: 0 0 8px;
}

.dict-def-link {
  color: var(--dict-blue);
  text-decoration: none;
  border-bottom: 1px dotted rgba(0, 73, 143, 0.45);
}

.dict-def-link:hover {
  border-bottom-style: solid;
}

.dict-examples {
  margin: 6px 0 10px;
  padding: 0;
  list-style: none;
}

.dict-examples li {
  font-size: 15.5px;
  font-style: italic;
  color: #3d4a5c;
  margin: 0 0 4px;
  padding-left: 14px;
  border-left: 2px solid #d7e4f2;
}

.dict-examples cite {
  font-style: normal;
  font-size: 13px;
  color: var(--dict-muted);
}

.dict-sense-rels {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.dict-rel-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  font-size: 14px;
}

.dict-rel-row dt {
  font-weight: 700;
  color: var(--dict-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-width: 72px;
}

.dict-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dict-chips a {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f3f6fa;
  color: var(--dict-blue-deep);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid var(--dict-line);
}

.dict-chips a:hover {
  background: #e7f1fb;
  border-color: #b9d2ea;
}

.dict-frames {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--dict-muted);
  font-size: 14px;
}

.dict-grammar table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dict-grammar th,
.dict-grammar td {
  text-align: left;
  padding: 5px 8px 5px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--dict-line);
}

.dict-grammar th {
  color: var(--dict-muted);
  font-weight: 600;
  width: 42%;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dict-grammar .pos-head td {
  font-weight: 700;
  color: var(--dict-blue);
  border-bottom: none;
  padding-top: 10px;
}

.dict-network-block {
  margin-bottom: 14px;
}

.dict-network-block h3,
.dict-side h3 {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dict-muted);
  margin: 0 0 8px;
  font-weight: 700;
}

.dict-etymology {
  font-size: 15.5px;
  line-height: 1.6;
  color: #334155;
}

.dict-phrases {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dict-phrases li {
  padding: 8px 0;
  border-bottom: 1px solid var(--dict-line);
}

.dict-phrases strong {
  display: block;
  margin-bottom: 2px;
}

.dict-phrases a {
  color: var(--dict-blue);
  text-decoration: none;
}

.dict-neighbours {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 14px;
}

.dict-neighbours a {
  color: var(--dict-blue);
  text-decoration: none;
}

.dict-sources {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--dict-line);
  font-size: 12px;
  color: var(--dict-muted);
  line-height: 1.55;
}

.dict-hub-hero {
  text-align: left;
  padding: 12px 0 28px;
}

.dict-hub-hero h1 {
  font-family: var(--dict-serif);
  font-size: 42px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--dict-ink);
}

.dict-hub-hero p {
  font-size: 18px;
  color: var(--dict-muted);
  margin: 0 0 20px;
  max-width: 42em;
}

.dict-az {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
}

.dict-az a {
  width: auto;
  min-width: 1.15em;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 5px;
  border: 0;
  border-radius: 0;
  background: none;
  text-decoration: none;
  color: var(--dict-blue-deep);
  font-weight: 600;
  font-size: 14px;
}

.dict-az a:hover,
.dict-az a:focus,
.dict-az a.is-active {
  background: none;
  color: var(--dict-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dict-az a.is-active {
  font-weight: 700;
}

.dict-az--index {
  flex: 1;
  min-width: 0;
  justify-content: space-between;
  gap: 0;
}

.dict-card .dict-az--index {
  justify-content: flex-start;
  gap: 0 4px;
}

.dict-wordlist {
  columns: 3;
  gap: 8px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dict-wordlist a {
  color: var(--dict-blue-deep);
  text-decoration: none;
  display: block;
  padding: 5px 0;
  font-size: 16px;
}

.dict-wordlist a:hover {
  color: var(--dict-blue);
  text-decoration: underline;
}

.dict-browse-panel {
  background: var(--dict-white);
  border: 1px solid var(--dict-line);
  border-radius: 12px;
  padding: 24px 28px 28px;
}

.dict-empty-heading {
  font-family: var(--dict-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--dict-blue-deep);
  margin: 0 0 12px;
}

.dict-toolbar {
  background: var(--dict-paper);
  border-bottom: 1px solid var(--dict-line);
}

.dict-toolbar__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dict-toolbar__row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dict-toolbar__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.dict-toolbar__brand img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 168px;
}

.dict-toolbar__brand span {
  border-left: 1px solid var(--dict-line);
  padding-left: 12px;
  font-family: var(--dict-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: none;
  color: var(--dict-ink);
}

.dict-toolbar .dict-hero-search {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.dict-toolbar .dict-crumb {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--dict-line);
}

.dict-masthead--sub .dict-masthead__intro {
  margin-bottom: 16px;
}

.dict-shell--entry {
  padding-top: 20px;
}

.dict-page .footer-categories {
  display: none;
}

.dict-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.dict-masthead {
  position: relative;
  color: var(--dict-ink);
  background: var(--dict-paper);
  border-bottom: 1px solid var(--dict-line);
  margin: 0 0 32px;
}

.dict-masthead__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px 22px;
}

.dict-masthead__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.dict-masthead .dict-crumb {
  margin: 0;
}

.dict-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dict-blue);
}

.dict-kicker--ink {
  color: var(--dict-blue);
}

.dict-masthead__intro {
  max-width: 38em;
  margin: 0 0 16px;
}

.dict-masthead h1 {
  font-family: var(--dict-serif);
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 8px;
  color: var(--dict-ink);
}

.dict-lede {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--dict-muted);
}

.dict-hero-search {
  margin: 0 0 18px;
}

.dict-hero-search__box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 6px 6px 18px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px rgba(0, 47, 92, 0.06);
}

.dict-hero-search__box:focus-within {
  border-color: var(--dict-blue);
  box-shadow: 0 0 0 3px rgba(0, 73, 143, 0.14), 0 10px 28px rgba(0, 47, 92, 0.06);
}

.dict-hero-search__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--dict-muted);
}

.dict-hero-search__box .dict-typeahead-list {
  z-index: 50;
}

.dict-hero-search input[type="search"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--dict-sans);
  font-size: 18px;
  color: var(--dict-ink);
}

.dict-hero-search input[type="search"]::-webkit-search-decoration,
.dict-hero-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.dict-hero-search input[type="search"]:focus {
  outline: none;
}

.dict-hero-search button {
  flex-shrink: 0;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--dict-blue);
  color: #fff;
  font-family: var(--dict-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.dict-hero-search button:hover {
  background: var(--dict-blue-deep);
}

.dict-masthead__browse {
  display: flex;
  align-items: center;
  gap: 16px 20px;
}

.dict-masthead__random {
  flex-shrink: 0;
  color: var(--dict-blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.dict-masthead__random:hover {
  text-decoration: underline;
}

.dict-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--dict-line);
  color: var(--dict-muted);
  font-size: 13px;
}

.dict-stats li {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.dict-stats li + li {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--dict-line);
}

.dict-stats strong {
  display: inline;
  font-size: 13px;
  font-weight: 700;
  color: var(--dict-ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.dict-shell--hub {
  padding-top: 0;
}

.dict-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 36px;
}

.dict-wotd {
  background: var(--dict-white);
  border: 1px solid var(--dict-line);
  border-radius: 12px;
  padding: 28px 32px 32px;
}

.dict-wotd-date {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--dict-muted);
}

.dict-wotd-word {
  font-family: var(--dict-serif);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 4px;
}

.dict-wotd-word a {
  color: var(--dict-ink);
  text-decoration: none;
}

.dict-wotd-word a:hover {
  color: var(--dict-blue);
}

.dict-wotd-pos {
  font-family: var(--dict-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--dict-blue);
  margin: 0 0 12px;
}

.dict-wotd-def {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--dict-ink);
}

.dict-wotd-ex {
  margin: 12px 0 0;
  padding-left: 14px;
  border-left: 2px solid #d7e4f2;
  font-size: 16px;
  font-style: italic;
  color: #3d4a5c;
}

.dict-wotd-more {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  color: var(--dict-blue);
  text-decoration: none;
}

.dict-wotd-more:hover {
  text-decoration: underline;
}

.dict-explore {
  background: var(--dict-white);
  border: 1px solid var(--dict-line);
  border-radius: 12px;
  padding: 22px 22px 10px;
}

.dict-explore h2 {
  font-family: var(--dict-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--dict-blue-deep);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--dict-line);
}

.dict-explore ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dict-explore li {
  border-bottom: 1px solid var(--dict-line);
}

.dict-explore li:last-child {
  border-bottom: none;
}

.dict-explore a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
}

.dict-explore a:hover .dict-explore-word {
  color: var(--dict-blue);
}

.dict-explore-word {
  font-family: var(--dict-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--dict-ink);
  margin-right: 8px;
}

.dict-explore-pos {
  font-size: 12px;
  font-style: italic;
  color: var(--dict-muted);
}

.dict-explore-def {
  display: -webkit-box;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--dict-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dict-inside {
  margin-bottom: 28px;
}

.dict-inside h2 {
  font-family: var(--dict-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--dict-ink);
  margin: 0 0 16px;
}

.dict-inside-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dict-inside-grid article {
  background: var(--dict-white);
  border: 1px solid var(--dict-line);
  border-radius: 12px;
  padding: 20px 22px 22px;
}

.dict-inside-grid h3 {
  font-family: var(--dict-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--dict-blue-deep);
  margin: 0 0 8px;
}

.dict-inside-grid p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--dict-muted);
}

.dict-sources--hub {
  margin-top: 8px;
  padding-top: 20px;
}

@media (max-width: 968px) {
  .dict-hub-grid,
  .dict-inside-grid {
    grid-template-columns: 1fr;
  }

  .dict-masthead__inner,
  .dict-toolbar__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .dict-toolbar__row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .dict-wordlist {
    columns: 2;
  }
}

@media (max-width: 640px) {
  .dict-masthead__browse {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .dict-az--index {
    justify-content: flex-start;
    gap: 2px 10px;
  }

  .dict-hero-search__box {
    padding-left: 12px;
  }

  .dict-hero-search button {
    padding: 0 14px;
  }

  .dict-wotd {
    padding: 22px 20px 24px;
  }
}

.dict-empty h1 {
  font-family: var(--dict-serif);
  font-size: 36px;
  margin: 0 0 12px;
}

.dict-suggest {
  margin: 16px 0 0;
  padding-left: 18px;
}

.dict-suggest a {
  color: var(--dict-blue);
}

.dict-typeahead {
  position: relative;
  flex: 1;
  min-width: 0;
}

.dict-typeahead input {
  width: 100%;
}

.dict-typeahead-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 40;
  background: #fff;
  border: 1px solid var(--dict-line);
  border-radius: 8px;
  margin: 4px 0 0;
  padding: 6px 0;
  list-style: none;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  display: none;
}

.dict-typeahead-list.is-open {
  display: block;
}

.dict-typeahead-list a {
  display: block;
  padding: 8px 14px;
  color: var(--dict-ink);
  text-decoration: none;
}

.dict-typeahead-list a:hover,
.dict-typeahead-list a.is-active {
  background: #eef5fc;
  color: var(--dict-blue-deep);
}

.dict-random {
  display: inline-block;
  margin-top: 12px;
  color: var(--dict-blue);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 968px) {
  .dict-layout {
    grid-template-columns: 1fr;
  }

  .dict-side {
    position: relative;
    top: 0;
  }

  .dict-main {
    padding: 24px 20px 36px;
  }

  .dict-headword {
    font-size: 36px;
  }

  .dict-wordlist {
    columns: 2;
  }
}

@media (max-width: 640px) {
  .dict-shell {
    padding: 0 16px 48px;
  }

  .dict-wordlist {
    columns: 1;
  }

  .dict-tabs {
    position: sticky;
    top: 52px;
    background: var(--dict-white);
    z-index: 5;
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
  }
}
