/* Shared styles for TitanCraft Free SEO Web Tools */
.tool-main {
  padding: 34px 0 72px;
}

.tool-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.tool-breadcrumb a:hover {
  color: var(--accent);
}

.tool-hero {
  margin-bottom: 28px;
}

.tool-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(2, 132, 199, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.tool-hero h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  line-height: 1.18;
  margin-bottom: 10px;
}

.tool-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tool-eyebrow-row .tool-eyebrow {
  margin-bottom: 0;
}

.tool-hero p {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0;
  font-size: 1.02rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.tool-card h2 {
  font-size: 1.18rem;
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.result-highlight {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(79, 70, 229, 0.08));
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.result-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.result-big {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 4px 0;
}

.result-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}

.breakdown-row span:first-child {
  color: var(--text-muted);
}

.breakdown-row strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.app-cta-box {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 16px;
  padding: 20px;
}

.app-cta-box h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #ffffff;
}

.app-cta-box p {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin: 0 0 14px;
}

.app-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0284c7;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.app-cta-btn:hover {
  background: #0369a1;
}

.seo-faq {
  margin-top: 34px;
}

.seo-faq h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 720px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.faq-item h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.beat-row {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #ffffff;
}

.beat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.beat-title {
  font-weight: 700;
  font-size: 0.93rem;
}

.beat-pages {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(79, 70, 229, 0.1);
  padding: 3px 9px;
  border-radius: 999px;
}

.beat-note {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 44px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* Multi-Country Selector & Region Banner (Zero Green) */
.country-select-wrap {
  display: inline-flex;
  align-items: center;
}

.country-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 30px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.country-select:focus {
  outline: none;
  border-color: var(--accent);
}

.region-banner {
  margin-top: 16px;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  background: #f0f9ff;
  border: 1px solid rgba(2, 132, 199, 0.22);
  color: #0369a1;
  font-size: 0.84rem;
}

.tool-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}

.tool-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid rgba(2, 132, 199, 0.35);
  background: #eff6ff;
  color: #0369a1;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tool-action-btn:hover {
  background: #dbeafe;
  border-color: #0284c7;
}

.tool-action-btn-secondary {
  border-color: rgba(15, 23, 42, 0.16);
  background: #ffffff;
  color: #334155;
}

.tool-action-btn-secondary:hover {
  background: #f8fafc;
  border-color: #475569;
}

/* GEO Statutory Reference Tables & Official Citations */
.geo-ref-section {
  margin-top: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.geo-ref-section h2 {
  font-size: 1.32rem;
  margin-bottom: 8px;
}

.geo-ref-lead {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.55;
}

.geo-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.geo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
  background: #ffffff;
}

.geo-table thead th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.geo-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--text-muted);
  vertical-align: top;
}

.geo-table tbody tr:last-child td {
  border-bottom: none;
}

.geo-table tbody td strong {
  color: var(--text);
}

.geo-citation-bar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.geo-citation-bar a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Related Statutory Tools Cross-Linking Matrix */
.related-tools-section {
  margin-top: 34px;
}

.related-tools-section h2 {
  font-size: 1.28rem;
  margin-bottom: 14px;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 820px) {
  .related-tools-grid {
    grid-template-columns: 1fr;
  }
}

.related-tool-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.related-tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.related-tool-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 6px;
}

.related-tool-card h3 {
  font-size: 0.96rem;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.35;
}

.related-tool-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

@media print {

  .site-header,
  .tool-breadcrumb,
  .country-select-wrap,
  .tool-actions-bar,
  .tool-share-row,
  .app-cta-box,
  .geo-ref-section,
  .related-tools-section,
  .seo-faq,
  .site-footer,
  .bg-ambient {
    display: none !important;
  }

  .tool-main {
    padding: 0 !important;
  }

  .tool-card {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    break-inside: avoid;
  }
}

/* Creem License Gate & Activation UI */
.tc-license-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.tc-license-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.86rem;
  color: #0f172a;
}

.tc-license-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #e2e8f0;
  color: #475569;
}

.tc-license-pill[data-state="active"] {
  background: #dcfce7;
  color: #166534;
}

.tc-license-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tc-license-input {
  flex: 1 1 220px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  background: #ffffff;
  color: #0f172a;
}

.tc-license-verify-btn {
  padding: 9px 14px;
  border-radius: 8px;
  border: none;
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.tc-license-verify-btn:hover {
  background: #0369a1;
}

.tc-license-verify-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.tc-license-clear-btn {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.tc-license-msg {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.4;
  min-height: 1.1em;
}

.tc-license-msg.tc-msg-info { color: #0369a1; }
.tc-license-msg.tc-msg-success { color: #15803d; font-weight: 600; }
.tc-license-msg.tc-msg-error { color: #b91c1c; font-weight: 600; }

/* Social Share Row */
.tool-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
}

.tool-share-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-right: 2px;
}

.tool-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.tool-share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f0f9ff;
}