/*
Theme Name: HelpingDude Authority
Theme URI: https://helpingdude.com/
Author: HelpingDude
Author URI: https://helpingdude.com/about/
Description: A lightweight, accessible editorial WordPress theme built for HelpingDude's reviews, guides, affiliate content, newsletter growth, and AdSense-friendly reading experience.
Version: 0.7.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: helpingdude-authority
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --hd-navy-950: #071827;
  --hd-navy-900: #0c2236;
  --hd-navy-800: #15334c;
  --hd-teal-600: #087f8c;
  --hd-teal-500: #0aa6a6;
  --hd-blue-600: #2868d7;
  --hd-coral-500: #ef6a67;
  --hd-ink: #15202b;
  --hd-muted: #5b6875;
  --hd-line: #dce4ea;
  --hd-soft: #f2f7f8;
  --hd-warm: #fff8f3;
  --hd-white: #ffffff;
  --hd-success: #16794f;
  --hd-shadow-sm: 0 8px 24px rgba(7, 24, 39, 0.08);
  --hd-shadow-md: 0 18px 50px rgba(7, 24, 39, 0.12);
  --hd-radius-sm: 10px;
  --hd-radius-md: 18px;
  --hd-radius-lg: 28px;
  --hd-container: 1180px;
  --hd-reading: 760px;
  --hd-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--hd-white);
  color: var(--hd-ink);
  font-family: var(--hd-font);
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .hd-site-header {
  top: 32px;
}

img,
svg,
video {
  display: block;
  height: auto;
  max-width: 100%;
}

figure {
  margin: 0 0 1.8rem;
}

a {
  color: var(--hd-blue-600);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--hd-teal-600);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input[type="submit"],
.hd-button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #f3b536;
  outline-offset: 3px;
}

::selection {
  background: #c9f3ef;
  color: var(--hd-navy-950);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  background: var(--hd-white);
  border-radius: 8px;
  box-shadow: var(--hd-shadow-sm);
  color: var(--hd-navy-950);
  display: block;
  height: auto;
  left: 16px;
  padding: 12px 18px;
  top: 16px;
  width: auto;
  z-index: 100000;
}

.hd-container {
  margin-inline: auto;
  max-width: var(--hd-container);
  padding-inline: 24px;
  width: 100%;
}

.hd-section {
  padding-block: clamp(52px, 7vw, 92px);
}

.hd-section--soft {
  background: var(--hd-soft);
}

.hd-section--warm {
  background: var(--hd-warm);
}

.hd-section-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 30px;
}

.hd-eyebrow {
  color: var(--hd-teal-600);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--hd-navy-950);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0 0 0.75em;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 4.15rem);
}

h2 {
  font-size: clamp(1.65rem, 3.3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}

p {
  margin: 0 0 1.35em;
}

.hd-lede {
  color: var(--hd-muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
  max-width: 720px;
}

.hd-button {
  align-items: center;
  background: var(--hd-navy-950);
  border: 2px solid var(--hd-navy-950);
  border-radius: 999px;
  color: var(--hd-white);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 750;
  gap: 9px;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.hd-button:hover {
  background: var(--hd-teal-600);
  border-color: var(--hd-teal-600);
  color: var(--hd-white);
  transform: translateY(-1px);
}

.hd-button--light {
  background: var(--hd-white);
  border-color: var(--hd-white);
  color: var(--hd-navy-950);
}

.hd-button--outline {
  background: transparent;
  color: var(--hd-navy-950);
}

.hd-text-link {
  font-weight: 750;
}

/* Header */
.hd-site-header {
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 228, 234, 0.78);
  box-shadow: 0 8px 30px rgba(7, 24, 39, 0.045);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.hd-header-inner {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: auto 1fr auto;
  min-height: 82px;
}

.hd-branding {
  align-items: center;
  display: flex;
  min-width: 230px;
}

.hd-brand-lockup {
  align-items: center;
  color: var(--hd-navy-950);
  display: inline-flex;
  gap: 11px;
  text-decoration: none;
}

.hd-brand-lockup:hover {
  color: var(--hd-navy-950);
}

.hd-brand-mark {
  align-items: center;
  background: linear-gradient(145deg, var(--hd-navy-950), var(--hd-teal-600));
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(8, 127, 140, 0.2);
  color: var(--hd-white);
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 0.82rem;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  letter-spacing: -0.06em;
  position: relative;
  width: 44px;
}

.hd-brand-mark::after {
  background: var(--hd-coral-500);
  border: 2px solid var(--hd-white);
  border-radius: 50%;
  content: "";
  height: 9px;
  position: absolute;
  right: -2px;
  top: -2px;
  width: 9px;
}

.hd-brand-copy {
  display: grid;
  gap: 1px;
}

.hd-site-title {
  color: var(--hd-navy-950);
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hd-site-title span {
  color: var(--hd-teal-600);
}

.hd-brand-tagline {
  color: var(--hd-muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hd-primary-nav {
  justify-self: center;
}

.hd-primary-nav ul {
  align-items: center;
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hd-primary-nav li {
  position: relative;
}

.hd-primary-nav a {
  border-radius: 8px;
  color: var(--hd-navy-900);
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 11px;
  text-decoration: none;
}

.hd-primary-nav a:hover,
.hd-primary-nav .current-menu-item > a,
.hd-primary-nav .current-menu-ancestor > a {
  background: var(--hd-soft);
  color: var(--hd-teal-600);
}

.hd-primary-nav .sub-menu {
  align-items: stretch;
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: 12px;
  box-shadow: var(--hd-shadow-md);
  display: none;
  left: 0;
  min-width: 230px;
  padding: 8px;
  position: absolute;
  top: 100%;
}

.hd-primary-nav li:hover > .sub-menu,
.hd-primary-nav li:focus-within > .sub-menu {
  display: block;
}

.hd-header-actions {
  align-items: center;
  display: flex;
  gap: 9px;
}

.hd-search-toggle {
  align-items: center;
  display: flex;
  position: relative;
}

.hd-search-toggle summary {
  align-items: center;
  border: 1px solid var(--hd-line);
  border-radius: 50%;
  color: var(--hd-navy-950);
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  list-style: none;
  width: 44px;
}

.hd-search-toggle summary::-webkit-details-marker {
  display: none;
}

.hd-search-panel {
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: 14px;
  box-shadow: var(--hd-shadow-md);
  padding: 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(380px, calc(100vw - 32px));
}

.hd-menu-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--hd-line);
  border-radius: 10px;
  color: var(--hd-navy-950);
  display: none;
  height: 46px;
  justify-content: center;
  padding: 0;
  width: 46px;
}

.hd-menu-toggle-lines,
.hd-menu-toggle-lines::before,
.hd-menu-toggle-lines::after {
  background: currentColor;
  content: "";
  display: block;
  height: 2px;
  position: relative;
  width: 20px;
}

.hd-menu-toggle-lines::before {
  position: absolute;
  top: -6px;
}

.hd-menu-toggle-lines::after {
  position: absolute;
  top: 6px;
}

/* Search form */
.hd-search-form {
  align-items: center;
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: 999px;
  display: flex;
  overflow: hidden;
  padding: 6px;
}

.hd-search-form:focus-within {
  border-color: var(--hd-teal-600);
  box-shadow: 0 0 0 4px rgba(10, 166, 166, 0.14);
}

.hd-search-form input[type="search"] {
  background: transparent;
  border: 0;
  color: var(--hd-ink);
  flex: 1;
  min-width: 0;
  outline: 0;
  padding: 10px 14px;
}

.hd-search-form button {
  background: var(--hd-navy-950);
  border: 0;
  border-radius: 999px;
  color: var(--hd-white);
  font-size: 0.88rem;
  font-weight: 750;
  min-height: 42px;
  padding: 8px 18px;
}

/* Hero */
.hd-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(10, 166, 166, 0.2), transparent 28%),
    radial-gradient(circle at 15% 80%, rgba(239, 106, 103, 0.13), transparent 30%),
    linear-gradient(135deg, #f5fbfb 0%, #ffffff 48%, #fff7f2 100%);
  overflow: hidden;
  padding-block: clamp(74px, 10vw, 132px);
  position: relative;
}

.hd-hero::after {
  border: 1px solid rgba(8, 127, 140, 0.18);
  border-radius: 50%;
  content: "";
  height: 440px;
  position: absolute;
  right: -170px;
  top: -170px;
  width: 440px;
}

.hd-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(42px, 7vw, 90px);
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  position: relative;
  z-index: 1;
}

.hd-hero h1 {
  max-width: 820px;
}

.hd-hero h1 .hd-accent {
  color: var(--hd-teal-600);
}

.hd-hero-search {
  margin-block: 30px 22px;
  max-width: 680px;
}

.hd-hero-search .hd-search-form {
  border: 1px solid rgba(8, 127, 140, 0.24);
  box-shadow: var(--hd-shadow-sm);
  padding: 8px;
}

.hd-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hd-trust-list li {
  align-items: center;
  color: var(--hd-muted);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 650;
  gap: 8px;
}

.hd-trust-list li::before {
  background: var(--hd-teal-500);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(10, 166, 166, 0.13);
  content: "";
  height: 7px;
  width: 7px;
}

.hd-hero-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(220, 228, 234, 0.9);
  border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow-md);
  padding: 28px;
}

.hd-hero-card-title {
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.hd-trending-list {
  display: grid;
  gap: 13px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hd-trending-list a {
  align-items: start;
  border-radius: 12px;
  color: var(--hd-navy-900);
  display: grid;
  font-size: 0.93rem;
  font-weight: 700;
  gap: 12px;
  grid-template-columns: 28px 1fr;
  padding: 10px;
  text-decoration: none;
}

.hd-trending-list a:hover {
  background: var(--hd-soft);
}

.hd-trending-number {
  align-items: center;
  background: var(--hd-navy-950);
  border-radius: 50%;
  color: var(--hd-white);
  display: inline-flex;
  font-size: 0.72rem;
  height: 28px;
  justify-content: center;
  width: 28px;
}

/* Topic cards */
.hd-topic-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hd-topic-card {
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-md);
  box-shadow: 0 1px 0 rgba(7, 24, 39, 0.02);
  color: var(--hd-navy-950);
  min-height: 210px;
  padding: 26px;
  position: relative;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.hd-topic-card:hover {
  box-shadow: var(--hd-shadow-sm);
  color: var(--hd-navy-950);
  transform: translateY(-4px);
}

.hd-topic-icon {
  align-items: center;
  background: var(--hd-soft);
  border-radius: 14px;
  color: var(--hd-teal-600);
  display: inline-flex;
  font-size: 1.35rem;
  height: 48px;
  justify-content: center;
  margin-bottom: 24px;
  width: 48px;
}

.hd-topic-card h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.hd-topic-card p {
  color: var(--hd-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

/* Post cards */
.hd-post-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hd-post-card {
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-md);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.hd-post-card:hover {
  box-shadow: var(--hd-shadow-sm);
  transform: translateY(-3px);
}

.hd-post-card-media {
  aspect-ratio: 16 / 9;
  background: var(--hd-soft);
  display: block;
  overflow: hidden;
}

.hd-post-card-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
  width: 100%;
}

.hd-post-card:hover .hd-post-card-media img {
  transform: scale(1.025);
}

.hd-post-card-placeholder {
  align-items: center;
  background: linear-gradient(135deg, var(--hd-soft), #e2f3f1);
  color: var(--hd-teal-600);
  display: flex;
  font-size: 2rem;
  height: 100%;
  justify-content: center;
}

.hd-post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.hd-post-card h3 {
  font-size: 1.18rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.hd-post-card h3 a {
  color: inherit;
  text-decoration: none;
}

.hd-post-card-excerpt {
  color: var(--hd-muted);
  font-size: 0.89rem;
  line-height: 1.58;
}

.hd-post-card-meta {
  align-items: center;
  color: var(--hd-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
}

.hd-post-card-meta a {
  color: var(--hd-teal-600);
  font-weight: 700;
  text-decoration: none;
}

.hd-feature-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}

.hd-feature-main .hd-post-card {
  height: 100%;
}

.hd-feature-main .hd-post-card-media {
  aspect-ratio: 16 / 8.3;
}

.hd-feature-main .hd-post-card h3 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.hd-feature-stack {
  display: grid;
  gap: 18px;
}

.hd-feature-stack .hd-post-card {
  display: grid;
  grid-template-columns: 128px 1fr;
}

.hd-feature-stack .hd-post-card-media {
  aspect-ratio: auto;
  height: 100%;
}

.hd-feature-stack .hd-post-card-body {
  padding: 17px;
}

.hd-feature-stack .hd-post-card h3 {
  font-size: 0.98rem;
}

.hd-feature-stack .hd-post-card-excerpt {
  display: none;
}

/* Tools and trust */
.hd-tools-panel,
.hd-trust-panel {
  border-radius: var(--hd-radius-lg);
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  overflow: hidden;
  padding: clamp(34px, 6vw, 66px);
}

.hd-tools-panel {
  background: var(--hd-navy-950);
  color: rgba(255, 255, 255, 0.78);
}

.hd-tools-panel h2,
.hd-tools-panel h3 {
  color: var(--hd-white);
}

.hd-tools-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hd-tools-list li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--hd-white);
  font-size: 0.9rem;
  font-weight: 650;
  padding: 13px 16px;
}

.hd-tools-list a {
  align-items: center;
  color: inherit;
  display: flex;
  justify-content: space-between;
  text-decoration: none;
}

.hd-tools-list li:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.hd-trust-panel {
  background: var(--hd-warm);
  border: 1px solid #f3dfd1;
}

.hd-check-list {
  display: grid;
  gap: 13px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hd-check-list li {
  align-items: start;
  display: grid;
  font-size: 0.92rem;
  gap: 11px;
  grid-template-columns: 22px 1fr;
}

.hd-check-list li::before {
  align-items: center;
  background: #dff5e9;
  border-radius: 50%;
  color: var(--hd-success);
  content: "✓";
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  width: 22px;
}

/* Newsletter */
.hd-newsletter {
  background:
    radial-gradient(circle at 86% 20%, rgba(10, 166, 166, 0.3), transparent 26%),
    var(--hd-navy-950);
  border-radius: var(--hd-radius-lg);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(34px, 6vw, 64px);
}

.hd-newsletter h2 {
  color: var(--hd-white);
  margin-bottom: 12px;
}

.hd-newsletter-inner {
  align-items: center;
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
}

.hd-newsletter:not(.hd-newsletter--kit) .hd-newsletter-form form,
.hd-newsletter:not(.hd-newsletter--kit) .hd-newsletter-form .wpcf7-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
}

.hd-newsletter:not(.hd-newsletter--kit) .hd-newsletter-form label {
  color: var(--hd-white);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
}

.hd-newsletter:not(.hd-newsletter--kit) .hd-newsletter-form input[type="email"],
.hd-newsletter:not(.hd-newsletter--kit) .hd-newsletter-form input[type="text"] {
  background: var(--hd-white);
  border: 0;
  border-radius: 999px;
  margin-top: 6px;
  min-height: 50px;
  padding: 12px 18px;
  width: 100%;
}

.hd-newsletter:not(.hd-newsletter--kit) .hd-newsletter-form input[type="submit"],
.hd-newsletter:not(.hd-newsletter--kit) .hd-newsletter-form button {
  background: var(--hd-coral-500);
  border: 0;
  border-radius: 999px;
  color: var(--hd-white);
  font-weight: 800;
  min-height: 50px;
  padding: 11px 22px;
}

.hd-newsletter-note {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
  margin: 10px 0 0;
}

.hd-newsletter-admin-note {
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  color: var(--hd-white);
  font-size: 0.82rem;
  padding: 15px;
}

.hd-newsletter-placement {
  scroll-margin-top: 110px;
}

.hd-newsletter-placement--article {
  margin-block: 42px;
}

.hd-newsletter-placement--tools {
  background: linear-gradient(180deg, var(--hd-white), #f7fbfc);
}

.hd-newsletter--kit {
  background: transparent;
  border-radius: 0;
  color: inherit;
  padding: 0;
}

.hd-newsletter--kit .hd-newsletter-form {
  margin-inline: auto;
  max-width: 760px;
  width: 100%;
}

.hd-newsletter--kit .formkit-form {
  margin: 0 auto !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Page headers and archives */
.hd-page-header {
  background: var(--hd-soft);
  border-bottom: 1px solid var(--hd-line);
  padding-block: clamp(48px, 7vw, 84px);
}

.hd-page-header h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  max-width: 900px;
}

.hd-page-description {
  color: var(--hd-muted);
  max-width: 760px;
}

.hd-breadcrumbs {
  color: var(--hd-muted);
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.hd-breadcrumbs a {
  color: var(--hd-muted);
}

.hd-archive-content {
  padding-block: 58px 90px;
}

.hd-pagination {
  margin-top: 48px;
}

.hd-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hd-pagination .page-numbers {
  align-items: center;
  border: 1px solid var(--hd-line);
  border-radius: 9px;
  color: var(--hd-navy-950);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  min-width: 44px;
  padding: 0 12px;
  text-decoration: none;
}

.hd-pagination .current,
.hd-pagination a:hover {
  background: var(--hd-navy-950);
  border-color: var(--hd-navy-950);
  color: var(--hd-white);
}

/* Single article */
.hd-article-header {
  background: linear-gradient(180deg, var(--hd-soft), var(--hd-white));
  padding-block: clamp(50px, 8vw, 94px) 34px;
}

.hd-article-header-inner {
  max-width: 960px;
}

.hd-article-header h1 {
  font-size: clamp(2.15rem, 5.4vw, 4.35rem);
  margin-bottom: 22px;
}

.hd-article-meta {
  align-items: center;
  color: var(--hd-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 10px 18px;
}

.hd-author-inline {
  align-items: center;
  display: inline-flex;
  gap: 9px;
}

.hd-author-inline img {
  border-radius: 50%;
}

.hd-author-inline a {
  color: var(--hd-navy-900);
  font-weight: 750;
  text-decoration: none;
}

.hd-article-hero {
  margin: 0 auto;
  max-width: var(--hd-container);
  padding-inline: 24px;
}

.hd-article-hero img {
  aspect-ratio: 16 / 8.4;
  border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow-sm);
  object-fit: cover;
  width: 100%;
}

.hd-article-shell {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) 270px;
  margin-inline: auto;
  max-width: 1100px;
  padding: 58px 24px 90px;
}

.hd-article-main {
  min-width: 0;
}

.hd-affiliate-disclosure {
  background: #fff8e9;
  border: 1px solid #efd89c;
  border-radius: 12px;
  color: #684f15;
  font-size: 0.8rem;
  line-height: 1.55;
  margin-bottom: 28px;
  padding: 14px 16px;
}

.hd-affiliate-disclosure p {
  margin: 0;
}

.hd-entry-content {
  color: #293541;
  font-size: 1.02rem;
  line-height: 1.82;
  max-width: var(--hd-reading);
}

.hd-entry-content > * {
  max-width: 100%;
}

.hd-entry-content h2,
.hd-entry-content h3,
.hd-entry-content h4 {
  scroll-margin-top: 110px;
}

.hd-entry-content h2 {
  margin-top: 2em;
}

.hd-entry-content h3 {
  margin-top: 1.65em;
}

.hd-entry-content ul,
.hd-entry-content ol {
  padding-left: 1.35em;
}

.hd-entry-content li {
  margin-bottom: 0.55em;
}

.hd-entry-content blockquote {
  background: var(--hd-soft);
  border-left: 5px solid var(--hd-teal-500);
  border-radius: 0 12px 12px 0;
  color: var(--hd-navy-900);
  font-size: 1.08rem;
  margin: 2em 0;
  padding: 24px 28px;
}

.hd-entry-content table {
  border-collapse: collapse;
  display: block;
  font-size: 0.9rem;
  margin-block: 2em;
  max-width: 100%;
  overflow-x: auto;
  width: max-content;
}

.hd-entry-content th,
.hd-entry-content td {
  border: 1px solid var(--hd-line);
  min-width: 140px;
  padding: 12px 14px;
  text-align: left;
}

.hd-entry-content th {
  background: var(--hd-navy-950);
  color: var(--hd-white);
}

.hd-entry-content .wp-block-button__link {
  background: var(--hd-navy-950);
  border-radius: 999px;
  font-weight: 750;
}

.hd-entry-content .alignwide {
  margin-left: min(-8vw, -100px);
  max-width: calc(100% + min(16vw, 200px));
  width: calc(100% + min(16vw, 200px));
}

.hd-article-sidebar {
  min-width: 0;
}

.hd-article-sidebar-inner {
  position: sticky;
  top: 106px;
}

.hd-toc {
  background: var(--hd-soft);
  border: 1px solid var(--hd-line);
  border-radius: 14px;
  padding: 18px;
}

.hd-toc summary {
  color: var(--hd-navy-950);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
}

.hd-toc ol {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.hd-toc a {
  color: var(--hd-muted);
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  text-decoration: none;
}

.hd-toc a:hover {
  color: var(--hd-teal-600);
}

.hd-share {
  border-top: 1px solid var(--hd-line);
  margin-top: 24px;
  padding-top: 20px;
}

.hd-share-title {
  color: var(--hd-navy-950);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hd-share-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hd-share-list a,
.hd-share-list button {
  align-items: center;
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: 999px;
  color: var(--hd-navy-900);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 700;
  min-height: 44px;
  padding: 7px 11px;
  text-decoration: none;
}

.hd-share-list a:hover,
.hd-share-list button:hover {
  background: var(--hd-navy-950);
  border-color: var(--hd-navy-950);
  color: var(--hd-white);
}

.hd-share--panel {
  background: var(--hd-soft);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-md);
  margin-top: 34px;
  padding: clamp(20px, 4vw, 30px);
}

.hd-share--panel .hd-share-title {
  font-size: 0.86rem;
  margin-bottom: 14px;
}

.hd-share-status {
  color: var(--hd-teal-700);
  font-size: 0.86rem;
  font-weight: 700;
  margin: 10px 0 0;
  min-height: 1.25em;
}

.hd-tool-share-section {
  padding-block: 0 clamp(44px, 6vw, 72px);
}

.hd-tool-share-section .hd-share--panel {
  margin-top: 0;
}

.hd-ad-slot {
  margin-block: 32px;
  min-height: 90px;
  overflow: hidden;
  text-align: center;
}

.hd-author-box {
  align-items: start;
  background: var(--hd-warm);
  border: 1px solid #f3dfd1;
  border-radius: var(--hd-radius-md);
  display: grid;
  gap: 20px;
  grid-template-columns: 84px 1fr;
  margin-top: 48px;
  padding: 26px;
}

.hd-author-box img {
  border-radius: 50%;
}

.hd-author-box h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.hd-author-box p {
  color: var(--hd-muted);
  font-size: 0.86rem;
  margin: 0;
}

.hd-post-navigation {
  border-block: 1px solid var(--hd-line);
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  margin-top: 38px;
  padding-block: 26px;
}

.hd-post-navigation a {
  color: var(--hd-navy-950);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.hd-post-navigation .nav-next {
  text-align: right;
}

.hd-related {
  margin-top: 58px;
}

.hd-related .hd-post-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Pages and comments */
.hd-page-shell {
  margin-inline: auto;
  max-width: 900px;
  padding: 58px 24px 90px;
}

.hd-page-shell--wide {
  max-width: var(--hd-container);
}

.hd-page-shell--wide .hd-entry-content {
  max-width: none;
}

.hd-comments {
  margin-top: 52px;
}

.hd-comments ol {
  list-style: none;
  padding: 0;
}

.hd-comment {
  border-top: 1px solid var(--hd-line);
  padding-block: 24px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  border: 1px solid var(--hd-line);
  border-radius: 10px;
  padding: 12px;
  width: 100%;
}

.comment-form input[type="submit"] {
  background: var(--hd-navy-950);
  border: 0;
  border-radius: 999px;
  color: var(--hd-white);
  font-weight: 750;
  padding: 12px 22px;
}

.hd-empty-state {
  background: var(--hd-soft);
  border-radius: var(--hd-radius-md);
  padding: 42px;
  text-align: center;
}

/* Footer */
.hd-site-footer {
  background: var(--hd-navy-950);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 62px;
}

.hd-footer-grid {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 0.7fr));
}

.hd-site-footer .hd-site-title,
.hd-site-footer h2,
.hd-site-footer h3 {
  color: var(--hd-white);
}

.hd-footer-brand p {
  font-size: 0.86rem;
  max-width: 360px;
}

.hd-footer-heading {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.hd-footer-links {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hd-footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  text-decoration: none;
}

.hd-footer-links a:hover {
  color: var(--hd-white);
}

.hd-footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  font-size: 0.75rem;
  gap: 20px;
  justify-content: space-between;
  margin-top: 52px;
  padding-block: 22px;
}

.hd-footer-bottom p {
  margin: 0;
}

/* Free buyer tools hub */
.hd-tools-hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(10, 166, 166, 0.13), transparent 31%),
    linear-gradient(145deg, #f7fbfb 0%, #ffffff 56%, #fff8f3 100%);
  border-bottom: 1px solid var(--hd-line);
  padding-block: clamp(58px, 8vw, 104px);
}

.hd-tools-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(36px, 6vw, 76px);
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.hd-tools-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  max-width: 850px;
}

.hd-tools-jump {
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow-md);
  display: grid;
  gap: 10px;
  padding: clamp(24px, 4vw, 34px);
}

.hd-tools-jump a {
  align-items: center;
  background: var(--hd-soft);
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--hd-navy-950);
  display: grid;
  font-size: 0.9rem;
  font-weight: 750;
  gap: 12px;
  grid-template-columns: 38px 1fr;
  min-height: 58px;
  padding: 9px 13px;
  text-decoration: none;
}

.hd-tools-jump a:hover {
  background: var(--hd-white);
  border-color: var(--hd-teal-500);
  color: var(--hd-teal-600);
}

.hd-tools-jump a span {
  align-items: center;
  background: var(--hd-navy-950);
  border-radius: 10px;
  color: var(--hd-white);
  display: inline-flex;
  font-size: 1rem;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.hd-tools-ad {
  margin-block: 28px 0;
}

.hd-tools-section-heading {
  margin-bottom: 38px;
}

.hd-tool-notice {
  background: #fff4d8;
  border: 1px solid #efd28b;
  border-radius: var(--hd-radius-sm);
  color: var(--hd-navy-950);
  padding: 16px 18px;
}

.hd-calculator-stack {
  display: grid;
  gap: 28px;
}

.hd-calculator-card {
  background: var(--hd-soft);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
  display: grid;
  gap: clamp(26px, 5vw, 54px);
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  padding: clamp(24px, 5vw, 52px);
  scroll-margin-top: 110px;
}

.hd-calculator-copy {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: 48px 1fr;
}

.hd-calculator-copy h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  margin-bottom: 12px;
}

.hd-calculator-copy p {
  color: var(--hd-muted);
  font-size: 0.9rem;
  margin: 0;
}

.hd-tool-number {
  align-items: center;
  background: var(--hd-navy-950);
  border-radius: 13px;
  color: var(--hd-white);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  letter-spacing: 0.08em;
  width: 48px;
}

.hd-tool-form {
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-md);
  box-shadow: var(--hd-shadow-sm);
  padding: clamp(20px, 4vw, 30px);
}

.hd-form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hd-tool-form label {
  color: var(--hd-navy-950);
  display: grid;
  font-size: 0.78rem;
  font-weight: 750;
  gap: 7px;
}

.hd-tool-form input,
.hd-tool-form select {
  background: var(--hd-white);
  border: 1px solid #c9d5dd;
  border-radius: 11px;
  color: var(--hd-navy-950);
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}

.hd-tool-form input:hover,
.hd-tool-form select:hover {
  border-color: var(--hd-teal-600);
}

.hd-currency-field {
  margin-bottom: 16px;
  max-width: 230px;
}

.hd-product-compare-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hd-product-compare-grid fieldset {
  border: 1px solid var(--hd-line);
  border-radius: 14px;
  display: grid;
  gap: 13px;
  margin: 0;
  min-width: 0;
  padding: 15px;
}

.hd-product-compare-grid legend {
  color: var(--hd-teal-600);
  font-size: 0.76rem;
  font-weight: 800;
  padding-inline: 5px;
  text-transform: uppercase;
}

.hd-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hd-button--ghost {
  background: transparent;
  border-color: var(--hd-line);
  color: var(--hd-navy-950);
}

.hd-button--ghost:hover {
  background: var(--hd-soft);
  border-color: var(--hd-teal-600);
  color: var(--hd-navy-950);
}

.hd-tool-result {
  background: #e8f7f2;
  border: 1px solid #b9e3d4;
  border-radius: 14px;
  color: var(--hd-navy-950);
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 16px 18px;
}

.hd-tool-result[hidden] {
  display: none;
}

.hd-tool-result strong {
  font-size: 1rem;
}

.hd-tool-result span {
  color: var(--hd-muted);
  font-size: 0.82rem;
}

.hd-specialist-tools {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.hd-specialist-tools h2 {
  margin-bottom: 10px;
}

.hd-specialist-tools p {
  color: var(--hd-muted);
  margin: 0;
  max-width: 780px;
}

.hd-tool-recommendations {
  background: var(--hd-warm);
  border: 1px solid #f3dfd1;
  border-radius: var(--hd-radius-lg);
  padding: clamp(28px, 5vw, 50px);
}

.hd-affiliate-note {
  color: var(--hd-muted);
  font-size: 0.78rem;
  max-width: 760px;
}

.hd-tools-editorial {
  border-top: 1px solid var(--hd-line);
  padding-top: 64px;
}

/* Free Tools directory and standalone calculator pages */
.hd-tools-section-heading > p {
  color: var(--hd-muted);
  font-size: 0.88rem;
  margin: 0;
  max-width: 420px;
}

.hd-tool-directory-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hd-tool-directory-card {
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: clamp(24px, 3vw, 34px);
}

.hd-tool-directory-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.hd-tool-free-badge {
  background: #e8f7f2;
  border: 1px solid #b9e3d4;
  border-radius: 999px;
  color: var(--hd-success);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  text-transform: uppercase;
}

.hd-tool-directory-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  margin-bottom: 12px;
}

.hd-tool-directory-card > p {
  color: var(--hd-muted);
  font-size: 0.86rem;
  margin: 0 0 20px;
}

.hd-mini-feature-list {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}

.hd-mini-feature-list li {
  color: var(--hd-muted);
  font-size: 0.8rem;
  padding-left: 20px;
  position: relative;
}

.hd-mini-feature-list li::before {
  color: var(--hd-teal-600);
  content: "\2713";
  font-weight: 900;
  left: 0;
  position: absolute;
}

.hd-tool-directory-card .hd-button {
  align-self: start;
  gap: 9px;
  margin-top: auto;
}

.hd-tool-benefits {
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
}

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

.hd-tool-benefit-grid > div {
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-md);
  padding: 22px;
}

.hd-tool-benefit-grid strong {
  color: var(--hd-navy-950);
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.hd-tool-benefit-grid p {
  color: var(--hd-muted);
  font-size: 0.78rem;
  margin: 0;
}

.hd-tool-page-hero {
  background:
    radial-gradient(circle at 84% 20%, rgba(10, 166, 166, 0.14), transparent 32%),
    linear-gradient(145deg, #f7fbfb 0%, #ffffff 62%, #fff8f3 100%);
  border-bottom: 1px solid var(--hd-line);
  padding-block: clamp(48px, 7vw, 82px);
}

.hd-tool-page-hero-inner {
  max-width: 990px;
}

.hd-tool-page-hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.5rem);
  max-width: 920px;
}

.hd-tool-page-hero .hd-lede {
  max-width: 850px;
}

.hd-tool-back-link {
  color: var(--hd-teal-600);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-decoration: none;
}

.hd-tool-back-link:hover {
  color: var(--hd-navy-950);
  text-decoration: underline;
}

.hd-tool-work-section {
  padding-top: clamp(38px, 6vw, 76px);
}

.hd-tool-work-grid {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
}

.hd-single-calculator {
  background: var(--hd-soft);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
  padding: clamp(22px, 4vw, 42px);
}

.hd-single-calculator-heading {
  align-items: center;
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
}

.hd-single-calculator-heading h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  margin: 2px 0 0;
}

.hd-tool-symbol {
  align-items: center;
  background: var(--hd-navy-950);
  border-radius: 15px;
  color: var(--hd-white);
  display: inline-flex;
  flex: 0 0 54px;
  font-size: 1.25rem;
  font-weight: 850;
  height: 54px;
  justify-content: center;
}

.hd-tool-side-card {
  background: var(--hd-navy-950);
  border-radius: var(--hd-radius-lg);
  color: rgba(255, 255, 255, 0.76);
  padding: clamp(24px, 4vw, 34px);
  position: sticky;
  top: 110px;
}

.hd-tool-side-card .hd-eyebrow {
  color: #74dddd;
}

.hd-tool-side-card h2 {
  color: var(--hd-white);
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
}

.hd-tool-side-card .hd-check-list {
  font-size: 0.82rem;
  margin-bottom: 24px;
}

.hd-tool-side-card .hd-check-list li::before {
  background: var(--hd-teal-500);
  color: var(--hd-navy-950);
}

.hd-tool-caution {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  margin: 0;
  padding-top: 18px;
}

.hd-field-help,
.hd-tool-privacy {
  color: var(--hd-muted);
  font-size: 0.72rem;
  margin: 14px 0 0;
}

.hd-tool-privacy {
  border-top: 1px solid var(--hd-line);
  margin-top: 20px;
  padding-top: 13px;
}

.hd-tool-result.is-error {
  background: #fff1ef;
  border-color: #efc1bb;
}

.hd-tool-guide-grid {
  align-items: start;
  display: grid;
  gap: clamp(34px, 6vw, 78px);
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
}

.hd-tool-guide-content {
  max-width: 790px;
}

.hd-tool-guide-content > p {
  color: var(--hd-muted);
}

.hd-formula-box {
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-left: 5px solid var(--hd-teal-500);
  border-radius: 0 var(--hd-radius-md) var(--hd-radius-md) 0;
  margin-block: 26px;
  padding: 20px 24px;
}

.hd-formula-box strong {
  color: var(--hd-navy-950);
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hd-formula-box p {
  color: var(--hd-ink);
  font-size: 0.88rem;
  margin: 7px 0 0;
}

.hd-tool-guide-aside {
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-lg);
  padding: 28px;
}

.hd-tool-guide-aside h2 {
  font-size: 1.35rem;
}

.hd-tool-guide-aside .hd-mini-feature-list {
  margin-bottom: 0;
}

.hd-tool-faq-wrap {
  max-width: 900px;
}

.hd-tool-faq {
  border-top: 1px solid var(--hd-line);
  margin-top: 26px;
}

.hd-tool-faq details {
  border-bottom: 1px solid var(--hd-line);
  padding-block: 19px;
}

.hd-tool-faq summary {
  color: var(--hd-navy-950);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
}

.hd-tool-faq details p {
  color: var(--hd-muted);
  font-size: 0.84rem;
  margin: 12px 0 0;
  max-width: 760px;
}

.hd-related-tools {
  border-top: 1px solid var(--hd-line);
}

.hd-related-tool-links {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hd-related-tool-links a {
  background: var(--hd-soft);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-md);
  color: var(--hd-navy-950);
  display: grid;
  gap: 5px;
  padding: 22px;
  text-decoration: none;
}

.hd-related-tool-links a:hover {
  background: var(--hd-white);
  border-color: var(--hd-teal-500);
}

.hd-related-tool-links span {
  color: var(--hd-muted);
  font-size: 0.76rem;
}

.hd-subscription-list {
  display: grid;
  gap: 12px;
}

.hd-subscription-row {
  align-items: end;
  background: var(--hd-soft);
  border: 1px solid var(--hd-line);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 0.7fr) minmax(150px, 0.85fr) 42px;
  padding: 15px;
}

.hd-remove-subscription {
  align-items: center;
  background: var(--hd-white);
  border: 1px solid #e3b8b3;
  border-radius: 10px;
  color: #a63228;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  height: 48px;
  justify-content: center;
  width: 42px;
}

.hd-remove-subscription[hidden] {
  display: none;
}

.hd-add-subscription {
  background: transparent;
  border: 0;
  color: var(--hd-teal-600);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 14px;
  padding: 8px 0;
}

.hd-add-subscription:hover {
  color: var(--hd-navy-950);
  text-decoration: underline;
}

.hd-add-subscription:disabled {
  color: var(--hd-muted);
  cursor: not-allowed;
  text-decoration: none;
}

@media (max-width: 1060px) {
  .hd-header-inner {
    grid-template-columns: auto 1fr;
  }

  .hd-menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .hd-primary-nav {
    background: var(--hd-white);
    border-top: 1px solid var(--hd-line);
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    margin-inline: -24px;
    padding: 14px 24px 22px;
  }

  .hd-primary-nav.is-open {
    display: block;
  }

  .hd-primary-nav ul {
    align-items: stretch;
    display: grid;
    gap: 3px;
  }

  .hd-primary-nav a {
    font-size: 0.96rem;
    padding: 12px;
  }

  .hd-primary-nav .sub-menu {
    border: 0;
    box-shadow: none;
    display: grid;
    margin-left: 16px;
    padding: 2px 0;
    position: static;
  }

  .hd-header-actions {
    display: none;
  }

  .hd-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hd-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hd-article-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .hd-article-sidebar {
    grid-row: 1;
  }

  .hd-article-sidebar-inner {
    position: static;
  }

  .hd-toc {
    max-width: var(--hd-reading);
  }

  .hd-footer-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }

  .hd-tool-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hd-tool-work-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hd-tool-side-card {
    position: static;
  }
}

@media (max-width: 820px) {
  body.admin-bar .hd-site-header {
    top: 46px;
  }

  .hd-container,
  .hd-article-hero {
    padding-inline: 18px;
  }

  .hd-hero-grid,
  .hd-tools-hero-grid,
  .hd-feature-grid,
  .hd-tools-panel,
  .hd-trust-panel,
  .hd-newsletter-inner,
  .hd-calculator-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hd-tools-jump {
    max-width: 620px;
  }

  .hd-specialist-tools {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }

  .hd-tool-benefits,
  .hd-tool-guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hd-tool-benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hd-hero-card {
    max-width: 620px;
  }

  .hd-feature-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hd-feature-stack .hd-post-card {
    display: flex;
  }

  .hd-feature-stack .hd-post-card-media {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .hd-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hd-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .hd-header-inner {
    min-height: 68px;
  }

  .hd-branding {
    min-width: 0;
  }

  .hd-brand-mark {
    border-radius: 11px;
    flex-basis: 40px;
    height: 40px;
    width: 40px;
  }

  .hd-site-title {
    font-size: 1.16rem;
  }

  .hd-brand-tagline {
    display: none;
  }

  .hd-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .hd-tools-hero {
    padding-block: 48px 58px;
  }

  .hd-tools-hero h1 {
    font-size: 2.3rem;
  }

  .hd-calculator-card {
    padding: 18px;
  }

  .hd-calculator-copy,
  .hd-form-grid,
  .hd-product-compare-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hd-tool-number {
    height: 42px;
    width: 42px;
  }

  .hd-tool-directory-grid,
  .hd-tool-benefit-grid,
  .hd-related-tool-links,
  .hd-subscription-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hd-tool-page-hero h1 {
    font-size: 2.3rem;
  }

  .hd-single-calculator {
    padding: 18px;
  }

  .hd-single-calculator-heading {
    align-items: flex-start;
  }

  .hd-remove-subscription {
    justify-self: end;
    width: 48px;
  }

  .hd-tool-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hd-tool-actions .hd-button {
    width: 100%;
  }

  .hd-topic-grid,
  .hd-post-grid,
  .hd-feature-stack,
  .hd-related .hd-post-grid,
  .hd-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hd-topic-card {
    min-height: 0;
  }

  .hd-hero {
    padding-block: 58px 68px;
  }

  .hd-hero-card {
    padding: 20px;
  }

  .hd-newsletter:not(.hd-newsletter--kit) .hd-newsletter-form form,
  .hd-newsletter:not(.hd-newsletter--kit) .hd-newsletter-form .wpcf7-form {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
  }

  .hd-article-header {
    padding-top: 46px;
  }

  .hd-article-hero img {
    border-radius: var(--hd-radius-md);
  }

  .hd-article-shell {
    gap: 30px;
    padding: 36px 18px 68px;
  }

  .hd-entry-content {
    font-size: 1rem;
    line-height: 1.76;
  }

  .hd-entry-content .alignwide {
    margin-left: 0;
    max-width: 100%;
    width: 100%;
  }

  .hd-author-box {
    grid-template-columns: 58px 1fr;
    padding: 20px;
  }

  .hd-post-navigation {
    grid-template-columns: minmax(0, 1fr);
  }

  .hd-post-navigation .nav-next {
    text-align: left;
  }

  .hd-footer-bottom {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
