:root {
  --hls-ink: #20272b;
  --hls-paper: #f5f2ea;
  --hls-water: #b2cecf;
  --hls-olive: #979265;
  --hls-ochre: #c9ac80;
  --hls-embers: #c9794e;
}

.hls-dynamic { color: var(--hls-ink); }
.hls-studio-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: #aeb4b6; border: 1px solid #aeb4b6; }
.hls-post-card { padding: clamp(22px,3vw,38px); background: #fff; }
.hls-post-card img { display: block; width: 100%; height: auto; margin: 0 0 24px; }
.hls-post-card h3 { margin: 16px 0 12px; font-family: Georgia,"Times New Roman",serif; font-size: clamp(25px,3vw,40px); font-weight: 400; line-height: 1.05; }
.hls-post-card h3 a { color: inherit; text-decoration: none; }
.hls-kicker { margin: 0; color: #4e5b62; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hls-text-link { display: inline-block; margin-top: 14px; padding-bottom: 4px; border-bottom: 1px solid currentColor; color: inherit; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.hls-join-form { padding: clamp(22px,4vw,42px); background: #fff; color: var(--hls-ink); }
.hls-form-guidance,.hls-form-notice { margin: 14px 0 0; font-size: 12px; line-height: 1.5; }

@media (max-width: 780px) { .hls-studio-grid { grid-template-columns: 1fr; } }
.hlsd-site-shell,
.hlsd-support-footer {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  font-family: Arial, Helvetica, sans-serif;
}

html:has(body.hlsd-managed), body.hlsd-managed { overflow-x: clip; }

/* Managed pages use one plugin-owned shell. The theme remains untouched and
   returns immediately if the plugin is deactivated. */
body.hlsd-managed .wp-site-blocks > header:not(.hlsd-site-shell),
body.hlsd-managed header.wp-block-template-part:not(.hlsd-site-shell),
body.hlsd-managed .wp-site-blocks > footer:not(.hlsd-support-footer),
body.hlsd-managed footer.wp-block-template-part:not(.hlsd-support-footer),
body.hlsd-managed footer:not(.hlsd-support-footer) {
  display: none !important;
}

body.hlsd-managed.page .wp-block-post-title,
body.hlsd-managed.page .entry-header > .entry-title,
body.hlsd-managed.single-post .wp-block-post-title,
body.hlsd-managed.single-post .wp-block-post-author-name,
body.hlsd-managed.single-post .wp-block-post-date,
body.hlsd-managed.single-post .wp-block-post-terms {
  display: none !important;
}

body.hlsd-managed .hlsd-site-shell {
  margin-top: 0;
}

.hlsd-site-shell {
  position: relative;
  z-index: 20;
  background: #f6f3eb;
  border-bottom: 1px solid #d4ccbc;
  color: #111;
}

.hlsd-shell-inner {
  max-width: 1240px;
  min-height: 82px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.hlsd-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #111;
  text-decoration: none;
  font: 700 16px/1.2 Georgia, serif;
}

.hlsd-shell-brand img { width: 76px; height: 76px; object-fit: contain; background: transparent; }
.hlsd-site-shell nav { display: flex; align-items: center; justify-content: flex-end; gap: 22px; flex-wrap: wrap; }
.hlsd-site-shell nav a { color: #111; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .055em; }
.hlsd-site-shell nav a:hover, .hlsd-site-shell nav a:focus { text-decoration: underline; text-underline-offset: 5px; }
.hlsd-site-shell .hlsd-shell-join { border: 1px solid #111; padding: 11px 14px; }
.hlsd-approved-series { margin: 0; }
.hlsd-approved-series img { display: block; width: 100%; height: auto; max-height: 720px; object-fit: cover; }

.hlsd-channel-hero {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(72px,10vw,132px) 70px 56px;
  box-sizing: border-box;
  background: #f5f2ea;
  color: #20272b;
}
.hlsd-channel-hero h1 { max-width: 760px; margin: 12px 0 22px; font: 400 clamp(44px,7vw,78px)/.98 Georgia,serif; }
.hlsd-channel-hero > p:not(.hlsd-archive-kicker) { max-width: 690px; font-size: 18px; line-height: 1.65; }
.hlsd-channel-links { display: flex; gap: 22px; margin-top: 28px; }
.hlsd-channel-links a { color: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hlsd-empty { max-width: 840px; margin: 0 auto 80px; padding: 30px; }

.hlsd-journal-archive {
  max-width: 980px;
  margin: -40px auto 80px;
  padding: 58px 70px 70px;
  box-sizing: border-box;
  color: #17201f;
  background: #ebe6da;
}
.hlsd-archive-kicker { margin: 0 0 12px; color: #8a7031; font: 700 12px/1.2 Arial, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.hlsd-journal-archive > h2 { margin: 0 0 34px; font: 400 clamp(35px,5vw,58px)/1 Georgia,serif; }
.hlsd-archive-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid #8e968e; }
.hlsd-archive-grid article { padding: 28px 30px 30px 0; border-bottom: 1px solid #8e968e; }
.hlsd-archive-grid article:nth-child(even) { padding-left: 30px; border-left: 1px solid #8e968e; }
.hlsd-archive-grid time { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hlsd-archive-grid h3 { margin: 12px 0; font: 400 29px/1.08 Georgia,serif; }
.hlsd-archive-grid h3 a { color: inherit; text-decoration: none; }
.hlsd-archive-grid h2 { margin: 12px 0; font: 400 29px/1.08 Georgia,serif; }
.hlsd-archive-grid h2 a { color: inherit; text-decoration: none; }
.hlsd-archive-grid p { font-size: 16px; line-height: 1.6; }
.hlsd-text-link { color: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.hlsd-support-footer {
  background: #101212;
  color: #fff;
  padding: 54px max(28px, calc((100% - 1120px) / 2));
  display: grid;
  grid-template-columns: 1.4fr repeat(3,1fr);
  gap: 36px;
}
.hlsd-support-footer div { display: flex; flex-direction: column; gap: 10px; }
.hlsd-support-footer span { color: #c9cfca; font-size: 13px; }
.hlsd-support-footer nav { display: flex; flex-direction: column; gap: 10px; }
.hlsd-support-footer a { color: #fff; font-size: 12px; text-decoration: none; }
.hlsd-support-footer a:hover, .hlsd-support-footer a:focus { text-decoration: underline; }

.hls-inside-page .hls-tabs a { color: #111; text-decoration: none; }
.hls-inside-page .hls-tabs a:hover, .hls-inside-page .hls-tabs a:focus { text-decoration: underline; text-underline-offset: 6px; }
.roots-hero-img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }

.hlsd-article-context { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 46px; padding-bottom: 14px; border-bottom: 1px solid #b9b4a8; font: 700 11px/1.3 Arial,sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.hlsd-article-context a { color: inherit; }

@media (max-width: 900px) {
  .hlsd-shell-inner { align-items: flex-start; padding-inline: 20px; }
  .hlsd-site-shell nav { gap: 12px 16px; }
  .hlsd-support-footer { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .hlsd-shell-inner { display: block; }
  .hlsd-site-shell nav { margin-top: 14px; justify-content: flex-start; }
  .hlsd-site-shell nav a { font-size: 11px; }
  .hlsd-journal-archive { padding: 42px 24px; }
  .hlsd-channel-hero { padding: 58px 24px 42px; }
  .hlsd-archive-grid, .hlsd-support-footer { grid-template-columns: 1fr; }
  .hlsd-archive-grid article:nth-child(even) { padding-left: 0; border-left: 0; }
}
