/* GeckoFlag: security page (ja/security.html) */
  .sec-hero { background: var(--gradient-brand); padding: 52px 0 60px; }
  .sec-hero-inner { max-width: 960px; margin: 0 auto; }
  .sec-hero h1 { color: #fff; font-size: 2.2rem; margin: 0 0 10px; }
  .sec-hero .updated { color: rgba(255,255,255,.85); font-size: 0.92rem; }

  .breadcrumb-bar { background: var(--gf-panel); padding: 14px 0; }
  .breadcrumb-bar .wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
  .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--gf-text-muted); }
  .breadcrumb a { color: var(--gf-text-muted); transition: color 0.15s ease; }
  .breadcrumb a:hover { color: var(--gf-brand-dark); }
  .breadcrumb .sep { opacity: 0.6; }
  .breadcrumb .current { color: var(--gf-text); }

  .sec { padding: 48px 0 88px; }
  .sec-inner { max-width: 960px; margin: 0 auto; }
  .sec-intro { font-size: 1.05rem; color: var(--gf-text); margin-bottom: 20px; }

  /* Self-assessment notice */
  .sec-notice {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--gf-surface); border-radius: 16px; box-shadow: var(--shadow-card);
    border-left: 5px solid var(--gf-accent); padding: 18px 22px; margin: 0 0 28px;
  }
  .sec-notice svg { width: 24px; height: 24px; stroke: var(--gf-accent); flex-shrink: 0; margin-top: 2px; }
  .sec-notice p { margin: 0; color: var(--gf-text); font-size: 0.96rem; }
  .sec-notice strong { display: block; margin-bottom: 4px; }

  /* In-page table of contents */
  .sec-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; padding: 0; list-style: none; }
  .sec-toc a {
    display: inline-block; padding: 8px 14px; border-radius: 10px; background: var(--gf-panel);
    font-size: 0.88rem; font-weight: 600; color: var(--gf-text); box-shadow: var(--shadow-card);
    transition: color 0.15s ease, box-shadow 0.2s ease;
  }
  .sec-toc a:hover { color: var(--gf-brand-dark); box-shadow: var(--shadow-raised); }

  .sec section { margin-top: 56px; scroll-margin-top: 110px; }
  .sec section h2 { font-size: 1.45rem; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gf-border); }
  .sec section h3 { font-size: 1.08rem; margin: 28px 0 12px; }
  .sec section p { margin: 0 0 14px; }
  .sec ul, .sec ol { padding-left: 22px; margin: 0 0 14px; color: var(--gf-text-muted); }
  .sec li { margin-bottom: 8px; }
  .sec li strong { color: var(--gf-text); }
  .sec a.text-link { color: var(--gf-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
  .sec code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; background: var(--gf-panel); padding: 2px 6px; border-radius: 6px; color: var(--gf-text); }

  /* Design-measure cards */
  .sec-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0 0; }
  .sec-card { background: var(--gf-surface); border-radius: 14px; box-shadow: var(--shadow-card); padding: 18px 20px; }
  .sec-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin: 0 0 8px; }
  .sec-card h3 svg { width: 20px; height: 20px; stroke: var(--gf-brand); flex-shrink: 0; }
  .sec-card p { margin: 0; font-size: 0.93rem; }

  /* Tables */
  .sec-table-wrap { overflow-x: auto; margin: 18px 0 14px; border-radius: 14px; box-shadow: var(--shadow-card); background: var(--gf-surface); -webkit-overflow-scrolling: touch; }
  .sec-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.92rem; line-height: 1.6; }
  .sec-table.is-narrow { min-width: 420px; }
  .sec-table th, .sec-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--gf-border); }
  .sec-table thead th { background: var(--gf-brand-dark); color: #fff; font-weight: 700; border-top: none; white-space: nowrap; }
  .sec-table tbody th { color: var(--gf-text); font-weight: 700; white-space: nowrap; }
  .sec-table td { color: var(--gf-text-muted); }
  .sec-table tbody tr:nth-child(even) th, .sec-table tbody tr:nth-child(even) td { background: #FAFBFC; }
  .sec-table td.hash { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }

  /* Latest result summary */
  .sec-result {
    display: flex; gap: 14px; align-items: center; background: #EAF6F1; border-radius: 14px;
    padding: 16px 20px; margin: 0 0 18px; color: var(--gf-brand-dark); font-weight: 700;
  }
  .sec-result svg { width: 26px; height: 26px; stroke: var(--gf-brand); flex-shrink: 0; }
  .sec-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 6px; }
  .sec-meta div { background: var(--gf-panel); border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; color: var(--gf-text-muted); }
  .sec-meta b { display: block; color: var(--gf-text); font-size: 0.82rem; margin-bottom: 2px; }

  .sec-note { font-size: 0.86rem; color: var(--gf-text-muted); }
  .sec-contact { background: var(--gf-surface); border-radius: 14px; box-shadow: var(--shadow-card); padding: 18px 22px; margin: 18px 0; }
  .sec-contact p { margin: 0; color: var(--gf-text); }

  .sec ol.sec-steps { padding-left: 0; list-style: none; counter-reset: step; }
  .sec ol.sec-steps li { counter-increment: step; position: relative; padding: 0 0 0 44px; margin-bottom: 16px; }
  .sec ol.sec-steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
    background: var(--gradient-brand); color: #fff; font-weight: 700; font-size: 0.88rem;
    display: flex; align-items: center; justify-content: center;
  }

  /* Placeholder to be filled in after testing (remove before publishing) */
  .ph { background: #FFF3BF; color: #7A5B00; border-radius: 4px; padding: 0 4px; font-weight: 600; }

  .sec section .sec-cta { margin-top: 30px; text-align: center; }
  .sec .btn-primary {
    display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 14px;
    background: var(--gradient-brand); color: #fff !important; font-weight: 700; font-size: 1rem;
    box-shadow: var(--shadow-raised-lg); transition: transform 0.1s ease;
  }
  .sec .btn-primary svg { width: 20px; height: 20px; flex-shrink: 0; }
  .sec .btn-primary:hover { transform: translateY(-1px); }

  @media (max-width: 780px) {
    .sec-hero h1 { font-size: 1.9rem; }
    .sec-cards { grid-template-columns: 1fr; }
    .sec-meta { grid-template-columns: 1fr; }
  }

  /* Card headings: override the generic section h3 spacing */
  .sec .sec-card h3 { margin: 0 0 8px; }
  /* Frequency column of the testing table: keep on one line */
  .sec-table.is-freq td:last-child { white-space: nowrap; }

  .sec ul.sec-toc { padding-left: 0; }

  /* Results table: fixed column widths so the last column (notes) gets enough room */
  .sec-table.is-results { table-layout: fixed; }
  .sec-table.is-results thead th:nth-child(1) { width: 20%; }
  .sec-table.is-results thead th:nth-child(2) { width: 29%; }
  .sec-table.is-results thead th:nth-child(3) { width: 14%; }
  .sec-table.is-results thead th:nth-child(4) { width: 37%; }
  .sec-table.is-results thead th, .sec-table.is-results tbody th { white-space: normal; overflow-wrap: break-word; hyphens: auto; }

  /* Phones and small tablets: show each row as a card, with the column name above each value */
  @media (max-width: 780px) {
    .sec-table-wrap { overflow: visible; border-radius: 0; box-shadow: none; background: none; }
    .sec-table, .sec-table.is-narrow { min-width: 0; table-layout: auto; font-size: 0.9rem; }
    .sec-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .sec-table, .sec-table tbody, .sec-table tr, .sec-table th, .sec-table td { display: block; width: auto; }
    .sec-table tbody tr {
      background: var(--gf-surface); border-radius: 14px; box-shadow: var(--shadow-card);
      padding: 14px 16px; margin: 0 0 12px;
    }
    .sec-table tbody tr:nth-child(even) th, .sec-table tbody tr:nth-child(even) td { background: none; }
    .sec-table tbody th { white-space: normal; border-top: none; padding: 0 0 8px; font-size: 0.98rem; }
    .sec-table td { border-top: 1px solid var(--gf-border); padding: 8px 0; }
    .sec-table td:last-child { padding-bottom: 0; }
    .sec-table.is-freq td:last-child { white-space: normal; }
    .sec-table td[data-label]::before {
      content: attr(data-label); display: block; margin-bottom: 2px;
      font-size: 0.78rem; font-weight: 700; color: var(--gf-brand-dark);
    }
  }

  /* Past test results page (security-history.html) */
  .sec-badge {
    display: inline-block; vertical-align: middle; margin-inline-start: 10px; padding: 3px 10px;
    border-radius: 999px; background: #EAF6F1; color: var(--gf-brand-dark);
    font-family: inherit; font-size: 0.78rem; font-weight: 700; line-height: 1.5;
  }
  .sec-back { margin-top: 48px; text-align: center; }
  .sec-history-lead { margin: 40px 0 14px; color: var(--gf-text-muted); }
  .sec ul.sec-history { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
  .sec ul.sec-history li { margin: 0; }
  .sec-history-item {
    display: flex; align-items: center; gap: 20px; padding: 20px 24px;
    background: var(--gf-surface); border-radius: 14px; box-shadow: var(--shadow-card);
    color: var(--gf-text); text-decoration: none; transition: box-shadow 0.2s ease, transform 0.2s ease;
  }
  .sec-history-item:hover { box-shadow: var(--shadow-raised); transform: translateY(-1px); }
  .sec-history-ver { flex-shrink: 0; min-width: 170px; font-size: 1.15rem; font-weight: 700; }
  .sec-history-sum { flex: 1; font-size: 0.92rem; color: var(--gf-text-muted); }
  .sec-history-item svg { width: 20px; height: 20px; stroke: var(--gf-brand); flex-shrink: 0; }
  @media (max-width: 780px) {
    .sec-history-item { flex-wrap: wrap; gap: 8px 12px; padding: 16px 18px; }
    .sec-history-ver { min-width: 0; }
    .sec-history-item svg { margin-inline-start: auto; }
    .sec-history-sum { order: 3; flex-basis: 100%; }
  }
