@import url('/assets/css/validator.css');

/* HTML&HTML Enterprise Authority & Subpage Architecture */
.authority-hero {
  max-width: var(--maxw, 1080px);
  margin: 0 auto;
  padding: 56px 24px 36px;
  border-bottom: 1px solid var(--line);
}
.authority-hero .kicker {
  font-size: .72rem !important;
  letter-spacing: .12em !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  color: var(--accent, #0071e3) !important;
  margin-bottom: 12px;
}
.authority-hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.4rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.03em !important;
  font-weight: 700 !important;
}
.authority-hero h1 em {
  font-style: normal;
  font-weight: 400;
  color: var(--accent-hover, #38bdf8);
}
.authority-hero > p {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--fg-soft, #cbd5e1);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem) !important;
  line-height: 1.55 !important;
}
.authority-proof {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.authority-proof span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--card);
  font-size: 14.5px;
  font-weight: 750;
  letter-spacing: .02em;
}

/* Tool Runner Shell */
[hidden], .tool-status[hidden], .tool-result[hidden] {
  display: none !important;
}

.tool-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px 68px;
  border-bottom: 1px solid var(--line);
}
.tool-panel {
  margin-top: 0;
  background: var(--bg-card, #12151b);
  color: var(--fg, #ffffff);
  border: 1px solid var(--line, #1e222d);
  border-radius: var(--radius, 18px);
  padding: 28px;
  box-shadow: var(--shadow, 0 1px 2px rgba(0,0,0,0.04), 0 8px 30px rgba(0,0,0,0.06));
}
.tool-panel h2 {
  font-size: 1.5rem !important;
  letter-spacing: -.01em !important;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--fg, #ffffff);
}
.tool-panel > p {
  color: var(--fg-soft, #cbd5e1);
  margin: 0 0 24px;
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.55;
}
.tool-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 680px;
}
.tool-form input {
  min-width: 0;
  border: 1px solid var(--line, #2a3142);
  background: var(--bg, #14151a);
  color: var(--fg, #ffffff);
  border-radius: 12px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tool-form input:focus {
  border-color: var(--good, #10b981);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .2);
}
.tool-form button {
  border: 0;
  border-radius: 12px;
  background: var(--good, #10b981);
  color: #062817;
  padding: 0 28px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: opacity .15s ease, transform .1s ease;
}
.tool-form button:hover {
  opacity: .92;
}
.tool-form button:disabled {
  opacity: .55;
  cursor: wait;
}
.tool-note {
  display: block;
  margin-top: 14px;
  color: var(--fg-dim, #94a3b8);
  font-size: 15px;
  line-height: 1.55;
}
.tool-status, #toolStatus, #mentionStatus {
  margin-top: 16px !important;
  padding: 14px 22px !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
  background: var(--theme-bg-surface, #181a22) !important;
  background: linear-gradient(135deg, rgba(24, 27, 36, 0.98) 0%, rgba(30, 35, 48, 0.98) 100%) !important;
  color: var(--theme-text-strong, #ffffff) !important;
  letter-spacing: -0.01em !important;
  box-shadow: 0 4px 24px -4px rgba(0, 102, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  text-align: center !important;
}
.tool-status.error, #toolStatus.error, #mentionStatus.error {
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #fca5a5 !important;
  background: rgba(239, 68, 68, 0.1) !important;
  box-shadow: 0 4px 20px -4px rgba(239, 68, 68, 0.3) !important;
}
.tool-result {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
}
.tool-score {
  background: var(--bg-card, #12151b);
  border: 1px solid var(--line, #1e222d);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.tool-score strong {
  font-size: 72px;
  line-height: .9;
  letter-spacing: -.075em;
  color: var(--fg, #ffffff);
}
.tool-score span {
  font-size: 14px;
  color: var(--fg-dim, #94a3b8);
  margin-top: 10px;
}
.tool-findings {
  display: grid;
  gap: 12px;
}
.tool-finding {
  border: 1px solid var(--theme-border, #282b36);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--theme-bg-surface, #1e2028);
}
.tool-finding header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.tool-finding b {
  font-size: 16px;
  font-weight: 750;
  color: var(--theme-text-strong, #fff);
}
.tool-finding small {
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .06em;
  color: #9d9f95;
}
.tool-finding p{font-size:14px;line-height:1.68;margin:8px 0 0;color:#b7b8b0}
.tool-finding code {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  background: #14151c;
  border-radius: 8px;
  color: #d8d9d0;
  font-size: 15px;
  line-height: 1.6;
  white-space: normal;
  word-break: break-word;
}

/* Authority Card Grid */
.authority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.authority-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  padding: 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .2s ease, box-shadow .2s ease;
}
.authority-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.authority-card b {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
}
.authority-card h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.035em;
  margin: 16px 0 10px;
  line-height: 1.25;
}
.authority-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  flex-grow: 1;
}
.authority-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 850;
  color: var(--ink);
  text-decoration: none;
}
.authority-card a:hover {
  text-decoration: underline;
}

/* Comparison Table */
.comparison-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.5;
}
.comparison-table th {
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--theme-bg-surface, #1e2028);
  color: var(--theme-text-strong, #ffffff);
}
.comparison-table tr:last-child td {
  border-bottom: 0;
}
.comparison-table td:not(:first-child), .comparison-table th:not(:first-child) {
  text-align: center;
}
.yes {
  font-weight: 900;
}
.limited {
  color: #8d7019;
}

/* High-Contrast Authority Callout */
.authority-callout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  background: #11120f;
  color: var(--theme-text-strong, #fff);
  border-radius: 20px;
  padding: 36px 32px;
}
.authority-callout h3 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.04em;
  margin: 0 0 8px;
}
.authority-callout p {
  margin: 0;
  color: #bdbdb5;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.65;
}
.authority-callout a {
  background: var(--green);
  color: #102117;
  border-radius: 12px;
  padding: 15px 22px;
  text-decoration: none;
  font-weight: 850;
  font-size: 14px;
  white-space: nowrap;
}

/* Method List */
.method-list {
  border-top: 1px solid var(--ink);
}
.method-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.method-item b {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--muted);
}
.method-item h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.method-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15.5px;
}
.source-chip {
  display: inline-block;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
}
.authority-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 800;
}

/* Mention Tracker Stream */
.mention-results {
  display: grid;
  gap: 14px;
}
.mention-row {
  border: 1px solid #35362f;
  border-radius: 14px;
  padding: 18px 20px;
  background: #171814;
}
.mention-row header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.mention-row header b {
  font-size: 16px;
  line-height: 1.4;
  color: var(--theme-text-strong, #fff);
}
.mention-row header small {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 4px;
  color: #9d9f95;
}
.mention-row p{font-size:14px;line-height:1.7;color:#b7b8b0}
.mention-row > small {
  font-size: 15px;
  line-height: 1.6;
  color: #888980;
}
.mention-badge {
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .06em;
  padding: 6px 10px;
  border-radius: 999px;
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 650;
  color: var(--muted);
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.breadcrumbs span { color: var(--fg-dim, #6a6a72); }
.breadcrumbs span:last-child { color: var(--fg, #0a0a0a); font-weight: 750; }

/* Guide & Long-form Content Readability - High Contrast Engine */
.guide-content {
  max-width: 860px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--fg-soft, #cbd5e1);
}
.guide-content h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 850;
  letter-spacing: -.03em;
  margin: 52px 0 18px;
  line-height: 1.25;
  color: var(--fg, #ffffff);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line, var(--theme-border, rgba(255, 255, 255, 0.08)));
}
.guide-content h3 {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 36px 0 14px;
  line-height: 1.35;
  color: var(--fg, #ffffff);
}
.guide-content h4 {
  font-size: 18px;
  font-weight: 750;
  margin: 28px 0 12px;
  color: var(--fg, #ffffff);
}
.guide-content p {
  margin: 0 0 22px;
  color: var(--fg-soft, #cbd5e1);
  font-size: 18px;
  line-height: 1.8;
}
.guide-content strong, .guide-content b {
  color: var(--fg, #ffffff);
  font-weight: 750;
}
.guide-content a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.guide-content a:hover {
  color: #7dd3fc;
}
.guide-content ul, .guide-content ol {
  margin: 0 0 28px;
  padding-left: 28px;
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--fg-soft, #cbd5e1);
}
.guide-content li {
  margin-bottom: 12px;
}
.guide-content li strong {
  color: var(--fg, #ffffff);
}
.guide-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--accent, #2563eb);
  background: var(--bg-card, #1e2028);
  border-radius: 0 12px 12px 0;
  color: var(--fg, #ffffff);
  font-style: italic;
  font-size: 17px;
}
.guide-content blockquote p {
  margin: 0;
  color: var(--fg-soft, #cbd5e1);
}
.guide-content pre {
  background: #0d0e12;
  color: var(--theme-text-primary, #f8fafc);
  border: 1px solid var(--line, var(--theme-border, rgba(255, 255, 255, 0.1)));
  border-radius: 14px;
  padding: 22px 24px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.65;
  margin: 28px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.guide-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}
.guide-content p code, .guide-content li code {
  background: rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--theme-border, rgba(255, 255, 255, 0.06));
  font-weight: 600;
}
.guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15.5px;
  background: var(--bg-card, #1e2028);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line, var(--theme-border, rgba(255, 255, 255, 0.1)));
}
.guide-content th {
  background: var(--theme-bg-surface, #181a22);
  color: var(--fg, #ffffff);
  padding: 16px 18px;
  text-align: left;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--line, var(--theme-border, rgba(255, 255, 255, 0.12)));
}
.guide-content td {
  padding: 16px 18px;
  color: var(--fg-soft, #cbd5e1);
  border-bottom: 1px solid var(--line, var(--theme-border, rgba(255, 255, 255, 0.06)));
  line-height: 1.6;
}
.guide-content tr:last-child td {
  border-bottom: none;
}
.guide-content .callout-box {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 28px 0;
}
.guide-content .callout-box h4 {
  margin: 0 0 8px;
  color: #38bdf8;
  font-size: 17px;
}
.guide-content .callout-box p {
  margin: 0;
  font-size: 16px;
  color: var(--fg-soft, #cbd5e1);
}

/* Responsive Overrides */
@media (max-width: 960px) {
  .authority-grid {
    grid-template-columns: 1fr;
  }
  .tool-result {
    grid-template-columns: 1fr;
  }
  .tool-score {
    min-height: auto;
  }
  .authority-callout {
    grid-template-columns: 1fr;
  }
  .method-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .authority-hero {
    padding: 56px 16px 40px;
  }
  .authority-hero h1 {
    font-size: 38px;
  }
  .authority-hero > p {
    font-size: 16px;
  }
  .tool-shell {
    padding: 0 16px 56px;
  }
  .tool-panel {
    padding: 24px 18px;
  }
  .tool-form {
    grid-template-columns: 1fr;
  }
  .tool-form button {
    min-height: 48px;
  }
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .authority-callout {
    padding: 24px 20px;
  }
  .authority-callout h3 {
    font-size: 24px;
  }
  .breadcrumbs {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Executive Header Layout */
.executive-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--theme-bg-surface, #181a22);
  border-bottom: 1px solid var(--theme-border, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(12px);
}
.exec-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.exec-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.exec-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--theme-text-strong, #ffffff);
  font-weight: 700;
  font-size: 16px;
}
.exec-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0066ff;
}
.exec-brand-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--theme-text-strong, #ffffff);
}
.exec-brand-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
}
.exec-brand-sub {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--theme-text-secondary, #94a3b8);
}
.exec-nav-cluster {
  display: flex;
  align-items: center;
  gap: 24px;
}
.exec-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.exec-nav-links a {
  color: var(--theme-text-secondary, #cbd5e1);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.exec-nav-links a:hover,
.exec-nav-links a.active {
  color: var(--theme-text-strong, #ffffff);
  font-weight: 600;
}
.exec-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.exec-lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--theme-border, rgba(255, 255, 255, 0.15));
  background: transparent;
  color: var(--theme-text-strong, #ffffff);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.exec-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  background: #0066ff;
  color: var(--theme-text-strong, #ffffff);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.exec-cta-btn:hover {
  background: #0052cc;
}
@media (max-width: 900px) {
  .exec-header-inner {
    height: auto;
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  .exec-brand-sub {
    display: none;
  }
  .exec-nav-cluster {
    width: 100%;
    justify-content: space-between;
  }
  .exec-nav-links {
    gap: 12px;
    overflow-x: auto;
  }
  .exec-nav-links a {
    font-size: 15px;
    white-space: nowrap;
  }
}

/* Light Mode Overrides for Authority Surface */
html[data-theme="light"] .authority-hero .kicker,
html[data-theme="light"] .authority-hero .kicker b {
  color: #0284c7 !important;
}
html[data-theme="light"] .authority-hero h1 em {
  color: #0284c7 !important;
}
html[data-theme="light"] .authority-proof span {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}
html[data-theme="light"] .guide-content a {
  color: #0284c7 !important;
}
html[data-theme="light"] .guide-content a:hover {
  color: #0369a1 !important;
}
html[data-theme="light"] .authority-callout {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .authority-callout h3 {
  color: #0f172a !important;
}
html[data-theme="light"] .authority-callout p {
  color: #475569 !important;
}
html[data-theme="light"] .guide-content pre {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}
html[data-theme="light"] .guide-content code {
  color: #0284c7 !important;
}
html[data-theme="light"] .guide-content p code,
html[data-theme="light"] .guide-content li code {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #0284c7 !important;
}
html[data-theme="light"] .guide-content blockquote {
  background: #f8fafc !important;
  border-left: 4px solid #0066ff !important;
  color: #0f172a !important;
}
html[data-theme="light"] .guide-content blockquote p {
  color: #475569 !important;
}
html[data-theme="light"] .guide-content table {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .guide-content th {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .guide-content td {
  color: #334155 !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
html[data-theme="light"] .guide-content .callout-box {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0369a1 !important;
}
html[data-theme="light"] .tool-finding code {
  background: #f8fafc !important;
  color: #0369a1 !important;
  border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .mention-row {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .mention-row header b {
  color: #0f172a !important;
}
html[data-theme="light"] .executive-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

