/* ============================================================
   iDharma — Security & Compliance
   Stylesheet (include in blade after Bootstrap 5 + Tabler Icons)
   ============================================================ */

:root {
  --idh-orange: #E65425;
  --idh-orange-dark: #c75b35;
  --idh-cream: #fff4f0;
  --idh-tint: #FFE6E1;
  --idh-text: #1c1d1f;
  --idh-muted: #838484;
  --idh-success: #1d9e75;
  --idh-warning: #BA7517;
  --idh-border: #ececec;
  --idh-border-strong: #d9d9d9;
  --idh-surface: #ffffff;
  --idh-surface-2: #fafafa;
  --idh-shadow-sm: 0 1px 2px rgba(20, 22, 26, .04), 0 1px 1px rgba(20, 22, 26, .03);
  --idh-shadow-md: 0 4px 14px rgba(20, 22, 26, .06), 0 1px 2px rgba(20, 22, 26, .04);

  --idh-radius-card: 12px;
  --idh-radius-btn: 6px;

  --idh-ff-display: 'Poetsen One', Georgia, serif;
  --idh-ff-body: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --idh-ff-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Base ---------- */
.sec-page {
  font-family: var(--idh-ff-body);
  color: var(--idh-text);
  background: #fff;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.sec-page h1,
.sec-page h2,
.sec-page h3,
.sec-page .sec-display {
  font-family: var(--idh-ff-display);
  font-weight: 400;
  color: var(--idh-text);
  letter-spacing: -.01em;
  line-height: 1.15;
}

.sec-page code,
.sec-page .mono { font-family: var(--idh-ff-mono); font-size: .92em; }

.sec-page a { color: var(--idh-orange-dark); text-decoration: none; }
.sec-page a:hover { color: var(--idh-orange); text-decoration: underline; }

.sec-page .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Breadcrumb ---------- */
.sec-breadcrumb {
  background: var(--idh-cream);
  border-bottom: 1px solid var(--idh-border);
  font-size: 14px;
}
.sec-breadcrumb .container { padding-block: 14px; }
.sec-breadcrumb ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.sec-breadcrumb li { color: var(--idh-muted); display: inline-flex; align-items: center; gap: 8px; }
.sec-breadcrumb li + li::before {
  content: "/"; color: var(--idh-muted); opacity: .55;
}
.sec-breadcrumb a { color: var(--idh-muted); }
.sec-breadcrumb a:hover { color: var(--idh-orange); text-decoration: none; }
.sec-breadcrumb [aria-current="page"] { color: var(--idh-text); font-weight: 600; }

/* ---------- Hero ---------- */
.sec-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 380px at 88% -10%, rgba(230, 84, 37, .12), transparent 60%),
    linear-gradient(180deg, #fff7f3 0%, #ffffff 100%);
  border-bottom: 1px solid var(--idh-border);
}
.sec-hero .container { padding-block: 72px; position: relative; z-index: 1; }
.sec-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--idh-orange);
  background: #fff;
  border: 1px solid var(--idh-tint);
  padding: 6px 12px; border-radius: 999px;
  box-shadow: var(--idh-shadow-sm);
}
.sec-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin: 18px 0 12px;
}
.sec-hero h1 .dot { color: var(--idh-orange); }
.sec-hero__subhead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--idh-text);
  font-weight: 600;
  max-width: 720px;
  margin: 0 0 8px;
}
.sec-hero__support {
  font-size: 16px; color: var(--idh-muted);
  max-width: 720px; margin: 0 0 26px;
}
.sec-hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.sec-hero__meta {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 22px;
  font-size: 13px; color: var(--idh-muted);
}
.sec-hero__meta strong { color: var(--idh-text); font-weight: 600; }

/* shield stat strip */
.sec-hero__strip {
  margin-top: 32px;
  display: grid; gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  background: var(--idh-border);
  border: 1px solid var(--idh-border);
  border-radius: var(--idh-radius-card);
  overflow: hidden;
}
.sec-hero__strip > div {
  background: #fff; padding: 18px 20px;
}
.sec-hero__strip .k {
  font-family: var(--idh-ff-display);
  font-size: 26px; color: var(--idh-text);
  line-height: 1.1;
}
.sec-hero__strip .l {
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--idh-muted); margin-top: 4px;
}

/* ---------- Buttons ---------- */
.sec-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--idh-ff-body); font-weight: 700;
  font-size: 15px; line-height: 1;
  padding: 13px 18px;
  border-radius: var(--idh-radius-btn);
  border: 1px solid transparent;
  cursor: pointer; transition: all .15s ease;
  text-decoration: none;
}
.sec-btn--primary {
  background: var(--idh-orange); color: #fff !important;
}
.sec-btn--primary:hover {
  background: var(--idh-orange-dark); color: #fff; text-decoration: none;
}
.sec-btn--ghost {
  background: #fff; color: var(--idh-text);
  border-color: var(--idh-border-strong);
}
.sec-btn--ghost:hover {
  border-color: var(--idh-text); color: var(--idh-text); text-decoration: none;
}

/* ---------- Layout ---------- */
.sec-shell { padding: 56px 0 80px; }
.sec-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
}
@media (max-width: 991.98px) {
  .sec-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- TOC ---------- */
.sec-toc {
  position: sticky; top: 20px;
  align-self: start;
  font-size: 14px;
}
.sec-toc__title {
  font-family: var(--idh-ff-body);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--idh-muted);
  padding: 0 12px 8px; margin: 0;
}
.sec-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.sec-toc li { counter-increment: toc; }
.sec-toc a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 8px 12px; border-radius: 6px;
  color: var(--idh-muted); border-left: 2px solid transparent;
  transition: all .15s ease; line-height: 1.35;
}
.sec-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--idh-ff-mono); font-size: 11px;
  color: var(--idh-muted); flex: 0 0 auto;
}
.sec-toc a:hover {
  color: var(--idh-text); background: var(--idh-cream); text-decoration: none;
}
.sec-toc a.is-active {
  color: var(--idh-orange); background: var(--idh-cream);
  border-left-color: var(--idh-orange); font-weight: 600;
}
.sec-toc a.is-active::before { color: var(--idh-orange); }

/* mobile TOC */
.sec-toc-mobile {
  display: none;
  margin-bottom: 12px;
}
@media (max-width: 991.98px) {
  .sec-toc { display: none; }
  .sec-toc-mobile { display: block; }
  .sec-toc-mobile details {
    border: 1px solid var(--idh-border);
    border-radius: var(--idh-radius-card);
    background: var(--idh-surface-2);
  }
  .sec-toc-mobile summary {
    padding: 14px 18px; cursor: pointer; font-weight: 700;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
  }
  .sec-toc-mobile summary::-webkit-details-marker { display: none; }
  .sec-toc-mobile summary .ti { transition: transform .2s; }
  .sec-toc-mobile details[open] summary .ti { transform: rotate(180deg); }
  .sec-toc-mobile ol {
    list-style: none; margin: 0; padding: 4px 10px 12px;
  }
  .sec-toc-mobile li a {
    display: block; padding: 8px 10px; border-radius: 6px;
    color: var(--idh-text); font-size: 14px;
  }
  .sec-toc-mobile li a:hover { background: var(--idh-cream); text-decoration: none; }
}

/* ---------- Sections ---------- */
.sec-section { padding-top: 8px; padding-bottom: 56px; scroll-margin-top: 20px; }
.sec-section + .sec-section { border-top: 1px solid var(--idh-border); padding-top: 48px; }

.sec-section__num {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--idh-ff-mono); font-size: 12px; font-weight: 600;
  color: var(--idh-orange); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 10px;
}
.sec-section__num::before {
  content: ""; width: 18px; height: 1px; background: var(--idh-orange);
}
.sec-section h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  margin: 0 0 14px;
}
.sec-section > p { color: var(--idh-text); max-width: 78ch; }
.sec-section h3 {
  font-size: 20px; margin: 28px 0 12px;
  font-family: var(--idh-ff-body); font-weight: 700; letter-spacing: 0;
}

/* TL;DR */
.tldr-summary {
  background: var(--idh-cream);
  border: 1px solid var(--idh-tint);
  border-left: 4px solid var(--idh-orange);
  border-radius: var(--idh-radius-card);
  padding: 22px 24px;
  margin: 0;
  font-size: 16px;
  color: var(--idh-text);
  max-width: none;
}
.tldr-summary strong { color: var(--idh-orange-dark); font-weight: 700; }

/* bullets */
.sec-list { padding: 0; margin: 10px 0 0; list-style: none; }
.sec-list li {
  position: relative; padding: 6px 0 6px 28px;
  border-bottom: 1px dashed var(--idh-border);
}
.sec-list li:last-child { border-bottom: none; }
.sec-list li::before {
  content: ""; position: absolute; left: 4px; top: 16px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--idh-orange);
}
.sec-list--check li::before {
  content: "\eb7b"; /* tabler check */
  font-family: 'tabler-icons';
  background: transparent;
  left: 0; top: 6px; width: auto; height: auto;
  color: var(--idh-success); font-size: 16px;
  border-radius: 0;
}

/* commitments inline list (vuln disclosure) */
.sec-commit {
  padding: 0; margin: 14px 0 0; list-style: none;
  display: grid; gap: 8px;
}
.sec-commit li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px;
  background: var(--idh-surface-2);
  border: 1px solid var(--idh-border);
  border-radius: 8px;
}
.sec-commit li .ti { color: var(--idh-success); flex: 0 0 auto; margin-top: 2px; }

/* ---------- Tables ---------- */
.sec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--idh-border);
  border-radius: var(--idh-radius-card);
  margin-top: 18px;
  background: #fff;
}
.sec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14.5px;
}
.sec-table thead th {
  background: var(--idh-surface-2);
  font-family: var(--idh-ff-body); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px;
  color: var(--idh-muted);
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--idh-border);
  white-space: nowrap;
}
.sec-table tbody td {
  padding: 14px 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--idh-border);
  color: var(--idh-text);
}
.sec-table tbody tr:last-child td { border-bottom: none; }
.sec-table tbody tr:hover td { background: #fffaf8; }
.sec-table td .mono { color: var(--idh-text); }
.sec-table td b { font-weight: 700; }

/* status pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
  letter-spacing: .02em;
}
.pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.pill--progress { color: var(--idh-warning); background: #fbf0dc; }
.pill--ok       { color: var(--idh-success); background: #dff4ec; }
.pill--planned  { color: #5a6470; background: #eef0f3; }
.pill--na       { color: #6a6a6a; background: #ececec; }

/* ---------- Contact cards ---------- */
.sec-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
@media (max-width: 767.98px) {
  .sec-cards { grid-template-columns: 1fr; }
}
.sec-card {
  border: 1px solid var(--idh-border);
  border-radius: var(--idh-radius-card);
  padding: 22px;
  background: #fff;
  transition: all .2s ease;
  display: flex; flex-direction: column;
}
.sec-card:hover {
  border-color: var(--idh-orange);
  box-shadow: var(--idh-shadow-md);
  transform: translateY(-2px);
}
.sec-card__icon {
  width: 40px; height: 40px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--idh-tint); color: var(--idh-orange);
  margin-bottom: 14px;
}
.sec-card__icon .ti { font-size: 22px; }
.sec-card h3 {
  font-family: var(--idh-ff-body); font-weight: 700;
  font-size: 16px; margin: 0 0 6px;
}
.sec-card p { color: var(--idh-muted); font-size: 14px; margin: 0 0 14px; flex: 1; }
.sec-card a.email {
  font-family: var(--idh-ff-mono); font-size: 13.5px;
  color: var(--idh-orange-dark); word-break: break-all;
}

.sec-address {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--idh-surface-2);
  border: 1px solid var(--idh-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--idh-text);
}
.sec-address strong { display: block; margin-bottom: 4px; font-weight: 700; }

/* subprocessor note */
.sec-note {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--idh-muted);
  padding-left: 14px;
  border-left: 3px solid var(--idh-tint);
}

/* ---------- Related strip ---------- */
.sec-related {
  border-top: 1px solid var(--idh-border);
  background: var(--idh-surface-2);
  padding: 48px 0;
}
.sec-related h2 {
  font-family: var(--idh-ff-body); font-weight: 700;
  font-size: 14px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--idh-muted); margin: 0 0 20px;
}
.sec-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 991.98px) { .sec-related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .sec-related__grid { grid-template-columns: 1fr; } }
.sec-related a {
  display: block; padding: 18px 20px;
  background: #fff; border: 1px solid var(--idh-border);
  border-radius: var(--idh-radius-card);
  color: var(--idh-text);
  transition: all .15s ease;
}
.sec-related a:hover {
  border-color: var(--idh-orange);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--idh-shadow-md);
}
.sec-related .ti {
  color: var(--idh-orange); font-size: 22px; margin-bottom: 10px; display: block;
}
.sec-related a strong {
  display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px;
}
.sec-related a span {
  color: var(--idh-muted); font-size: 13px;
}

/* ---------- Misc ---------- */
.sec-arch {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 18px;
}
@media (max-width: 767.98px) { .sec-arch { grid-template-columns: repeat(2, 1fr); } }
.sec-arch__cell {
  padding: 14px 16px;
  border: 1px solid var(--idh-border);
  border-radius: 8px;
  background: var(--idh-surface-2);
}
.sec-arch__cell .l {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--idh-muted); margin-bottom: 4px;
}
.sec-arch__cell .v {
  font-family: var(--idh-ff-mono);
  font-size: 14px; color: var(--idh-text); font-weight: 600;
}

/* ---------- Print ---------- */
@media print {
  .sec-breadcrumb,
  .sec-toc,
  .sec-toc-mobile,
  .sec-hero__actions,
  .sec-related,
  .site-footer { display: none !important; }
  .sec-grid { display: block !important; }
  .sec-hero { background: #fff !important; border-bottom: 2px solid #000; }
  .sec-section { page-break-inside: avoid; }
  .sec-table-wrap { overflow: visible; border-color: #000; }
  .sec-table thead th { background: #fff; color: #000; border-bottom: 1px solid #000; }
  a { color: #000 !important; text-decoration: underline; }
  body { font-size: 11pt; }
}
