:root {
  --site-bg: #f6f1e8;
  --surface: #fffdf9;
  --surface-soft: #efe7d8;
  --surface-strong: #d8c7ab;
  --ink: #1c2024;
  --muted: #5f625f;
  --accent: #8a4b2a;
  --accent-deep: #5f2f19;
  --border: rgba(28, 32, 36, 0.11);
  --shadow: 0 28px 60px rgba(37, 24, 15, 0.08);
  --radius-lg: 30px;
  --radius-md: 18px;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

html,
body {
  background:
    radial-gradient(circle at top left, rgba(138, 75, 42, 0.08), transparent 28%),
    linear-gradient(180deg, #fbf7ef 0%, #f3ecdf 100%);
  color: var(--ink);
  font-family: var(--sans);
}

body,
input,
textarea,
select {
  color: var(--ink);
  font-family: var(--sans);
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-deep);
}

#page-wrapper {
  background: transparent;
}

#header {
  position: relative;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(47, 37, 29, 0.92), rgba(94, 55, 37, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  z-index: 80;
}

#header::before {
  content: "";
  position: absolute;
  inset: auto -8rem -7rem auto;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: rgba(255, 233, 205, 0.12);
  filter: blur(8px);
  pointer-events: none;
}

#header h1,
#header .site-title {
  margin: 0;
}

#logo {
  color: #fff7ee;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

#nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin: 1.4rem 0 0;
}

#nav a {
  border: 1px solid rgba(255, 245, 234, 0.2);
  border-radius: 999px;
  color: rgba(255, 247, 238, 0.85);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.1rem;
  text-transform: uppercase;
  transition: all 180ms ease;
}

#nav a:hover,
#nav a.current-page-item {
  background: rgba(255, 247, 238, 0.12);
  border-color: rgba(255, 247, 238, 0.38);
  color: #fffdf8;
}

.halcyonic-language-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.halcyonic-language-nav a {
  border-bottom: 1px solid transparent;
  color: rgba(255, 247, 238, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  padding-bottom: 0.1rem;
  text-transform: uppercase;
}

.halcyonic-language-nav a.is-current,
.halcyonic-language-nav a:hover {
  border-color: rgba(255, 247, 238, 0.65);
  color: #fffdf8;
}

#banner {
  padding: 4.5rem 0 5rem;
}

#banner p {
  color: rgba(255, 247, 238, 0.92);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 2.8rem);
  line-height: 1.18;
  margin-bottom: 1.4rem;
  max-width: 12ch;
}

.button-large {
  background: linear-gradient(180deg, #f7dcb9, #e9bf8c);
  border-radius: 999px;
  box-shadow: 0 12px 25px rgba(17, 10, 6, 0.16);
  color: #3f2313 !important;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 1rem 1.5rem;
  text-transform: uppercase;
}

.halcyonic-banner-image,
.story-card__image {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: block;
  overflow: hidden;
}

.halcyonic-banner-image img,
.story-card__image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.halcyonic-banner-image picture,
.story-card__image picture {
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  width: 100%;
}

.entry-thumbnail picture {
  display: block;
  width: 100%;
}

.entry-thumbnail picture img {
  display: block;
  height: auto;
  width: 100%;
}

.media-placeholder {
  align-items: flex-end;
  background:
    linear-gradient(145deg, rgba(197, 164, 123, 0.28), rgba(117, 79, 52, 0.08)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.9), rgba(244, 237, 223, 0.75));
  color: rgba(35, 25, 16, 0.94);
  display: flex;
  position: relative;
  text-decoration: none;
}

.media-placeholder--card,
.media-placeholder--banner {
  overflow: hidden;
}

.media-placeholder--card {
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 1rem 1rem 1.1rem;
}

.media-placeholder--banner {
  aspect-ratio: 4 / 3;
  min-height: 18rem;
  padding: 1.4rem 1.5rem;
}

.entry-thumbnail--placeholder .media-placeholder--article {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-height: 18rem;
  padding: 1.5rem 1.6rem;
}

.media-placeholder::before {
  border: 1px solid rgba(117, 79, 52, 0.16);
  border-radius: 20px;
  content: "";
  inset: 0.85rem;
  position: absolute;
}

.media-placeholder::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 48%);
  content: "";
  inset: 0;
  position: absolute;
}

.media-placeholder__eyebrow,
.media-placeholder__title {
  position: relative;
  z-index: 1;
}

.media-placeholder__eyebrow {
  color: rgba(83, 57, 37, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.media-placeholder__title {
  color: rgba(83, 57, 37, 0.9);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.2;
  max-width: 13ch;
}

.media-placeholder--banner .media-placeholder__title,
.media-placeholder--article .media-placeholder__title {
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  max-width: 10ch;
}

.media-placeholder[data-category="articles"] {
  background:
    linear-gradient(145deg, rgba(208, 170, 132, 0.26), rgba(122, 81, 48, 0.08)),
    radial-gradient(circle at top right, rgba(255, 248, 239, 0.98), rgba(245, 235, 219, 0.78));
}

.media-placeholder[data-category="home-appliances"] {
  background:
    linear-gradient(145deg, rgba(153, 185, 202, 0.32), rgba(65, 108, 128, 0.1)),
    radial-gradient(circle at top right, rgba(247, 251, 255, 0.98), rgba(229, 239, 246, 0.8));
}

.media-placeholder[data-category="building-materials"] {
  background:
    linear-gradient(145deg, rgba(190, 168, 140, 0.34), rgba(122, 87, 56, 0.12)),
    radial-gradient(circle at top right, rgba(250, 244, 236, 0.98), rgba(233, 222, 208, 0.82));
}

.media-placeholder[data-category="games"] {
  background:
    linear-gradient(145deg, rgba(159, 151, 221, 0.3), rgba(89, 80, 147, 0.1)),
    radial-gradient(circle at top right, rgba(246, 244, 255, 0.98), rgba(231, 227, 250, 0.82));
}

.media-placeholder[data-category="hobby"] {
  background:
    linear-gradient(145deg, rgba(168, 198, 158, 0.3), rgba(88, 122, 79, 0.1)),
    radial-gradient(circle at top right, rgba(247, 252, 243, 0.98), rgba(231, 241, 224, 0.82));
}

.media-placeholder[data-category="auto"] {
  background:
    linear-gradient(145deg, rgba(160, 170, 186, 0.3), rgba(71, 80, 94, 0.12)),
    radial-gradient(circle at top right, rgba(247, 249, 252, 0.98), rgba(230, 235, 241, 0.84));
}

.media-placeholder[data-category="natural-phenomena"] {
  background:
    linear-gradient(145deg, rgba(176, 196, 225, 0.3), rgba(95, 122, 168, 0.1)),
    radial-gradient(circle at top right, rgba(244, 249, 255, 0.98), rgba(226, 236, 248, 0.84));
}

#features,
#content,
.halcyonic-page-lede,
#footer {
  position: relative;
}

#features {
  margin-top: -2.25rem;
  padding-bottom: 1.5rem;
}

.halcyonic-topic {
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  box-shadow: var(--shadow);
  min-height: 100%;
  padding: 1.6rem 1.5rem 1.7rem;
}

.halcyonic-topic h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.08;
  margin-bottom: 0.7rem;
}

.halcyonic-topic p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.halcyonic-page-lede {
  padding: 4rem 0 1.5rem;
}

.halcyonic-page-lede header {
  max-width: 48rem;
}

.halcyonic-breadcrumbs {
  margin: 0 0 1.1rem;
}

.halcyonic-breadcrumbs ol {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.halcyonic-breadcrumbs li {
  align-items: center;
  color: rgba(95, 98, 95, 0.82);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.halcyonic-breadcrumbs li:not(:last-child)::after {
  color: rgba(95, 98, 95, 0.42);
  content: "/";
  margin-left: 0.55rem;
}

.halcyonic-breadcrumbs a {
  border-bottom: 1px solid rgba(138, 75, 42, 0.24);
  color: var(--accent);
  text-decoration: none;
}

.halcyonic-breadcrumbs a:hover {
  border-bottom-color: currentColor;
  color: var(--accent-deep);
}

.halcyonic-page-lede h1,
.halcyonic-page-lede h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 0.75rem;
}

.halcyonic-page-lede p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0;
  max-width: 42rem;
}

.halcyonic-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.halcyonic-entry-meta span {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  padding: 0.65rem 0.9rem;
  text-transform: uppercase;
}

#content {
  padding-bottom: 4.25rem;
}

#content header h2,
#content header h3,
#footer h2 {
  font-family: var(--serif);
}

#content .container,
#footer .container {
  position: relative;
  z-index: 1;
}

.story-grid .row {
  row-gap: 1.4rem;
}

.pt-60[aria-label],
.pt-60[aria-label="Page navigation"],
.pt-60[aria-label="Навигация по страницам"] {
  margin-top: 2rem;
}

.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination .page-item {
  margin: 0;
}

.pagination .page-link {
  align-items: center;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 0.9rem;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.pagination .page-link:hover {
  background: #fffdf8;
  border-color: rgba(138, 75, 42, 0.32);
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(180deg, #f7dcb9, #e9bf8c);
  border-color: rgba(138, 75, 42, 0.25);
  color: #3f2313;
  font-weight: 700;
}

.pagination .page-item.disabled .page-link {
  background: rgba(239, 231, 216, 0.5);
  border-color: rgba(28, 32, 36, 0.06);
  color: rgba(95, 98, 95, 0.65);
  cursor: default;
  pointer-events: none;
}

.pagination .sr-only {
  display: none;
}

.page-prose {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  padding: 2rem 2.1rem;
}

.page-prose__header {
  margin-bottom: 0.9rem;
}

.page-prose__header h2 {
  margin-bottom: 0;
}

.page-prose p + p {
  margin-top: 1rem;
}

.weight-converter-tool,
.halcyonic-convert-callout {
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.weight-converter-tool {
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.weight-converter-tool__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.15fr 1fr 1fr;
}

.weight-converter-tool label {
  display: grid;
  gap: 0.48rem;
  margin: 0;
}

.weight-converter-tool label span {
  color: #75695d;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.weight-converter-tool input,
.weight-converter-tool select {
  appearance: none;
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(84, 61, 45, 0.13);
  border-radius: 1rem;
  box-shadow: none;
  color: #2f2a25;
  font-family: var(--sans);
  font-size: 1rem;
  min-height: 3.15rem;
  outline: none;
  padding: 0 1rem;
  width: 100%;
}

.weight-converter-tool input:focus,
.weight-converter-tool select:focus {
  border-color: rgba(200, 67, 46, 0.42);
  box-shadow: 0 0 0 4px rgba(200, 67, 46, 0.09);
}

.weight-converter-tool__result {
  border-top: 1px solid rgba(84, 61, 45, 0.1);
  display: grid;
  gap: 0.3rem;
  margin-top: 1.55rem;
  padding-top: 1.45rem;
}

.weight-converter-tool__result span {
  color: #776a60;
  font-size: 0.9rem;
}

.weight-converter-tool__result output {
  color: #211d19;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 6vw, 4.6rem);
  line-height: 0.98;
}

.weight-converter-tool__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.weight-converter-tool__quick button {
  background: #f8dfbd;
  border: 0;
  border-radius: 999px;
  color: #3d281d;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  min-height: 2.45rem;
  padding: 0 1rem;
  text-transform: uppercase;
  transition: background 180ms ease, transform 180ms ease;
}

.weight-converter-tool__quick button:hover,
.weight-converter-tool__quick button:focus-visible {
  background: #edc48f;
  transform: translateY(-1px);
}

.halcyonic-faq details {
  border-top: 1px solid rgba(84, 61, 45, 0.1);
  padding: 1rem 0;
}

.halcyonic-faq details:first-of-type {
  border-top: 0;
}

.halcyonic-faq summary {
  color: #2f2a25;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.18rem;
}

.halcyonic-faq p {
  margin: 0.75rem 0 0;
}

.halcyonic-convert-callout {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.35rem 1.55rem;
}

.halcyonic-convert-callout h2 {
  font-size: 1.45rem;
  margin: 0 0 0.3rem;
}

.halcyonic-convert-callout p {
  color: #6f655e;
  margin: 0;
}

.stat-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.stat-strip article,
.team-card {
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(37, 24, 15, 0.08);
  padding: 1.2rem 1.15rem;
}

.stat-strip strong {
  color: var(--accent-deep);
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-strip span,
.team-card__eyebrow,
.team-card__topics {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.team-card__header {
  align-items: center;
  display: flex;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

.team-card__avatar {
  border: 1px solid rgba(138, 75, 42, 0.16);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(37, 24, 15, 0.12);
  flex: 0 0 72px;
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.team-card__intro {
  min-width: 0;
}

.team-card__intro .team-card__eyebrow {
  margin-bottom: 0.25rem;
}

.halcyonic-sidebar__block {
  padding: 1.8rem 1.6rem;
}

.team-card h3 {
  font-size: 1.45rem;
  margin: 0;
}

.team-card h3 a {
  color: var(--accent-deep);
  text-decoration: none;
}

.team-card p:last-child {
  margin-bottom: 0;
}

.story-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.story-card:hover {
  box-shadow: 0 34px 70px rgba(37, 24, 15, 0.14);
  transform: translateY(-5px);
}

.story-card__copy {
  padding: 1.1rem 1.2rem 1.35rem;
}

.story-card__meta {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.story-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.18;
  margin-bottom: 0.5rem;
}

.story-card__excerpt {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.halcyonic-sidebar,
.halcyonic-author-box,
.halcyonic-related-posts,
#content .col-8 > section,
#content .col-9 > section,
#content .col-4 > section {
  background: rgba(255, 253, 249, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

#content .col-8 > section,
#content .col-9 > section,
#content .col-4 > section {
  padding: 2rem;
}

.halcyonic-sidebar {
  padding: 1.4rem;
}

.halcyonic-sidebar > section + section {
  border-top: 1px solid var(--border);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.halcyonic-sidebar h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.halcyonic-sidebar .link-list li {
  border-top-color: var(--border);
}

.halcyonic-sidebar p,
.halcyonic-sidebar li a {
  color: var(--muted);
}

.halcyonic-author-box {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 4.5rem 1fr;
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
}

.halcyonic-author-box img {
  aspect-ratio: 1;
  border-radius: 999px;
  display: block;
  object-fit: cover;
  width: 4.5rem;
}

.halcyonic-author-role {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem !important;
  text-transform: uppercase;
}

.halcyonic-article-shell,
.halcyonic-related-posts {
  margin-bottom: 1.5rem;
  padding: 2rem !important;
}

.halcyonic-article-shell .entry-thumbnail img {
  border-radius: 22px;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.halcyonic-article-shell .entry-thumbnail {
  aspect-ratio: 3 / 2;
  border-radius: 22px;
  overflow: hidden;
}

.halcyonic-article-shell .entry-thumbnail picture {
  display: block;
  height: 100%;
  width: 100%;
}

.entry-content {
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.9;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content figure {
  margin-bottom: 1.1rem;
}

.entry-content strong,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--ink);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--serif);
  line-height: 1.15;
  margin-top: 1.9rem;
}

.entry-content h2 {
  font-size: 2rem;
}

.entry-content h3 {
  font-size: 1.55rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
}

.entry-content img {
  border-radius: 18px;
}

.author-info,
.entry-comments {
  background: var(--surface-soft) !important;
  border: 1px solid rgba(138, 75, 42, 0.1) !important;
  border-radius: 22px !important;
}

.entry-comments {
  display: none;
}

.halcyonic-related-posts header {
  margin-bottom: 1.2rem;
}

#footer {
  background: linear-gradient(180deg, rgba(43, 34, 28, 0.96), rgba(28, 22, 18, 0.98));
  color: rgba(255, 247, 238, 0.85);
  margin-top: 2rem;
  padding-top: 3.5rem;
}

#footer a {
  color: rgba(255, 247, 238, 0.75);
}

#footer a:hover {
  color: #fffdf8;
}

#footer h2 {
  color: #fffdf8;
  margin-bottom: 0.8rem;
}

#footer .halcyonic-footer-support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

#footer .halcyonic-footer-support-links a {
  align-items: center;
  border: 1px solid rgba(255, 247, 238, 0.18);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-height: 38px;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
}

#footer .halcyonic-footer-routes h3 {
  color: rgba(255, 247, 238, 0.54);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

#footer .halcyonic-footer-category-grid {
  display: grid;
  gap: 0 0.95rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

#footer .halcyonic-footer-category-grid li {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0;
  padding: 0;
}

#footer .halcyonic-footer-category-grid a {
  display: block;
  line-height: 1.25;
  min-height: 42px;
  padding: 0.68rem 0;
  text-decoration: none;
}

#footer .link-list li {
  border-top-color: rgba(255, 255, 255, 0.12);
}

#copyright {
  background: transparent;
  color: rgba(255, 247, 238, 0.55);
  padding: 1.8rem 1rem 2.5rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

#content .story-grid [data-reveal],
#content .col-8 > section[data-reveal],
#content .col-9 > section[data-reveal] {
  opacity: 1;
  transform: none;
}

/* LCP fix: above-the-fold content must paint on first render, not wait for
   the deferred reveal script. Hiding the hero/lede with opacity:0 pushed LCP
   from ~0.9s (FCP) to ~5.4s. Keep these visible; reveal stays for below-fold. */
.halcyonic-page-lede[data-reveal],
.halcyonic-page-lede [data-reveal],
.entry-thumbnail,
.halcyonic-article-shell[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* In-article tables for the in-depth weight guides */
.entry-content .table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.entry-content th,
.entry-content td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(75, 61, 51, 0.16);
}
.entry-content thead th {
  background: rgba(75, 61, 51, 0.06);
  font-weight: 600;
  white-space: nowrap;
}
.entry-content tbody tr:nth-child(even) {
  background: rgba(75, 61, 51, 0.03);
}
.entry-content h2 {
  margin-top: 2rem;
}
.entry-content ul {
  margin: 0.5rem 0 1.5rem;
  padding-left: 1.25rem;
}
.entry-content ul li {
  margin-bottom: 0.4rem;
}

body.is-scrolled #header {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1), 0 16px 45px rgba(16, 10, 6, 0.14);
}

@media screen and (max-width: 980px) {
  #banner {
    padding-top: 3.2rem;
  }

  .halcyonic-page-lede {
    padding-top: 3rem;
  }

  .halcyonic-author-box {
    grid-template-columns: 1fr;
  }

  #content .col-8 > section,
  #content .col-9 > section,
  #content .col-4 > section,
  .halcyonic-article-shell,
  .halcyonic-related-posts {
    padding: 1.45rem !important;
  }
}

@media screen and (max-width: 736px) {
  #nav {
    justify-content: flex-start;
  }

  .halcyonic-language-nav {
    justify-content: flex-start;
  }

  #features {
    margin-top: -1.25rem;
  }

  .story-card h3 {
    font-size: 1.15rem;
  }

  .entry-content {
    font-size: 1rem;
  }

  .pagination {
    gap: 0.5rem;
    justify-content: flex-start;
  }

  .pagination .page-link {
    min-height: 2.45rem;
    min-width: 2.45rem;
    padding: 0.55rem 0.85rem;
  }

  .stat-strip,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card__header {
    align-items: flex-start;
  }

  .page-prose {
    padding: 1.5rem 1.25rem;
  }
}

/* Layout refinement pass: calmer hierarchy, safer wrapping, better mobile fit */
:root {
  --container-max: 1180px;
}

body {
  line-height: 1.65;
}

.container {
  width: min(var(--container-max), calc(100% - 3rem));
}

a {
  text-underline-offset: 0.16em;
}

#header {
  overflow: visible;
  z-index: 80;
}

#header > .container {
  height: auto !important;
  min-height: 0;
  padding: 0.8rem 0 1.15rem;
  position: relative;
  z-index: 3;
}

#page-wrapper {
  padding-top: 0 !important;
}

#titleBar,
#navPanel {
  display: none !important;
}

#header > .container:first-child {
  display: block !important;
}

#header .row {
  margin: 0 !important;
}

#header .row > * {
  padding: 0 !important;
}

#header .col-12 {
  align-items: start;
  display: grid;
  grid-template-areas:
    "lang lang"
    "logo nav";
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 0;
  row-gap: 1rem;
}

#header h1,
#header .site-title {
  bottom: auto;
  grid-area: logo;
  left: auto;
  margin-top: 0.15rem;
  position: static;
  right: auto;
  top: auto;
}

#logo {
  display: block;
  line-height: 1;
  max-width: 13ch;
  overflow-wrap: normal;
  white-space: nowrap;
  text-wrap: nowrap;
}

#nav {
  align-items: center;
  align-self: end;
  bottom: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  grid-area: nav;
  justify-content: flex-end;
  justify-self: end;
  margin: 0;
  max-width: 100%;
  padding-top: 0;
  position: static;
  top: auto;
  width: auto;
}

#nav a {
  align-items: center;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 600;
  justify-content: center;
  letter-spacing: 0.14em;
  min-height: 44px;
  opacity: 0.82;
  padding: 0 0.15rem;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
}

#nav a::after {
  background: rgba(255, 247, 238, 0.72);
  bottom: -0.28rem;
  content: "";
  height: 1px;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

#nav a:hover,
#nav a.current-page-item {
  color: #fffdf8;
  opacity: 1;
}

#nav a:hover::after,
#nav a.current-page-item::after {
  opacity: 1;
  transform: scaleX(1);
}

#nav .halcyonic-menu {
  position: relative;
  z-index: 90;
}

#nav .halcyonic-menu summary {
  align-items: center;
  color: rgba(255, 247, 238, 0.82);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.16em;
  min-height: 44px;
  opacity: 0.88;
  padding: 0 0.15rem;
  position: relative;
  text-transform: uppercase;
  user-select: none;
}

#nav .halcyonic-menu summary::-webkit-details-marker {
  display: none;
}

#nav .halcyonic-menu summary::after {
  background: rgba(255, 247, 238, 0.72);
  bottom: -0.28rem;
  content: "";
  height: 1px;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

#nav .halcyonic-menu summary:hover,
#nav .halcyonic-menu summary.current-page-item,
#nav .halcyonic-menu[open] summary {
  color: #fffdf8;
  opacity: 1;
}

#nav .halcyonic-menu summary:hover::after,
#nav .halcyonic-menu summary.current-page-item::after,
#nav .halcyonic-menu[open] summary::after {
  opacity: 1;
  transform: scaleX(1);
}

#nav .halcyonic-menu__links {
  background: rgba(50, 42, 36, 0.98);
  border: 1px solid rgba(255, 247, 238, 0.18);
  border-radius: 1.1rem;
  box-sizing: border-box;
  box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.22);
  display: none;
  gap: 0.45rem;
  min-width: min(26rem, calc(100vw - 2rem));
  padding: 0.75rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  z-index: 100;
}

#nav .halcyonic-menu[open] .halcyonic-menu__links {
  display: grid;
}

#nav .halcyonic-menu__eyebrow {
  color: rgba(255, 247, 238, 0.54);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  margin: 0.2rem 0.45rem 0.1rem;
  text-transform: uppercase;
}

#nav .halcyonic-menu__page-links,
#nav .halcyonic-menu__category-grid {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

#nav .halcyonic-menu__category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.halcyonic-fa-icon {
  display: block;
  fill: currentColor;
  height: 1em;
  stroke: none;
  width: 1em;
}

#nav .halcyonic-menu__links a {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0.75rem;
  box-sizing: border-box;
  box-shadow: none !important;
  color: rgba(255, 247, 238, 0.86);
  display: flex !important;
  font-size: 0.72rem;
  font-weight: 700;
  justify-content: flex-start;
  letter-spacing: 0.12em;
  line-height: 1.2;
  margin: 0 !important;
  min-height: 38px;
  min-width: 0;
  opacity: 0.92;
  padding: 0.35rem 0.7rem;
  text-align: left;
  text-shadow: none;
  width: 100%;
}

#nav .halcyonic-menu__category-grid a {
  align-items: center;
  display: grid !important;
  gap: 0.62rem;
  grid-template-columns: 2.05rem minmax(0, 1fr);
  min-height: 50px;
}

#nav .halcyonic-menu__category-icon {
  align-items: center;
  background: rgba(255, 247, 238, 0.08);
  border: 1px solid rgba(255, 247, 238, 0.08);
  border-radius: 999px;
  color: rgba(255, 223, 184, 0.84);
  display: inline-flex;
  height: 2.05rem;
  justify-content: center;
  width: 2.05rem;
}

#nav .halcyonic-menu__category-icon .halcyonic-fa-icon {
  height: 0.9rem;
  width: 0.9rem;
}

#nav .halcyonic-menu__category-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

#nav .halcyonic-menu__links span {
  line-height: 1.18;
}

#nav .halcyonic-menu__links small {
  color: rgba(255, 247, 238, 0.52);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

#nav .halcyonic-menu__links a::after {
  display: none;
}

#nav .halcyonic-menu__links a:hover,
#nav .halcyonic-menu__links a.current-page-item {
  background: rgba(255, 247, 238, 0.09) !important;
}

#nav .halcyonic-menu__eyebrow--secondary {
  border-top: 1px solid rgba(255, 247, 238, 0.1);
  margin-top: 0.45rem;
  padding-top: 0.65rem;
}

#nav .halcyonic-menu__page-links--secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#nav .halcyonic-menu__page-links--secondary a {
  align-items: center;
  gap: 0.42rem;
  justify-content: center;
  min-height: 34px;
  padding-inline: 0.45rem;
  text-align: center;
}

#nav .halcyonic-fa-icon--page {
  color: rgba(255, 223, 184, 0.78);
  height: 0.78rem;
  width: 0.78rem;
}

.halcyonic-language-nav {
  align-items: center;
  display: flex;
  gap: 0.45rem 0.75rem;
  grid-area: lang;
  justify-content: flex-start;
  margin-top: 0;
  position: static;
  top: auto;
  width: 100%;
}

.halcyonic-language-nav a {
  align-items: center;
  color: rgba(255, 247, 238, 0.78);
  display: inline-flex;
  font-size: 0.72rem;
  justify-content: center;
  letter-spacing: 0.18em;
  min-height: 44px;
  min-width: 44px;
  opacity: 0.85;
  text-decoration: none;
  text-transform: uppercase;
}

#banner {
  padding: 3.15rem 0 4.4rem;
}

#banner .row {
  align-items: center;
  row-gap: 1.8rem;
}

#banner p {
  font-size: clamp(1.35rem, 2.35vw, 2.55rem);
  line-height: 1.12;
  max-width: 15ch;
  text-wrap: balance;
}

#banner .imp-medium {
  display: flex;
  justify-content: flex-end;
}

.halcyonic-hero-categories {
  background:
    linear-gradient(135deg, rgba(255, 251, 244, 0.95), rgba(237, 225, 205, 0.86)),
    radial-gradient(circle at 100% 0%, rgba(233, 191, 140, 0.32), transparent 34%);
  border: 1px solid rgba(255, 247, 238, 0.52);
  border-radius: 1.65rem;
  box-shadow: 0 1.6rem 4rem rgba(19, 13, 9, 0.22);
  box-sizing: border-box;
  max-width: 43rem;
  padding: clamp(1.1rem, 2.1vw, 1.65rem);
  width: min(100%, 43rem);
}

.halcyonic-hero-categories,
.halcyonic-hero-categories * {
  text-shadow: none !important;
}

.halcyonic-hero-categories .halcyonic-kicker {
  color: #7a6657 !important;
  font-family: var(--sans) !important;
  font-size: 0.64rem !important;
  font-weight: 850;
  letter-spacing: 0.2em;
  line-height: 1.1 !important;
  margin: 0 0 0.55rem !important;
  max-width: none !important;
  text-transform: uppercase;
}

.halcyonic-hero-categories h2 {
  color: #2c2925;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  line-height: 1;
  margin: 0 0 1rem;
  text-shadow: none;
}

.halcyonic-hero-category-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.halcyonic-hero-category {
  align-items: center;
  background: rgba(255, 253, 248, 0.66);
  border: 1px solid rgba(84, 61, 45, 0.09);
  border-radius: 1rem;
  color: #332d27;
  display: grid;
  gap: 0.72rem;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  min-height: 4.3rem;
  padding: 0.68rem 0.76rem;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.halcyonic-hero-category:hover {
  background: rgba(255, 253, 248, 0.94);
  border-color: rgba(138, 75, 42, 0.2);
  color: #241d18;
  transform: translateY(-2px);
}

.halcyonic-hero-category__icon {
  align-items: center;
  background: rgba(75, 61, 51, 0.1);
  border-radius: 999px;
  color: var(--accent-deep);
  display: inline-flex;
  font-size: 1.05rem;
  height: 2.4rem;
  justify-content: center;
  line-height: 1;
  width: 2.4rem;
}

.halcyonic-hero-category__icon .halcyonic-fa-icon {
  height: 1.05rem;
  width: 1.05rem;
}

.halcyonic-hero-category__copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.halcyonic-hero-category strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.105em;
  line-height: 1.16;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.halcyonic-hero-category small {
  color: #78695d;
  display: block;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.button-large {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.halcyonic-home-overview {
  margin-top: 0;
}

.halcyonic-home-overview .halcyonic-topic {
  max-width: 52rem;
}

.halcyonic-home-overview .halcyonic-topic h2,
.halcyonic-home-overview .halcyonic-topic p,
.halcyonic-category-showcase h2,
.halcyonic-category-showcase p {
  text-shadow: none;
}

.halcyonic-home-overview .halcyonic-topic h2,
.halcyonic-home-overview .halcyonic-topic p {
  color: #34302d;
}

.halcyonic-category-showcase {
  background: rgba(255, 253, 248, 0.86);
  border-radius: 1.55rem;
  box-shadow: 0 1rem 2.6rem rgba(51, 43, 36, 0.07);
  margin-bottom: 1.45rem;
  padding: clamp(1.25rem, 3vw, 2.15rem);
}

.halcyonic-category-showcase__header {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.halcyonic-category-showcase__header h2 {
  margin: 0;
}

.halcyonic-category-showcase__header h2 a {
  color: #252322;
  text-decoration: none;
}

.halcyonic-kicker {
  color: #88786d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
}

.halcyonic-section-link {
  color: #c8432e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.halcyonic-home-start {
  background: transparent !important;
  box-shadow: none !important;
  padding-top: 0 !important;
}

.halcyonic-banner-image img,
.story-card__image img,
.halcyonic-banner-image picture,
.story-card__image picture {
  aspect-ratio: 16 / 11;
}

#features {
  margin-top: -1.3rem;
}

.halcyonic-topic {
  padding: 1.45rem 1.35rem 1.55rem;
}

.halcyonic-topic h2 {
  font-size: clamp(1.18rem, 1.5vw, 1.45rem);
  text-wrap: balance;
}

.halcyonic-topic h2 a,
.story-card h3 a,
.team-card h3 a,
.halcyonic-sidebar .link-list li a,
#footer a {
  text-decoration: none;
}

.halcyonic-page-lede {
  padding: 3.35rem 0 1.35rem;
}

.halcyonic-page-lede header {
  max-width: 52rem;
}

.halcyonic-page-lede h1,
.halcyonic-page-lede h2 {
  font-size: clamp(2.1rem, 4.7vw, 4.75rem);
  line-height: 1.01;
  margin-bottom: 0.75rem;
  max-width: 12ch;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.halcyonic-page-lede p {
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 56ch;
}

.story-grid .row {
  row-gap: 1.6rem;
}

.page-prose {
  padding: 2rem 2rem 2.1rem;
}

.stat-strip article,
.team-card {
  padding: 1.25rem 1.2rem;
}

.team-card h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.story-card {
  border-radius: 26px;
}

.story-card__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.2rem 1.25rem 1.4rem;
}

.story-card__meta {
  font-size: 0.74rem;
  margin-bottom: 0;
}

.story-card h3 {
  font-size: clamp(1.08rem, 1.3vw, 1.28rem);
  line-height: 1.2;
  margin-bottom: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.story-card__excerpt {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

#content .col-8 > section,
#content .col-9 > section,
#content .col-4 > section {
  padding: 2.1rem;
}

@media screen and (min-width: 981px) {
  .halcyonic-sidebar {
    position: sticky;
    top: 1.35rem;
  }
}

.halcyonic-sidebar .link-list li a {
  display: block;
  padding: 0.22rem 0;
}

.halcyonic-article-shell,
.halcyonic-related-posts {
  padding: 2.15rem !important;
}

.halcyonic-article-shell .entry-thumbnail {
  margin-bottom: 1.65rem !important;
}

.entry-content {
  font-size: clamp(1.02rem, 1vw, 1.1rem);
  line-height: 1.84;
  margin: 0 auto;
  max-width: 68ch;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  text-wrap: balance;
}

.halcyonic-related-posts h2 {
  font-size: clamp(1.55rem, 2vw, 1.9rem);
}

#copyright {
  text-align: center;
}

@media screen and (max-width: 980px) {
  .container {
    width: min(var(--container-max), calc(100% - 2.25rem));
  }

  #header {
    text-align: left;
  }

  #header > .container:first-child {
    display: block;
  }

  #page-wrapper {
    padding-top: 0;
  }

  #titleBar,
  #navPanel {
    display: none !important;
  }

  body.navPanel-visible #page-wrapper,
  body.navPanel-visible #titleBar,
  body.navPanel-visible #navPanel {
    transform: none;
  }

  #header .col-12 {
    grid-template-areas:
      "lang"
      "logo"
      "nav";
    grid-template-columns: 1fr;
    justify-items: start;
    row-gap: 0.95rem;
  }

  #logo {
    max-width: none;
    white-space: normal;
    text-wrap: balance;
  }

  #nav,
  .halcyonic-language-nav {
    justify-content: flex-start;
    justify-self: stretch;
    max-width: none;
  }

  #nav {
    align-self: start;
    width: 100%;
  }

  #nav {
    gap: 1rem 1.1rem;
    padding-top: 0.15rem;
  }

  #banner {
    padding-top: 3rem;
  }

  #banner .imp-medium {
    justify-content: flex-start;
  }

  .halcyonic-hero-categories {
    max-width: 100%;
  }

  .halcyonic-page-lede h1,
  .halcyonic-page-lede h2 {
    max-width: 14ch;
  }
}

@media screen and (max-width: 736px) {
  html,
  body,
  #page-wrapper {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    max-width: 100%;
    width: calc(100% - 1.5rem) !important;
  }

  #logo {
    font-size: clamp(1.9rem, 10vw, 2.55rem);
    max-width: 9ch;
  }

  #nav {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: 1fr;
    padding-top: 0;
    width: 100%;
  }

  .halcyonic-language-nav {
    gap: 0.35rem 0.65rem;
  }

  #nav a {
    min-width: 0;
    padding: 0.6rem 0;
  }

  #features {
    margin-top: -0.5rem;
  }

  .halcyonic-page-lede h1,
  .halcyonic-page-lede h2 {
    font-size: clamp(1.95rem, 11vw, 3rem);
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .halcyonic-page-lede p {
    font-size: 0.98rem;
  }

  .story-card__excerpt {
    -webkit-line-clamp: 5;
  }

  #content .col-8 > section,
  #content .col-9 > section,
  #content .col-4 > section,
  .halcyonic-article-shell,
  .halcyonic-related-posts {
    padding: 1.25rem !important;
  }
}

/* Mobile header hardening: keep language, brand, and nav on separate layers. */
@media screen and (max-width: 980px) {
  #header {
    overflow: hidden;
    text-align: left;
  }

  #header > .container {
    padding: 0.85rem 0 1.25rem;
  }

  #header .col-12 {
    align-items: flex-start !important;
    display: flex !important;
    flex-direction: column;
    gap: 0.85rem;
  }

  .halcyonic-language-nav {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 0.45rem;
    justify-content: flex-start !important;
    order: 1;
    width: 100%;
  }

  .halcyonic-language-nav a {
    min-height: 38px;
    min-width: 38px;
  }

  #header h1,
  #header .site-title {
    display: block;
    line-height: 0.96;
    margin: 0;
    order: 2;
    width: 100%;
  }

  #logo {
    display: inline-block;
    font-size: clamp(2.35rem, 11vw, 3.55rem);
    line-height: 0.96;
    max-width: 7.4ch;
    white-space: normal;
    word-break: normal;
  }

  #header #nav {
    align-self: stretch !important;
    bottom: auto !important;
    display: grid !important;
    gap: 0.5rem 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch !important;
    justify-items: stretch;
    margin: 0 !important;
    order: 3;
    padding-top: 0.15rem;
    position: static !important;
    right: auto !important;
    top: auto !important;
    width: 100%;
  }

  #header #nav a {
    border-top: 1px solid rgba(255, 247, 238, 0.34);
    display: flex !important;
    font-size: clamp(0.76rem, 3.4vw, 0.9rem);
    justify-content: center;
    letter-spacing: 0.14em;
    margin-left: 0 !important;
    min-height: 44px;
    padding: 0.6rem 0;
    text-align: center;
    width: 100%;
  }

  #header #nav a::after {
    display: none;
  }
}

@media screen and (max-width: 420px) {
  #logo {
    font-size: clamp(2.15rem, 14vw, 3.2rem);
    max-width: 7ch;
  }

  #header #nav {
    gap: 0.35rem 0.55rem;
    grid-template-columns: 1fr;
  }

  #header #nav a {
    letter-spacing: 0.11em;
  }

  .halcyonic-page-lede h1,
  .halcyonic-page-lede h2 {
    font-size: clamp(2rem, 9.5vw, 2.65rem);
  }
}

@media screen and (max-width: 736px) {
  html,
  body,
  #page-wrapper {
    max-width: 100%;
    overflow-x: hidden;
  }

  #header #nav {
    grid-template-columns: 1fr !important;
  }

  .container {
    max-width: 100%;
    width: calc(100% - 1.5rem) !important;
  }

  .halcyonic-page-lede h1,
  .halcyonic-page-lede h2 {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media screen and (max-width: 980px) {
  #header {
    overflow: visible;
  }

  #header #nav {
    grid-template-columns: 1fr !important;
    max-width: 18rem;
  }

  #header #nav .halcyonic-menu {
    width: 100%;
  }

  #header #nav .halcyonic-menu summary {
    border-top: 1px solid rgba(255, 247, 238, 0.34);
    justify-content: center;
    min-height: 44px;
    width: 100%;
  }

  #header #nav .halcyonic-menu__links {
    left: auto;
    margin-top: 0.45rem;
    min-width: min(18rem, calc(100vw - 2.5rem));
    position: static;
    right: auto;
    width: 100%;
  }

  #header #nav .halcyonic-menu__category-grid {
    grid-template-columns: 1fr;
  }

  #header #nav .halcyonic-menu__links a {
    border-top: 0 !important;
    font-size: 0.72rem;
    justify-content: flex-start;
    letter-spacing: 0.12em;
    min-height: 38px;
    padding: 0.35rem 0.7rem;
  }
}

@media screen and (max-width: 736px) {
  .halcyonic-category-showcase {
    border-radius: 1.2rem;
    padding: 1rem;
  }

  .halcyonic-category-showcase__header {
    align-items: start;
    flex-direction: column;
  }

  #footer .halcyonic-footer-category-grid {
    grid-template-columns: 1fr;
  }

  .halcyonic-section-link {
    white-space: normal;
  }

  .weight-converter-tool__grid {
    grid-template-columns: 1fr;
  }

  .weight-converter-tool__result output {
    font-size: clamp(2rem, 13vw, 3.35rem);
  }

  .halcyonic-convert-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  #banner {
    padding: 2.35rem 0 3rem;
  }

  #banner p {
    max-width: 12ch;
  }

  .halcyonic-hero-category-grid {
    grid-template-columns: 1fr;
  }

  .halcyonic-hero-category {
    min-height: 3.85rem;
  }

  .halcyonic-hero-category strong {
    white-space: normal;
  }
}

.halcyonic-home-overview .halcyonic-topic h2,
.halcyonic-home-overview .halcyonic-topic p {
  color: #34302d !important;
  text-shadow: none !important;
}

/* E-E-A-T: "updated" meta line in the page lede */
.halcyonic-updated {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0.35rem 0 0;
  text-transform: uppercase;
}

/* Hero H1 on home pages (brand colour on dark header) */
.halcyonic-hero-title {
  color: #fff7ee;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 0.85rem;
}
