/* SEO Trade Pack Hubs, Manufacturer Calculator Landing Pages & Static Brand Directories */
@media screen {
  main.seo-hub-main {
    display: block !important;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 22px 56px;
  }

  main.seo-hub-main .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 7px;
    line-height: 1.45;
  }

  main.seo-hub-main .breadcrumb a {
    white-space: nowrap;
  }

  .seo-hero-card {
    background: linear-gradient(135deg, #103347 0%, #174c67 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 28px 30px;
    margin: 12px 0 22px;
    box-shadow: 0 14px 32px -18px rgba(16, 51, 71, 0.45);
  }

  .seo-eyebrow {
    margin: 0 0 8px;
    font-family: var(--ui-font, system-ui, sans-serif);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f7b8a6;
  }

  .seo-hero-card h1 {
    margin: 0 0 10px;
    color: #ffffff !important;
    font-family: var(--ui-font, system-ui, sans-serif);
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.025em;
  }

  .seo-hero-lead {
    margin: 0 0 18px;
    max-width: 760px;
    font-size: 15.5px;
    line-height: 1.55;
    color: #dcebf2;
  }

  .seo-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
  }

  .seo-stat-pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-family: var(--ui-font, system-ui, sans-serif);
    font-size: 12.5px;
    font-weight: 700;
  }

  .seo-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .seo-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--ui-coral, #e26245);
    color: #ffffff;
    font-family: var(--ui-font, system-ui, sans-serif);
    font-size: 14.5px;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 6px 18px -6px rgba(226, 98, 69, 0.65);
    transition: background-color 0.14s ease, transform 0.12s ease;
  }

  .seo-cta-primary:hover {
    background: #cc4e31;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
  }

  .seo-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #ffffff;
    font-family: var(--ui-font, system-ui, sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
  }

  .seo-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    text-decoration: none;
  }

  .seo-panel {
    background: #ffffff;
    border: 1px solid var(--ui-line, #e6ddd2);
    border-radius: 18px;
    padding: 22px 24px;
    margin: 0 0 20px;
    box-shadow: 0 4px 16px -12px rgba(16, 51, 71, 0.14);
  }

  .seo-panel h2 {
    margin: 0 0 8px;
    font-family: var(--ui-font, system-ui, sans-serif);
    font-size: clamp(19px, 2vw, 24px);
    color: var(--ui-ocean-deep, #103347);
  }

  .seo-panel-sub {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ui-muted, #586875);
  }

  .seo-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--ui-line, #e6ddd2);
    border-radius: 12px;
  }

  .seo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 620px;
  }

  .seo-table th {
    text-align: left;
    padding: 11px 13px;
    background: #f4f8fa;
    color: var(--ui-ocean-deep, #103347);
    font-family: var(--ui-font, system-ui, sans-serif);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--ui-line, #e6ddd2);
  }

  .seo-table td {
    padding: 11px 13px;
    border-bottom: 1px solid #efe9e1;
    color: var(--ui-ink, #142c3d);
    vertical-align: top;
    line-height: 1.4;
  }

  .seo-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .seo-table tbody tr:hover td {
    background: #fbfdfe;
  }

  .seo-row-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--ui-ocean-soft, #e6f2f6);
    color: var(--ui-ocean-deep, #103347);
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
  }

  .seo-row-link:hover {
    background: var(--ui-ocean, #15445c);
    color: #ffffff;
    text-decoration: none;
  }

  .seo-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .seo-tool-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--ui-line, #e6ddd2);
    border-top: 3px solid var(--ui-ocean, #15445c);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.14s ease, box-shadow 0.15s ease;
  }

  .seo-tool-card:hover {
    border-color: var(--ui-coral, #e26245);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -14px rgba(16, 51, 71, 0.25);
    text-decoration: none;
  }

  .seo-tool-card strong {
    font-family: var(--ui-font, system-ui, sans-serif);
    font-size: 15.5px;
    color: var(--ui-ocean-deep, #103347);
  }

  .seo-tool-card span {
    font-size: 13px;
    line-height: 1.45;
    color: var(--ui-muted, #586875);
  }

  .seo-tool-card em {
    margin-top: auto;
    padding-top: 6px;
    font-style: normal;
    font-size: 12.5px;
    font-weight: 750;
    color: var(--ui-coral-ink, #a63a21);
  }

  .seo-states-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .seo-state-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f4f8fa;
    border: 1px solid #d5e2e8;
    font-size: 12px;
    font-weight: 700;
    color: var(--ui-ocean-deep, #103347);
    text-decoration: none;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  }

  a.seo-state-chip:hover {
    background: var(--ui-ocean, #15445c);
    border-color: var(--ui-ocean, #15445c);
    color: #ffffff;
    text-decoration: none;
  }

  .seo-faq-list {
    display: grid;
    gap: 12px;
  }

  .seo-faq-item {
    padding: 14px 16px;
    background: #fbf8f3;
    border: 1px solid var(--ui-line, #e6ddd2);
    border-radius: 12px;
  }

  .seo-faq-item h3 {
    margin: 0 0 6px;
    font-family: var(--ui-font, system-ui, sans-serif);
    font-size: 15px;
    color: var(--ui-ocean-deep, #103347);
  }

  .seo-faq-item p {
    margin: 0;
    font-size: 13.8px;
    line-height: 1.52;
    color: var(--ui-ink, #142c3d);
  }

  /* Static HTML Brand Directory embedded cleanly inside /paver & /wallstone */
  .seo-brand-dir {
    grid-column: 1 / -1;
    margin: 14px 0 0;
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid var(--ui-line, #e6ddd2);
    border-radius: 18px;
  }

  .seo-brand-dir h2 {
    margin: 4px 0 6px;
    font-family: var(--ui-font, system-ui, sans-serif);
    font-size: clamp(18px, 1.9vw, 22px);
    color: var(--ui-ocean-deep, #103347);
  }

  .seo-brand-dir-sub {
    margin: 0 0 14px;
    font-size: 13.5px;
    line-height: 1.48;
    color: var(--ui-muted, #586875);
  }

  .seo-brand-pill-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
  }

  .seo-brand-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 11px;
    border-radius: 11px;
    background: #f9fbfc;
    border: 1px solid #dbe5ea;
    text-decoration: none;
    color: var(--ui-ocean-deep, #103347);
    transition: border-color 0.14s ease, background-color 0.14s ease;
  }

  .seo-brand-link:hover {
    background: var(--ui-ocean-soft, #e6f2f6);
    border-color: var(--ui-ocean, #15445c);
    text-decoration: none;
  }

  .seo-brand-link strong {
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
  }

  .seo-brand-link small {
    font-size: 11.5px;
    color: var(--ui-muted, #586875);
  }

  .seo-brand-all-note {
    margin: 14px 0 8px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ui-muted, #586875);
  }

  .seo-brand-compact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .seo-brand-compact-link {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f5f8fa;
    border: 1px solid #dbe5ea;
    color: var(--ui-ocean-deep, #103347);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  }

  .seo-brand-compact-link:hover {
    background: var(--ui-ocean, #15445c);
    border-color: var(--ui-ocean, #15445c);
    color: #ffffff;
    text-decoration: none;
  }

  .seo-formula-box {
    padding: 14px 16px;
    border-radius: 12px;
    background: #f4f8fa;
    border-left: 4px solid var(--ui-ocean, #15445c);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ui-ocean-deep, #103347);
    margin: 0 0 14px;
    overflow-x: auto;
  }

  .seo-checklist {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ui-ink, #142c3d);
  }

  .seo-related-strip {
    grid-column: 1 / -1;
    margin: 14px 0 0;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid var(--ui-line, #e6ddd2);
    border-radius: 16px;
  }

  .seo-related-strip h2 {
    margin: 0 0 6px;
    font-family: var(--ui-font, system-ui, sans-serif);
    font-size: 16px;
    color: var(--ui-ocean-deep, #103347);
  }

  .seo-related-strip p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--ui-muted, #586875);
  }

  .seo-embed-controls {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
  }

  .seo-embed-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .seo-embed-field label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ui-ocean-deep, #103347);
  }

  .seo-embed-field select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #cbd7df;
    background: #ffffff;
    font-size: 14px;
    color: var(--ui-ink, #142c3d);
  }

  .seo-embed-code {
    width: 100%;
    min-height: 92px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #cbd7df;
    background: #f4f8fa;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ui-ocean-deep, #103347);
    resize: vertical;
  }

  .seo-embed-frame-wrap {
    margin-top: 14px;
    border: 1px solid #d5e2e8;
    border-radius: 14px;
    overflow: hidden;
    background: #faf8f4;
  }

  .seo-embed-frame-wrap iframe {
    display: block;
    width: 100%;
    border: 0;
    background: #faf8f4;
  }
}

@media screen and (max-width: 960px) {
  .seo-embed-controls {
    grid-template-columns: 1fr;
  }
  .seo-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-brand-pill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 650px) {
  main.seo-hub-main {
    padding: 16px 14px 40px;
  }

  .seo-hero-card,
  .seo-panel,
  .seo-brand-dir {
    padding: 18px 16px;
  }

  .seo-card-grid,
  .seo-brand-pill-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .seo-brand-dir,
  .seo-related-strip {
    display: none !important;
  }
}
