/* === Iris Publishers Exact Theme === */
:root {
  --ip-red: #cc1f1f;
  --ip-red-dark: #a81818;
  --ip-black: #1a1a1a;
  --ip-topbar: #1a1a1a;
  --ip-white: #ffffff;
  --ip-bg: #f8f8f8;
  --ip-border: #e2e2e2;
  --ip-text: #333333;
  --ip-muted: #666666;
  --ip-highlight: #fff5f5;
  --warn-bg: #fff8e6;
  --warn-border: #f0d08a;
  --radius: 8px;
  --max-width: 960px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  background: var(--ip-white);
  color: var(--ip-text);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Sora', 'Segoe UI', Arial, sans-serif;
  color: var(--ip-black);
  line-height: 1.25;
}

a { color: var(--ip-red); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--ip-red-dark); }

/* ── Skip link ── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ip-red); color: #fff;
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ── Top black bar ── */
.iris-topbar {
  background: var(--ip-topbar);
  color: #ccc;
  font-size: 0.78rem;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.iris-topbar a { color: #ccc; text-decoration: none; }
.iris-topbar a:hover { color: #fff; }
.iris-topbar-left {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.iris-topbar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}
.iris-topbar-right a { color: #fff; font-weight: 500; }
.iris-topbar-right a:hover { color: #ffcccc; }

/* ── Main white nav header ── */
header.site-header {
  background: var(--ip-white);
  border-bottom: 1px solid var(--ip-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

/* Logo matching Iris Publishers style */
.iris-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  flex-shrink: 0;
}
.iris-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--ip-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  font-family: 'Sora', sans-serif;
}
.iris-logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ip-black);
  letter-spacing: -0.01em;
}
.iris-logo-text strong { color: var(--ip-red); font-weight: 700; }

/* Desktop nav */
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
nav.main-nav > a {
  display: block;
  padding: 22px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ip-black);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
nav.main-nav > a:hover,
nav.main-nav > a.active {
  color: var(--ip-red);
  border-bottom-color: var(--ip-red);
  text-decoration: none;
}

/* Account Guides dropdown nav item */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 22px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ip-black);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.nav-dropdown > a::after {
  content: '▾';
  font-size: 0.75rem;
  margin-left: 2px;
}
.nav-dropdown:hover > a,
.nav-dropdown > a:hover {
  color: var(--ip-red);
  border-bottom-color: var(--ip-red);
  text-decoration: none;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--ip-border);
  border-top: 3px solid var(--ip-red);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
  padding: 8px 0;
  border-radius: 0 0 6px 6px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 0.86rem;
  color: var(--ip-text);
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.1s, border-color 0.1s;
}
.nav-dropdown-menu a:hover {
  background: var(--ip-highlight);
  border-left-color: var(--ip-red);
  color: var(--ip-red);
  text-decoration: none;
}
.nav-dropdown-menu .menu-section {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ip-muted);
  padding: 10px 18px 4px;
  font-weight: 700;
  border-top: 1px solid var(--ip-border);
  margin-top: 4px;
}
.nav-dropdown-menu .menu-section:first-child { border-top: none; margin-top: 0; }

/* Red CTA submit button */
nav.main-nav .nav-cta {
  background: var(--ip-red);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 4px;
  border-bottom: 3px solid transparent !important;
  margin-left: 10px;
  font-size: 0.88rem;
  transition: background 0.15s !important;
}
nav.main-nav .nav-cta:hover {
  background: var(--ip-red-dark);
  border-bottom-color: transparent !important;
  text-decoration: none;
}

/* Breadcrumb */
.page-breadcrumb {
  background: var(--ip-bg);
  border-bottom: 1px solid var(--ip-border);
  padding: 9px 24px;
  font-size: 0.82rem;
  color: var(--ip-muted);
}
.page-breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-breadcrumb a { color: var(--ip-muted); }
.page-breadcrumb a:hover { color: var(--ip-red); }
.page-breadcrumb span[aria-current] { color: var(--ip-red); font-weight: 600; }

/* ── Main content ── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 24px 72px;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #cc1f1f 0%, #8b0000 100%);
  color: #fff;
  padding: 40px 40px 36px;
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.hero .eyebrow {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin: 0 0 14px;
  font-weight: 800;
}
.hero .lede {
  color: rgba(255,255,255,0.85);
  font-size: 1.02rem;
  max-width: 620px;
  margin: 0;
}

/* ── Quick Answer ── */
.quick-answer {
  background: var(--ip-highlight);
  border: 1px solid #f0c0c0;
  border-left: 5px solid var(--ip-red);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 34px;
}
.quick-answer .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ip-red);
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.quick-answer p { margin: 0; }

/* ── Sections ── */
section { margin: 42px 0; }
section > h2 {
  font-size: 1.45rem;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ip-border);
  color: var(--ip-black);
}
section > h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--ip-red);
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
}
section > h3 {
  font-size: 1.1rem;
  margin: 26px 0 10px;
  color: var(--ip-black);
}

/* ── Entity pills ── */
.entity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.entity-list li {
  background: var(--ip-white);
  border: 1px solid var(--ip-border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.84rem;
  color: var(--ip-black);
  font-weight: 600;
}

/* ── Step rail ── */
.step-rail {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  border-left: 3px solid var(--ip-border);
}
.step-rail li {
  position: relative;
  padding: 4px 0 20px 36px;
  margin-left: 4px;
}
.step-rail li::before {
  content: attr(data-step);
  position: absolute;
  left: -20px;
  top: 0;
  width: 34px;
  height: 34px;
  background: var(--ip-red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.step-rail li strong { display: block; margin-bottom: 3px; color: var(--ip-black); }

/* ── Tip / Warn boxes ── */
.tip-box {
  background: #fff;
  border: 1px dashed var(--ip-red);
  border-radius: var(--radius);
  padding: 13px 17px;
  margin: 14px 0;
  font-size: 0.94rem;
}
.tip-box strong { color: var(--ip-red); }

.warn-box {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-left: 5px solid #f59e0b;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 0.94rem;
}
.warn-box strong { color: #7a5200; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; margin: 14px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ip-white);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.92rem;
  border: 1px solid var(--ip-border);
}
th, td {
  text-align: left;
  padding: 11px 15px;
  border-bottom: 1px solid var(--ip-border);
  vertical-align: top;
}
th {
  background: var(--ip-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.87rem;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #fafafa; }

/* ── Related cards ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.related-card {
  background: var(--ip-white);
  border: 1px solid var(--ip-border);
  border-radius: var(--radius);
  border-top: 3px solid var(--ip-red);
  padding: 15px 17px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.related-card:hover {
  box-shadow: 0 4px 16px rgba(204,31,31,0.1);
  transform: translateY(-2px);
}
.related-card a {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--ip-black);
}
.related-card a:hover { color: var(--ip-red); }
.related-card p {
  margin: 6px 0 0;
  font-size: 0.84rem;
  color: var(--ip-muted);
}

/* ── FAQ ── */
.faq-item {
  background: var(--ip-white);
  border: 1px solid var(--ip-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ip-black);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.35rem;
  color: var(--ip-red);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--ip-red); background: var(--ip-highlight); }
.faq-item .faq-answer {
  padding: 0 18px 16px;
  font-size: 0.95rem;
  border-top: 1px solid var(--ip-border);
  padding-top: 14px;
}

/* ── Footer ── */
footer.site-footer {
  background: #1a1a1a;
  color: #aaa;
  margin-top: 56px;
  font-size: 0.87rem;
}
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-about .foot-logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.foot-logo-icon {
  width: 32px; height: 32px;
  background: var(--ip-red);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
}
.footer-about .foot-logo strong { color: var(--ip-red); }
.footer-about .foot-tag {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-about p { color: #888; font-size: 0.85rem; line-height: 1.65; margin: 0 0 14px; }
.footer-about .foot-contact { font-size: 0.82rem; color: #777; line-height: 2; }
.footer-about .foot-contact a { color: #cc6666; }
.footer-about .foot-contact a:hover { color: #ff9999; }

.footer-col h4 {
  color: #fff;
  font-size: 0.87rem;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #888; font-size: 0.84rem; }
.footer-col ul li a:hover { color: #cc6666; text-decoration: none; }

.footer-bottom {
  background: #111;
  padding: 14px 24px;
  text-align: center;
  font-size: 0.77rem;
  color: #555;
  border-top: 1px solid #222;
}
.footer-bottom a { color: #777; }
.footer-bottom a:hover { color: #aaa; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ip-black);
  border-radius: 2px;
}

@media (max-width: 960px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .iris-topbar { display: none; }
  .hero { padding: 26px 20px; border-radius: 6px; }
  .hero h1 { font-size: 1.6rem; }
  main { padding: 22px 16px 56px; }
  .footer-main { grid-template-columns: 1fr; gap: 22px; }
  .nav-toggle { display: flex; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    border-top: 3px solid var(--ip-red);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 99;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav > a,
  .nav-dropdown > a {
    padding: 14px 22px;
    border-bottom: 1px solid var(--ip-border) !important;
    border-left: 3px solid transparent;
  }
  nav.main-nav > a:hover,
  .nav-dropdown > a:hover { border-left-color: var(--ip-red); }
  .nav-dropdown-menu {
    position: static;
    display: none;
    border: none;
    border-top: 1px solid var(--ip-border);
    box-shadow: none;
    background: #fafafa;
    padding: 4px 0;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding-left: 36px; }
  nav.main-nav .nav-cta { margin: 12px 16px; text-align: center; border-radius: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .related-card { transition: none; }
}
