/* Opt-in theme: data-typography="legacy" restores the original declarations
   and sizing. Keep the old faces in style.css for reversible rollout. */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/duhallow/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

html[data-typography="duhallow"] {
  --font-heading: "Manrope", Arial, sans-serif;
  --font-body: "Manrope", Arial, sans-serif;
}

html[data-typography="duhallow"] body,
html[data-typography="duhallow"] #app,
html[data-typography="duhallow"] .leaflet-container,
html[data-typography="duhallow"] input,
html[data-typography="duhallow"] select,
html[data-typography="duhallow"] textarea,
html[data-typography="duhallow"] button {
  font-family: var(--font-body);
}

html[data-typography="duhallow"] :is(h1, h2, h3, h4, h5, h6,
  .special-header, .news-title, .signup-header, .signup-form-header,
  .trails-details .heading, .waymarking-heading, .accordion-heading,
  .modal-award-heading, .blog-section .heading) {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

html[data-typography="duhallow"] .special-header {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: none;
  -webkit-text-stroke-width: 0;
}

/* Keep both news labels in normal flow, above the decorative green edge. */
html[data-typography="duhallow"] .full-width-image-section.news {
  margin-top: 0;
  padding: 2rem 0 100px;
  background-image: none;
}

html[data-typography="duhallow"] .full-width-image-section.news::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: url("../img/Sep3.svg") center top / cover no-repeat;
  pointer-events: none;
}

html[data-typography="duhallow"] .full-width-image-section .news-header {
  margin-top: 0;
}

html[data-typography="duhallow"] .news-subtext {
  margin: 0.75rem 0 0;
}

html[data-typography="duhallow"] .news-section.pb-15 {
  margin-top: 0;
}

html[data-typography="duhallow"] .full-width-image-section .adventure-header {
  margin-top: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.2;
}

html[data-typography="duhallow"] .full-width-image-section.adventure {
  padding-top: 5rem;
}

html[data-typography="duhallow"] .adventure-subtext {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

html[data-typography="duhallow"] .signup-image-column .registerSubHeading {
  display: block;
  margin-top: 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

html[data-typography="duhallow"] .signup-image-column {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

html[data-typography="duhallow"] :is(.signup-header, .signup-form-header,
  .modal-award-heading, .blog-section .heading, .accordion-heading) {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

html[data-typography="duhallow"] :is(.news-title, .trails-details .heading,
  .waymarking-heading) {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

html[data-typography="duhallow"] :is(.adventure-subtext, .news-subtext,
  .news-desc, .signup-text, .trails-details .paragraph, .support-text,
  .modal-award-text) {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  font-weight: 400;
  line-height: 1.55;
}

html[data-typography="duhallow"] :is(.news-date, .footer-link, .contact-link,
  .footer-section ul li, .footer-section ul li a, .trails-details .sub-heading,
  .signup-section form .form-control, .waymarking-heading span) {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
}

html[data-typography="duhallow"] :is(.btn, button, .menu-text, .footer-title) {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

html[data-typography="duhallow"] :is(.btn, .resume-button) {
  font-size: 1rem;
  white-space: normal;
}

html[data-typography="duhallow"] .menu-text {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

html[data-typography="duhallow"] .completed-trails-table .completed-trails-col,
html[data-typography="duhallow"] .completed-trails-table .completed-trails-col-grade {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
