/* ==========================================
   System-First (Local-First) Font Architecture
   ========================================== */

/* ==========================================
   Apple Glassmorphic Design System (Pro Grid)
   ========================================== */

:root {
  --bg-color: #ffffff;
  --text-primary: #1d1d1f;       /* Apple's signature rich near-black for high contrast readability */
  --text-secondary: #424245;     /* Darkened paragraph text for crisp, effortless reading */
  --text-muted: #86868b;
  
  /* Apple Pro Blue Palette */
  --accent-blue: #0066cc;
  --accent-blue-hover: #0077ed;
  
  --accent-green: #34c759;
  --accent-purple: #af52de;
  --accent-red: #ff3b30;
  --input-bg: #ffffff;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --focus-ring: rgba(0, 102, 204, 0.25);
  
  /* Apple Glassmorphism Tokens (Light Mode) */
  --glass-bg: #ffffff;
  --glass-border: rgba(0, 0, 0, 0.08);
  
  --sidebar-bg: rgba(255, 255, 255, 0.92);
  --overlay-bg: rgba(255, 255, 255, 0.92);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Fluid Responsive Typography & Lighter Heading Weights Scale (Mobile First) */
  --body-size: 15px;
  --body-line-height: 1.62;
  
  --h1-size: 26px;
  --h1-line-height: 1.25;
  --h1-weight: 600;

  --h2-size: 22px;
  --h2-line-height: 1.3;
  --h2-weight: 600;

  --h3-size: 18px;
  --h3-line-height: 1.4;
  --h3-weight: 500;
}

[data-theme="dark"] {
  --bg-color: #000000;
  --text-primary: #f5f5f7;
  --text-secondary: #d1d1d6;     /* High-contrast crisp off-white for dark mode reading comfort */
  --text-muted: #636366;
  
  /* Apple Pro Dark Mode Blue */
  --accent-blue: #0a84ff;
  --accent-blue-hover: #409cff;
  
  --accent-green: #30d158;
  --accent-purple: #bf5af2;
  --accent-red: #ff453a;
  --input-bg: #1c1c1e;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --focus-ring: rgba(10, 132, 255, 0.35);
  
  /* Apple Glassmorphism Tokens (Dark Mode) */
  --glass-bg: rgba(28, 28, 30, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --sidebar-bg: rgba(28, 28, 30, 0.92);
  --overlay-bg: rgba(0, 0, 0, 0.85);
}

/* ==========================================
   Precision Viewport Breakpoints & Typography
   ========================================== */

@media (min-width: 375px) {
  :root {
    --body-size: 16px;
    --body-line-height: 1.68;
    --h3-size: 20px;
    --h3-line-height: 1.42;
    --h2-size: 24px;
    --h2-line-height: 1.32;
    --h1-size: 30px;
    --h1-line-height: 1.25;
  }
}

@media (min-width: 412px) {
  :root {
    --body-size: 17px;
    --body-line-height: 1.72;
    --h3-size: 22px;
    --h3-line-height: 1.42;
    --h2-size: 26px;
    --h2-line-height: 1.32;
    --h1-size: 34px;
    --h1-line-height: 1.22;
  }
}

@media (min-width: 480px) {
  :root {
    --body-size: 18px;
    --body-line-height: 1.75;
    --h3-size: 24px;
    --h3-line-height: 1.4;
    --h2-size: 30px;
    --h2-line-height: 1.3;
    --h1-size: 38px;
    --h1-line-height: 1.2;
  }
}

@media (min-width: 600px) {
  :root {
    --body-size: 17px;
    --body-line-height: 1.75;
    --h3-size: 22px;
    --h3-line-height: 1.45;
    --h2-size: 32px;
    --h2-line-height: 1.3;
    --h1-size: 42px;
    --h1-line-height: 1.18;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-size: var(--body-size);
  line-height: var(--body-line-height);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

/* ==========================================
   Sidebar Drawer Navigation & Mobile Theme Toggle
   ========================================== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 100;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--sidebar-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 101;
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
}

@media (min-width: 640px) {
  .sidebar {
    width: 340px;
    left: -340px;
    border-right: 1px solid var(--border-subtle);
  }
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.sidebar-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.close-btn {
  background: var(--border-subtle);
  border: none;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
}

.sidebar-link:hover {
  background: rgba(0, 102, 204, 0.1);
  color: var(--accent-blue);
}

.sidebar-theme-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
}

.sidebar-link-label {
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-primary);
}

@media (min-width: 600px) {
  .sidebar-theme-item {
    display: none !important;
  }
}

/* ==========================================
   Main Form & Clean Professional Headings (Updated with Lighter Weights)
   ========================================== */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 20px 32px 20px;
}

.header-section {
  text-align: center;
  margin-bottom: 32px;
  padding: 0 4px;
}

h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--h1-size);
  line-height: var(--h1-line-height);
  font-weight: var(--h1-weight);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-wrap: balance;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

h1 .h1-primary {
  color: var(--text-primary);
  display: block;
}

h1 .h1-secondary {
  color: var(--text-secondary);
  font-weight: 500;
  display: block;
  font-size: 0.85em;
}

.unshorten-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-bottom: 36px;
}

/* ==========================================
   Premium Input + Button (calm, Apple-style)
   - Input: soft rounded rectangle, thin gray border at rest.
     On focus the SAME border turns blue (+ a soft glow underneath).
     One element per state, no stacked rings.
   - Button: exact Facebook blue (#1877F2), flat, calm color shift on hover, clean press
   ========================================== */
.input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  border-radius: 14px;
}

#urlInput {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 18px 56px 18px 20px;
  font-family: inherit;
  font-size: var(--body-size, 16px);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#urlInput:hover:not(:focus) {
  border-color: rgba(0, 0, 0, 0.22);
}

/* focus: the same border turns blue + soft glow below (no extra ring) */
#urlInput:focus,
#urlInput:focus-visible {
  outline: none;
  border-color: #1877f2;
}

#urlInput::placeholder {
  color: var(--text-muted);
  transition: opacity 0.25s ease;
}

#urlInput:focus::placeholder {
  opacity: 0.5;
}

.paste-action-btn {
  position: absolute;
  z-index: 2;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.paste-action-btn:hover {
  background: var(--border-subtle);
  color: #1877f2;
  transform: scale(1.06);
}

.paste-action-btn:active {
  transform: scale(0.92);
}

/* Facebook blue button (exact color, flat) */
button[type="submit"] {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 18px;
  font-family: inherit;
  font-size: var(--body-size, 16px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff;
  background-color: #1877f2;
  border: 1px solid #1565c0;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateZ(0);
  max-height: 80px;
  opacity: 1;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1),
              background-color 0.15s ease,
              border-color 0.15s ease,
              opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
  will-change: transform;
}

button[type="submit"]:hover:not(:disabled) {
  background-color: #166fe5;
  border-color: #1458b0;
}

button[type="submit"]:active:not(:disabled) {
  background-color: #1464d3;
  transform: scale(0.98);
  border-color: #114b9e;
  transition: transform 0.1s cubic-bezier(0.2, 0, 0, 1),
              background-color 0.1s ease, border-color 0.1s ease;
}

button[type="submit"]:focus-visible {
  outline: 2px solid #1877f2;
  outline-offset: 3px;
}

button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

button[type="submit"].hiding {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  max-height: 0;
  margin: 0;
  padding: 0;
  border: none;
}

/* Dark mode */
[data-theme="dark"] #urlInput {
  border-color: rgba(255, 255, 255, 0.14);
}
[data-theme="dark"] #urlInput:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.26);
}
[data-theme="dark"] #urlInput:focus,
[data-theme="dark"] #urlInput:focus-visible {
  border-color: #1877f2;
}

@media (prefers-reduced-motion: reduce) {
  #urlInput { transition: none; }
  button[type="submit"] { transition: none; }
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.7s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-box {
  margin-top: 20px;
  padding: 16px 20px;
  background-color: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: var(--accent-red);
  border-radius: var(--radius-md);
  font-size: calc(var(--body-size) * 0.92);
  display: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ==========================================
   SEO Article & Guide Content Styles (Updated Headings)
   ========================================== */
.seo-article-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 16px;
}

@media (max-width: 767px) {
  .seo-article-content {
    margin-top: 16px;
    gap: 40px;
  }
}

.article-section-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-section-block h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--h2-size);
  line-height: var(--h2-line-height);
  font-weight: var(--h2-weight);
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.article-section-block .section-desc {
  font-size: var(--body-size);
  line-height: var(--body-line-height);
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.article-lead-card p,
.text-block-card p {
  font-size: var(--body-size);
  line-height: var(--body-line-height);
  color: var(--text-secondary);
}

.text-block-card p + p {
  margin-top: 16px;
}

.article-lead-card strong,
.text-block-card strong {
  color: var(--text-primary);
  font-weight: 600;
}

.steps-grid,
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .steps-grid,
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.step-card {
  position: relative;
}

.step-card h3,
.feature-card h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--h3-size);
  line-height: var(--h3-line-height);
  font-weight: var(--h3-weight);
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-card p,
.feature-card p {
  font-size: var(--body-size);
  line-height: var(--body-line-height);
  color: var(--text-secondary);
}

/* ==========================================================
   Key Safety Features: grouped list layout (iOS Settings style)
   Applies where the 3-column cards used to show (>= 768px).
   One glass card, three full-width rows, inset hairline
   dividers, soft icon tiles. Stays inside the article column.
   Scoped to .features-grid / .feature-card only, so the
   "steps" section and mobile layout are untouched.
   ========================================================== */
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .features-grid .feature-card {
    --tile: var(--accent-blue);
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 4px;
    align-content: start;
    padding: 22px 26px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 0;
    transition: background-color 0.25s ease;
  }

  .features-grid .feature-card:nth-child(2) {
    --tile: var(--accent-green);
  }

  .features-grid .feature-card:nth-child(3) {
    --tile: var(--accent-purple);
  }

  /* Inset hairline divider (starts at the text column, like iOS) */
  .features-grid .feature-card + .feature-card {
    background: linear-gradient(var(--border-subtle), var(--border-subtle)) 86px 0 / calc(100% - 86px) 1px no-repeat;
  }

  /* Icon tile */
  .features-grid .feature-card::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--border-subtle);
  }

  /* Icon glyph, centered on the tile */
  .features-grid .feature-card::after {
    content: "";
    position: absolute;
    top: 22px;
    left: 26px;
    width: 44px;
    height: 44px;
    background-color: var(--tile);
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: 22px 22px;
            mask-size: 22px 22px;
    pointer-events: none;
  }

  .features-grid .feature-card:nth-child(1)::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m18%2014%204%204-4%204'/%3E%3Cpath%20d='m18%202%204%204-4%204'/%3E%3Cpath%20d='M2%2018h1.973a4%204%200%200%200%203.3-1.7l5.454-8.6a4%204%200%200%201%203.3-1.7H22'/%3E%3Cpath%20d='M2%206h1.972a4%204%200%200%201%203.6%202.2'/%3E%3Cpath%20d='M22%2018h-6.041a4%204%200%200%201-3.3-1.8l-.359-.45'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m18%2014%204%204-4%204'/%3E%3Cpath%20d='m18%202%204%204-4%204'/%3E%3Cpath%20d='M2%2018h1.973a4%204%200%200%200%203.3-1.7l5.454-8.6a4%204%200%200%201%203.3-1.7H22'/%3E%3Cpath%20d='M2%206h1.972a4%204%200%200%201%203.6%202.2'/%3E%3Cpath%20d='M22%2018h-6.041a4%204%200%200%201-3.3-1.8l-.359-.45'/%3E%3C/svg%3E");
  }

  .features-grid .feature-card:nth-child(2)::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20width='18'%20height='11'%20x='3'%20y='11'%20rx='2'%20ry='2'/%3E%3Cpath%20d='M7%2011V7a5%205%200%200%201%2010%200v4'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20width='18'%20height='11'%20x='3'%20y='11'%20rx='2'%20ry='2'/%3E%3Cpath%20d='M7%2011V7a5%205%200%200%201%2010%200v4'/%3E%3C/svg%3E");
  }

  .features-grid .feature-card:nth-child(3)::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2013c0%205-3.5%207.5-7.66%208.95a1%201%200%200%201-.67-.01C7.5%2020.5%204%2018%204%2013V6a1%201%200%200%201%201-1c2%200%204.5-1.2%206.24-2.72a1.17%201.17%200%200%201%201.52%200C14.51%203.81%2017%205%2019%205a1%201%200%200%201%201%201z'/%3E%3Cpath%20d='m9%2012%202%202%204-4'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2013c0%205-3.5%207.5-7.66%208.95a1%201%200%200%201-.67-.01C7.5%2020.5%204%2018%204%2013V6a1%201%200%200%201%201-1c2%200%204.5-1.2%206.24-2.72a1.17%201.17%200%200%201%201.52%200C14.51%203.81%2017%205%2019%205a1%201%200%200%201%201%201z'/%3E%3Cpath%20d='m9%2012%202%202%204-4'/%3E%3C/svg%3E");
  }

  .features-grid .feature-card h3 {
    grid-column: 2;
    margin-bottom: 0;
    align-self: center;
  }

  .features-grid .feature-card p {
    grid-column: 2;
  }

  @supports (background: color-mix(in srgb, red 10%, white)) {
    .features-grid .feature-card::before {
      background: color-mix(in srgb, var(--tile) 13%, transparent);
    }

    .features-grid .feature-card:hover {
      background-color: color-mix(in srgb, var(--text-primary) 3%, transparent);
    }
  }
}

@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  .features-grid .feature-card {
    transition: none;
  }
}

.article-bullet-list {
  margin-top: 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-secondary);
  font-size: var(--body-size);
  line-height: var(--body-line-height);
}

.article-bullet-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================
   Supported Services Table (Apple Glass Style)
   ========================================== */
.link-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0;
}

/* Boxed card that holds only the table (intro text sits outside, unboxed) */
.link-table-card {
  padding: 20px 14px 14px;
}

@media (max-width: 767px) {
  .link-table-card {
    padding: 6px 10px;
  }
}

.link-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: var(--body-size);
  line-height: 1.7;
  text-align: left;
}

.link-table thead th {
  font-size: calc(var(--body-size) * 0.78);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 20px 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.link-table tbody th,
.link-table tbody td {
  padding: 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.25s ease;
}

.link-table tbody tr:last-child th,
.link-table tbody tr:last-child td {
  border-bottom: none;
}

.link-table tbody th {
  width: 30%;
  min-width: 120px;
  font-weight: 600;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.link-table tbody td {
  color: var(--text-secondary);
}

.link-table tbody tr:hover th,
.link-table tbody tr:hover td {
  background-color: rgba(0, 0, 0, 0.03);
}

.link-table tbody tr:hover th:first-child {
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}

.link-table tbody tr:hover td:last-child {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

[data-theme="dark"] .link-table tbody tr:hover th,
[data-theme="dark"] .link-table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile: stack each row as a clean mini card (no sideways scrolling) */
@media (max-width: 767px) {
  .link-table,
  .link-table tbody,
  .link-table tbody tr,
  .link-table tbody th,
  .link-table tbody td {
    display: block;
    width: 100%;
  }

  /* Hide the column header row visually, keep it for screen readers */
  .link-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .link-table tbody tr {
    padding: 18px 8px;
    border-bottom: 1px solid var(--border-subtle);
  }

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

  .link-table tbody th,
  .link-table tbody td,
  .link-table tbody tr:last-child th,
  .link-table tbody tr:last-child td {
    min-width: 0;
    padding: 0;
    border-bottom: none;
    background: none;
    border-radius: 0;
  }

  .link-table tbody th {
    margin-bottom: 6px;
    font-size: calc(var(--body-size) * 1.05);
  }

  .link-table tbody td {
    line-height: var(--body-line-height);
  }

  /* No sticky hover highlight on touch screens */
  .link-table tbody tr:hover th,
  .link-table tbody tr:hover td,
  [data-theme="dark"] .link-table tbody tr:hover th,
  [data-theme="dark"] .link-table tbody tr:hover td {
    background: none;
  }
}

/* Screen-reader-only text (used for table caption) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================
   Glass Card (base card used across the page)
   ========================================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* ==========================================
   Google-Style Accordion Q&A / FAQs (Updated Hierarchy & Font Contrast)
   ========================================== */
.faq-section {
  width: 100%;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-section h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--h2-size);
  line-height: var(--h2-line-height);
  font-weight: var(--h2-weight);
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.ai-qa-item {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.25s ease;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  animation: appleAiItemAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes appleAiItemAppear {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ai-qa-header {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.ai-qa-question {
  font-weight: 600; /* Distinct semibold weight to clearly anchor questions from answers */
  font-size: calc(var(--body-size) * 1.05);
  line-height: 1.45;
  color: var(--text-primary);
  padding-right: 12px;
}

.ai-qa-chevron {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  flex-shrink: 0;
}

.ai-qa-item.open .ai-qa-chevron {
  transform: rotate(180deg);
  background-color: var(--accent-blue);
  color: #ffffff;
}

.ai-qa-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 20px;
  color: var(--text-secondary);
  font-size: var(--body-size);
  font-weight: 400; /* Regular weight so answers step back gracefully */
  line-height: var(--body-line-height);
}

.ai-qa-item.open .ai-qa-body {
  max-height: 500px;
  padding: 0 20px 20px 20px;
}

/* Style for inline links within FAQ/Article body to ensure normal underlines */
.ai-qa-body a,
.text-block-card a,
.article-lead-card a {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* Links inside the Key Safety Features rows (same look as article links) */
.feature-card a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.feature-card .feature-link {
  font-size: calc(var(--body-size) * 0.93);
  margin-top: 4px;
}

/* ==========================================
   Modern Footer with Glassmorphic Background & Brand Social Icons
   ========================================== */
.apple-footer {
  width: 100%;
  max-width: 960px;
  margin-top: 64px;
  padding: 40px 32px 28px 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  font-size: calc(var(--body-size) * 0.85);
  color: var(--text-secondary);
}

.footer-inner-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
  margin-bottom: 32px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: calc(var(--body-size) * 0.78);
  letter-spacing: 0.05em;
}

.footer-brand-desc {
  font-size: calc(var(--body-size) * 0.9);
  line-height: var(--body-line-height);
  color: var(--text-secondary);
  margin-top: 6px;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--accent-blue);
}

.social-icons-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              background-color 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease;
  will-change: transform;
}

.social-icon-btn.facebook:hover {
  background-color: #1877f2 !important;
  color: #ffffff !important;
  border-color: #1877f2 !important;
  transform: translateY(-3px) scale(1.08);
}
.social-icon-btn.facebook:hover svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.social-icon-btn.youtube:hover {
  background-color: #ff0000 !important;
  color: #ffffff !important;
  border-color: #ff0000 !important;
  transform: translateY(-3px) scale(1.08);
}
.social-icon-btn.youtube:hover svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.social-icon-btn.twitter:hover,
.social-icon-btn.x-brand:hover {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  transform: translateY(-3px) scale(1.08);
}
.social-icon-btn.twitter:hover svg,
.social-icon-btn.x-brand:hover svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

[data-theme="dark"] .social-icon-btn.twitter:hover,
[data-theme="dark"] .social-icon-btn.x-brand:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}
[data-theme="dark"] .social-icon-btn.twitter:hover svg,
[data-theme="dark"] .social-icon-btn.x-brand:hover svg {
  fill: #000000 !important;
  stroke: #000000 !important;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================
   UI UPGRADE: Unshortener.org (mobile-first -> tablet -> PC)
   Colors sampled from the approved designs:
   mobile #0F46D7 / #19E2B6, tablet #1347CE / #1CD5B5,
   PC #0759FB / #80EFC4
   ========================================================== */
:root {
  --hero-bg: #0f46d7;
  --hero-mint: #19e2b6;
  --hero-mint-hover: #12cfa6;
  --hero-mint-text: #0a2540;
  --hero-input-border: #bfe6f5;
  --h2-weight: 700;
}
@media (min-width: 600px) {
  :root { --hero-bg: #1347ce; --hero-mint: #1cd5b5; --hero-mint-hover: #15c2a4; }
}
@media (min-width: 1024px) {
  :root { --hero-bg: #0759fb; --hero-mint: #80efc4; --hero-mint-hover: #66e5b5; }
}

/* ---------- Header (static, no injection) ---------- */
.site-header {
  width: 100%;
  background: var(--hero-bg);
  color: #ffffff;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  min-height: 76px;
  margin: 0 auto;
  padding: 16px 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  text-decoration: none;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  -webkit-tap-highlight-color: transparent;
}
.brand-badge {
  background: var(--hero-mint);
  color: var(--hero-mint-text);
  border-radius: 9px;
  padding: 5px 9px 6px;
}
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle:focus-visible,
.theme-toggle-btn:focus-visible,
.main-nav a:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
.main-nav { display: none; }
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle-btn:hover { background: rgba(255, 255, 255, 0.16); }
.main-nav .theme-toggle-btn { margin-left: 4px; }

/* ---------- Sidebar (blue, matches the design) ---------- */
.sidebar {
  background: var(--hero-bg);
  color: #ffffff;
  border-right: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  height: 100%;
  height: 100dvh;
}
.sidebar .sidebar-header { margin-bottom: 28px; }
.sidebar .brand { font-size: 26px; }
.sidebar .close-btn { background: rgba(255, 255, 255, 0.16); color: #ffffff; }
.sidebar .close-btn:hover { background: rgba(255, 255, 255, 0.26); }
.sidebar .sidebar-link {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 600;
}
.sidebar .sidebar-link:hover,
.sidebar .sidebar-link:focus-visible {
  background: var(--hero-mint);
  border-color: var(--hero-mint);
  color: var(--hero-mint-text);
}
.sidebar .sidebar-theme-item {
  display: flex !important;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.sidebar .sidebar-link-label { color: #ffffff; font-weight: 600; }
/* Sidebar upgrade: Tools / Blog / Contact us on top, Dark mode + Sign in pinned at the bottom */
.sidebar .sidebar-menu { gap: 12px; margin-bottom: 24px; }
.sidebar .sidebar-link { justify-content: space-between; min-height: 56px; padding: 0 20px; font-size: 1.05rem; text-decoration: none; }
.sidebar .sidebar-link-arrow { display: inline-flex; flex-shrink: 0; opacity: 0.7; }
.sidebar .sidebar-link:hover .sidebar-link-arrow,
.sidebar .sidebar-link:focus-visible .sidebar-link-arrow { opacity: 1; }
.sidebar .sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.sidebar .sidebar-theme-item { min-height: 56px; padding: 0 20px; }
.sidebar .sidebar-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0 24px;
  background: var(--hero-mint);
  color: var(--hero-mint-text);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.sidebar .sidebar-signin:hover { background: var(--hero-mint-hover); }
.sidebar .sidebar-signin:active { background: var(--hero-mint-hover); transform: scale(0.98); }
.sidebar .sidebar-signin:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
@media (min-width: 640px) {
  .sidebar { border-right: 1px solid rgba(255, 255, 255, 0.18); }
}

/* ---------- Hero ---------- */
.hero {
  width: 100%;
  background: var(--hero-bg);
  color: #ffffff;
  padding: 40px 20px 44px;
}
.hero-inner { width: 100%; max-width: 640px; margin: 0 auto; }

.hero .header-section {
  margin: 0 0 clamp(36px, 11vw, 64px);
  padding: 0;
  text-align: center;
}
.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0;
  font-size: clamp(32px, 9vw, 60px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-wrap: balance;
}
.hero h1 .h1-primary,
.hero h1 .h1-secondary {
  display: block;
  color: #ffffff;
  font-size: inherit;
  font-weight: 700;
}

.hero .unshorten-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin: 0;
  overflow: visible;
}
.hero .input-wrapper { border-radius: 999px; }

.hero #urlInput {
  height: 54px;
  padding: 0 56px 0 24px;
  font-size: 16px;
  color: #0f172a;
  background: #ffffff;
  border: 2px solid var(--hero-input-border);
  border-radius: 999px;
}
.hero #urlInput::placeholder { color: #8e8e99; }
.hero #urlInput:hover:not(:focus) { border-color: #ffffff; }
/* No glow ring on focus: border simply turns white, nothing extra */
.hero #urlInput:focus,
.hero #urlInput:focus-visible {
  outline: none;
  border-color: #ffffff;
}
[data-theme="dark"] .hero #urlInput,
[data-theme="dark"] .hero #urlInput:hover:not(:focus) { background: #ffffff; color: #0f172a; }
[data-theme="dark"] .hero #urlInput:focus,
[data-theme="dark"] .hero #urlInput:focus-visible { border-color: #ffffff; }

.hero .paste-action-btn { right: 14px; color: #1f2937; }
.hero .paste-action-btn svg { width: 20px; height: 20px; }
.hero .paste-action-btn:hover { background: rgba(15, 70, 215, 0.1); color: var(--hero-bg); }

.hero #submitBtn {
  width: 100%;
  min-height: 54px;
  padding: 0 24px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--hero-mint-text);
  background-color: var(--hero-mint);
  border-radius: 999px;
}
.hero #submitBtn:hover:not(:disabled) { background-color: var(--hero-mint-hover); }
.hero #submitBtn:active:not(:disabled) { background-color: var(--hero-mint-hover); transform: scale(0.98); }
.hero #submitBtn:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
.hero #submitBtn:disabled { opacity: 0.65; }
.hero #submitBtn.hiding {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  max-height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
}
.hero .spinner { border-color: rgba(10, 37, 64, 0.25); border-top-color: var(--hero-mint-text); }

/* ---------- Test link under the button ---------- */
.hero .test-url {
  margin: 18px 0 0;
  padding: 0 4px;
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}
.hero .test-url-link {
  display: inline-block;
  padding: 2px 0;
  color: var(--hero-mint);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  word-break: break-all;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, opacity 0.15s ease;
}
.hero .test-url-link:hover { color: #ffffff; }
.hero .test-url-link:active { opacity: 0.8; }
.hero .test-url-link:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; border-radius: 4px; }
@media (min-width: 600px) {
  .hero .test-url { margin-top: 20px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .test-url-link { transition: none; }
}

/* Intro article: plain text under "About the Service" (no gray box) */
.about-section .article-lead-card {
  background: transparent;
  border: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 0;
  padding: 0;
  gap: 0;
}
.about-section .article-lead-card p { color: var(--text-primary); }

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  .site-header-inner { padding: 18px 32px; }
  .brand { font-size: 30px; }
  .hero { padding: 56px 32px 56px; }
  .hero .header-section { margin-bottom: 48px; }
  .hero #urlInput { height: 58px; font-size: 17px; }
  .hero #submitBtn { min-height: 58px; font-size: 18px; }
}

/* ---------- PC: nav links, joined pill, centered headings ---------- */
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .main-nav { display: flex; align-items: center; gap: 28px; }
  .main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    padding: 8px 2px;
  }
  .main-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .main-nav a.nav-signin {
    background: var(--hero-mint);
    color: var(--hero-mint-text);
    padding: 10px 22px;
    border-radius: 999px;
    transition: background-color 0.2s ease, transform 0.15s ease;
  }
  .main-nav a.nav-signin:hover { background: var(--hero-mint-hover); text-decoration: none; }
  .main-nav a.nav-signin:active { transform: scale(0.97); }
  .sidebar,
  .sidebar-overlay { display: none !important; }

  .hero { padding: 56px 24px 72px; }
  .hero-inner { max-width: 760px; }
  .hero .header-section { margin-bottom: 32px; }
  .hero h1 {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0.28em;
    font-size: 48px;
  }
  .hero .unshorten-form {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    max-width: 580px;
    margin: 0 auto;
  }
  .hero .input-wrapper { flex: 1; min-width: 0; border-radius: 999px 0 0 999px; }
  .hero #urlInput { height: 100%; min-height: 54px; border-radius: 999px 0 0 999px; border-right: 0; }
  .hero #submitBtn { width: auto; flex: 0 0 auto; padding: 0 34px; white-space: nowrap; border-radius: 0 999px 999px 0; }
  .hero #submitBtn.hiding { padding: 0; }
  .hero .unshorten-form:has(#submitBtn.hiding) #urlInput { border-radius: 999px; border-right: 2px solid var(--hero-input-border); }

  .article-section-block h2,
  .faq-section h2,
  .article-section-block .section-desc { text-align: center; }
  .about-section .article-lead-card { text-align: center; align-items: center; }
}

/* ==========================================================
   ARTICLE: Google-style reading layout (boxless).
   Only the Safety Features are cards. Scoped to the homepage
   article, so other pages using this stylesheet are unaffected.
   ========================================================== */
#mainContainer {
  --text-primary: #1f1f1f;
  --text-secondary: #3c4043;
  --accent-blue: #0b57d0;
  --line: #dadce0;
  --card-bg: #ffffff;
  --body-size: 17px;
  --body-line-height: 1.75;
  --h2: 25px;
  --h3: 19px;
  --section-gap: 56px;
  --text-gap: 18px;
  --item-gap: 28px;
  --card-pad: 24px;
  max-width: 760px;
  padding: 48px 20px 56px;
}
@media (min-width: 600px) {
  #mainContainer {
    --body-size: 18px; --h2: 29px; --h3: 21px;
    --section-gap: 72px; --text-gap: 20px; --item-gap: 32px; --card-pad: 32px;
    padding: 64px 32px 72px;
  }
}
@media (min-width: 1024px) {
  #mainContainer { --h2: 31px; --section-gap: 80px; --text-gap: 22px; --item-gap: 36px; padding-top: 72px; }
}
[data-theme="dark"] #mainContainer {
  --text-primary: #e8eaed;
  --text-secondary: #bdc1c6;
  --accent-blue: #8ab4f8;
  --line: #3c4043;
  --card-bg: #121212;
}
#articleContent { gap: var(--section-gap); margin-top: 0; text-align: left; }
#articleContent .article-section-block,
#articleContent .faq-section { display: flex; flex-direction: column; gap: var(--text-gap); margin: 0; scroll-margin-top: 24px; }
#articleContent h2 { font-size: var(--h2); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); text-align: left; margin: 0; }
#articleContent h3 { font-size: var(--h3); line-height: 1.4; font-weight: 600; color: var(--text-primary); margin: 0; }
#articleContent p,
#articleContent li { font-size: var(--body-size); line-height: var(--body-line-height); color: var(--text-secondary); }
#articleContent .section-desc { text-align: left; margin: 0; }
#articleContent a { color: var(--accent-blue); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
#articleContent .article-lead-card,
#articleContent .text-block-card { display: flex; flex-direction: column; gap: var(--text-gap); align-items: stretch; text-align: left; }
#articleContent .article-lead-card p,
#articleContent .text-block-card p { margin: 0; }
#articleContent .article-lead-card p { color: var(--text-primary); }
#articleContent .article-steps-list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding-left: 26px; }
#articleContent .article-steps-list li { padding-left: 6px; }

/* How to unshorten: plain headings and text */
#articleContent .steps-grid { display: flex; flex-direction: column; gap: var(--item-gap); margin-top: 8px; }
#articleContent .step-card { display: flex; flex-direction: column; gap: 8px; }
#articleContent .step-card h3,
#articleContent .step-card p { margin: 0; }

/* Safety features: Google-style outlined cards */
#articleContent .features-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 8px;
  background: none; border: 0; border-radius: 0; overflow: visible;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
#articleContent .feature-card {
  --tile: var(--accent-blue);
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  min-width: 0; padding: var(--card-pad);
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px;}
#articleContent .feature-card:nth-child(2) { --tile: #188038; }
#articleContent .feature-card:nth-child(3) { --tile: #8430ce; }
[data-theme="dark"] #articleContent .feature-card:nth-child(2) { --tile: #81c995; }
[data-theme="dark"] #articleContent .feature-card:nth-child(3) { --tile: #c58af9; }
#articleContent .feature-card::before {
  content: ""; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  background: var(--border-subtle);
}
@supports (background: color-mix(in srgb, red 10%, white)) {
  #articleContent .feature-card::before { background: color-mix(in srgb, var(--tile) 13%, transparent); }
}
#articleContent .feature-card::after {
  content: ""; position: absolute; top: var(--card-pad); left: var(--card-pad); width: 44px; height: 44px;
  background-color: var(--tile); pointer-events: none;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: 22px 22px; mask-size: 22px 22px;
}
#articleContent .feature-card:nth-child(1)::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m18%2014%204%204-4%204'/%3E%3Cpath%20d='m18%202%204%204-4%204'/%3E%3Cpath%20d='M2%2018h1.973a4%204%200%200%200%203.3-1.7l5.454-8.6a4%204%200%200%201%203.3-1.7H22'/%3E%3Cpath%20d='M2%206h1.972a4%204%200%200%201%203.6%202.2'/%3E%3Cpath%20d='M22%2018h-6.041a4%204%200%200%201-3.3-1.8l-.359-.45'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m18%2014%204%204-4%204'/%3E%3Cpath%20d='m18%202%204%204-4%204'/%3E%3Cpath%20d='M2%2018h1.973a4%204%200%200%200%203.3-1.7l5.454-8.6a4%204%200%200%201%203.3-1.7H22'/%3E%3Cpath%20d='M2%206h1.972a4%204%200%200%201%203.6%202.2'/%3E%3Cpath%20d='M22%2018h-6.041a4%204%200%200%201-3.3-1.8l-.359-.45'/%3E%3C/svg%3E");
}
#articleContent .feature-card:nth-child(2)::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20width='18'%20height='11'%20x='3'%20y='11'%20rx='2'%20ry='2'/%3E%3Cpath%20d='M7%2011V7a5%205%200%200%201%2010%200v4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20width='18'%20height='11'%20x='3'%20y='11'%20rx='2'%20ry='2'/%3E%3Cpath%20d='M7%2011V7a5%205%200%200%201%2010%200v4'/%3E%3C/svg%3E");
}
#articleContent .feature-card:nth-child(3)::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2013c0%205-3.5%207.5-7.66%208.95a1%201%200%200%201-.67-.01C7.5%2020.5%204%2018%204%2013V6a1%201%200%200%201%201-1c2%200%204.5-1.2%206.24-2.72a1.17%201.17%200%200%201%201.52%200C14.51%203.81%2017%205%2019%205a1%201%200%200%201%201%201z'/%3E%3Cpath%20d='m9%2012%202%202%204-4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2013c0%205-3.5%207.5-7.66%208.95a1%201%200%200%201-.67-.01C7.5%2020.5%204%2018%204%2013V6a1%201%200%200%201%201-1c2%200%204.5-1.2%206.24-2.72a1.17%201.17%200%200%201%201.52%200C14.51%203.81%2017%205%2019%205a1%201%200%200%201%201%201z'/%3E%3Cpath%20d='m9%2012%202%202%204-4'/%3E%3C/svg%3E");
}
#articleContent .feature-card h3 { align-self: flex-start; margin: 0; }
#articleContent .feature-card p { font-size: var(--body-size); line-height: var(--body-line-height); margin: 0; }
#articleContent .feature-card .feature-link { font-size: 16px; margin: 0; }

/* Supported services: open table with thin row lines */
#articleContent .link-table-card { padding: 0; margin-top: 8px; border-top: 1px solid var(--line); }
#articleContent .link-table { font-size: var(--body-size); }
#articleContent .link-table thead th { padding: 16px 12px; color: var(--text-secondary); font-size: 13px; border-bottom: 1px solid var(--line); }
#articleContent .link-table tbody th,
#articleContent .link-table tbody td { padding: 20px 12px; border-bottom: 1px solid var(--line); border-radius: 0; line-height: 1.7; }
#articleContent .link-table tbody th { color: var(--text-primary); }
#articleContent .link-table tbody td { color: var(--text-secondary); }
#articleContent .link-table tbody tr:last-child th,
#articleContent .link-table tbody tr:last-child td { border-bottom: 0; }
#articleContent .link-table tbody tr:last-child { border-bottom: 0; }
@media (max-width: 767px) {
  #articleContent .link-table tbody tr { padding: 22px 0; border-bottom: 1px solid var(--line); }
  #articleContent .link-table tbody tr:last-child { border-bottom: 0; }
  #articleContent .link-table tbody th,
  #articleContent .link-table tbody td { padding: 0; border: 0; }
  #articleContent .link-table tbody th { margin-bottom: 8px; }
}

#articleContent .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
#articleContent .link-table { width: 100%; border-collapse: collapse; text-align: left; }
#articleContent .link-table tbody th,
#articleContent .link-table tbody td { vertical-align: top; }
@media (max-width: 767px) {
  #articleContent .link-table,
  #articleContent .link-table tbody,
  #articleContent .link-table tbody tr,
  #articleContent .link-table tbody th,
  #articleContent .link-table tbody td { display: block; width: 100%; }
  #articleContent .link-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}

/* FAQ: one flat list with divider lines */
#articleContent .faq-accordion { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
#articleContent .ai-qa-item {
  background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;  -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible;
}
#articleContent .ai-qa-header {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px 0; background: none; border: 0; border-radius: 0;
  font: inherit; text-align: left; color: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#articleContent .ai-qa-header:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 4px; }
#articleContent .ai-qa-question { font-size: var(--body-size); font-weight: 600; line-height: 1.5; color: #111111; padding: 0; }
[data-theme="dark"] #articleContent .ai-qa-question { color: #ffffff; }
#articleContent .ai-qa-chevron {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 0; background: none; color: var(--text-secondary);
  transition: transform 0.25s ease;
}
#articleContent .ai-qa-item.open .ai-qa-chevron { transform: rotate(180deg); background: none; color: var(--accent-blue); }
#articleContent .ai-qa-body {
  max-height: 0; overflow: hidden; visibility: hidden; padding: 0;
  font-size: var(--body-size); line-height: var(--body-line-height); color: var(--text-secondary);
  transition: max-height 0.35s ease, padding 0.3s ease, visibility 0.35s;
}
#articleContent .ai-qa-item.open .ai-qa-body { max-height: 800px; visibility: visible; padding: 4px 0 28px; }

/* ==========================================
   Shared Cookie Consent (variables + UI), used on every page
   ========================================== */
:root {
  /* Light Mode: 360-degree Omnidirectional Ambient Shadow + Specular Glass Ring */
  --consent-bg: rgba(255, 255, 255, 0.72);
  --consent-border: rgba(0, 0, 0, 0.08);
  --consent-shadow: 
    0 0 50px 10px rgba(0, 0, 0, 0.12),
    0 20px 60px 0 rgba(0, 0, 0, 0.18),
    0 0 35px 2px rgba(0, 102, 204, 0.1),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
  --btn-secondary-bg: rgba(0, 0, 0, 0.06);
  --btn-secondary-hover: rgba(0, 0, 0, 0.1);
  --btn-secondary-text: #1d1d1f;
}
[data-theme="dark"] {
  /* Dark Mode: 360-degree Omnidirectional Deep Shadow + Ambient Accent Glow */
  --consent-bg: rgba(28, 28, 32, 0.75);
  --consent-border: rgba(255, 255, 255, 0.18);
  --consent-shadow: 
    0 0 60px 12px rgba(0, 0, 0, 0.65),
    0 20px 60px 0 rgba(0, 0, 0, 0.5),
    0 0 40px 2px rgba(10, 132, 255, 0.15),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
  --btn-secondary-bg: rgba(255, 255, 255, 0.1);
  --btn-secondary-hover: rgba(255, 255, 255, 0.16);
  --btn-secondary-text: #f5f5f7;
}

/* ==========================================
   Ultra-Fast & Omnidirectional Blur Shadow Cookie Consent UI
   ========================================== */
.cookie-consent-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  /* Ultra-fast 0.25s snap animation curve */
  transition: opacity 0.25s cubic-bezier(0, 0, 0.2, 1), visibility 0.25s cubic-bezier(0, 0, 0.2, 1);
}
.cookie-consent-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.cookie-consent-box {
  width: 100%;
  max-width: 520px;
  background: var(--consent-bg);
  backdrop-filter: blur(36px) saturate(220%);
  -webkit-backdrop-filter: blur(36px) saturate(220%);
  border: 1px solid var(--consent-border);
  box-shadow: var(--consent-shadow);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Snappy spring translateY scale animation (0.28s) */
  transform: translateY(24px) scale(0.95);
  transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cookie-consent-overlay.active .cookie-consent-box {
  transform: translateY(0) scale(1);
}
.cookie-consent-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-consent-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.cookie-consent-body {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.cookie-consent-body strong {
  color: var(--text-primary);
  font-weight: 600;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.cookie-btn-allow {
  width: 100%;
  padding: 14px;
  background-color: var(--accent-blue);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.35);
  transition: background-color 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
}
.cookie-btn-allow:hover {
  background-color: var(--accent-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.45);
}
.cookie-btn-allow:active {
  transform: scale(0.98);
}
.cookie-btn-manage {
  width: 100%;
  padding: 14px;
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-btn-manage:hover {
  background-color: var(--btn-secondary-hover);
  transform: translateY(-1px);
}
.cookie-btn-manage:active {
  transform: scale(0.98);
}