/* ============================================================
   iso27001_enhanced.css — v6
   Link AFTER your base stylesheet.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600&family=Syne:wght@700&display=swap');

.how-to-setup5 .aiact-obligations-col {
    font-family: 'DM Sans', sans-serif;
}

/* ── Kill base-CSS green dots and duplicate +/− ── */
.how-to-setup5 .aiact-row::before,
.how-to-setup5 .aiact-row-header::before,
.how-to-setup5 .aiact-row-header::after {
    display: none !important;
    content: none !important;
}

/* ── Vertically centre the right collage ── */
.how-to-setup5 .aiact-body {
    align-items: center !important;
}

/* ═══════════════════════════════
   EYEBROW PILL
   ═══════════════════════════════ */
.how-to-setup5 .iso27-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #1a7a4a;
    background: #e8f5ee;
    border: 1px solid #b6dfc8;
    border-radius: 100px;
    padding: 5px 14px;
    margin-bottom: 18px;
    width: fit-content;
}
.how-to-setup5 .iso27-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1a7a4a;
    flex-shrink: 0;
}

/* ═══════════════════════════════
   TITLE + SUBTITLE
   ═══════════════════════════════ */
.how-to-setup5 .iso27-col-title {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;       /* removed negative tracking — keeps "27001" flush with text */
    color: #000319;
    margin: 0 0 10px;
}
.how-to-setup5 .iso27-col-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(0, 3, 24, 0.52);
    margin: 0 0 22px;
}

/* ═══════════════════════════════
   CARD
   ═══════════════════════════════ */
.how-to-setup5 .aiact-card {
    border-radius: 16px !important;
    background-color: #f7faf8 !important;
    border: 1px solid #dfe5ed !important;
    padding: 0 20px !important;
    overflow: visible !important; /* must be visible for tooltip to escape */
}

/* ═══════════════════════════════
   ROWS
   ═══════════════════════════════ */
.how-to-setup5 .aiact-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 13px 0 !important;
    border-bottom: 1px solid #e4eaef !important;
}
.how-to-setup5 .aiact-row--last {
    border-bottom: none !important;
}
.how-to-setup5 .aiact-row--expandable {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    gap: 0 !important;
    border-bottom: 1px solid #e4eaef !important;
}
.how-to-setup5 .aiact-row--expandable.aiact-row--last {
    border-bottom: none !important;
}

/* ═══════════════════════════════
   ROW HEADER
   ═══════════════════════════════ */
.how-to-setup5 .aiact-row-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 13px 0 !important;
    cursor: pointer;
    user-select: none;
    background: transparent;
    transition: background 0.15s;
    overflow: visible !important;
    position: static !important;
}
.how-to-setup5 .aiact-row-header:hover {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 6px;
}
/* Locked headers — not clickable */
.how-to-setup5 .aiact-row-header[aria-disabled="true"] {
    cursor: default;
    pointer-events: none; /* row itself not clickable */
}

/* ═══════════════════════════════
   NUMBER BADGE
   ═══════════════════════════════ */
.how-to-setup5 .iso27-num {
    flex-shrink: 0;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: #e8f5ee;
    border: 1px solid #b6dfc8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #1a7a4a;
    letter-spacing: 0;
}

/* ═══════════════════════════════
   ROW TEXT
   ═══════════════════════════════ */
.how-to-setup5 .aiact-row-text {
    flex: 1 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #000319 !important;
}

/* ═══════════════════════════════
   +/− TOGGLE (free rows)
   ═══════════════════════════════ */
.how-to-setup5 .aiact-chevron-icon { display: none !important; }

.how-to-setup5 .iso27-toggle {
    flex-shrink: 0;
    margin-left: auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #dfe5ed;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: rgba(0, 3, 24, 0.35);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    pointer-events: none;
}
.how-to-setup5 .iso27-toggle::before { content: "+"; }
.how-to-setup5 .obligation-item.open .iso27-toggle {
    background: #1a7a4a;
    border-color: #1a7a4a;
    color: #ffffff;
}
.how-to-setup5 .obligation-item.open .iso27-toggle::before { content: "−"; }

/* ═══════════════════════════════
   LOCK ICON + TOOLTIP
   ═══════════════════════════════ */
.how-to-setup5 .iso27-lock-wrap {
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
    pointer-events: auto; /* re-enable on the lock only */
    display: inline-flex;
    align-items: center;
}

.how-to-setup5 .iso27-lock-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: default;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.how-to-setup5 .iso27-lock-wrap:hover .iso27-lock-icon {
    background: #e8f5ee;
    border-color: #b6dfc8;
    color: #1a7a4a;
}

/* Tooltip bubble */
.how-to-setup5 .iso27-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #000319;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.55;
    padding: 10px 13px;
    border-radius: 10px;
    pointer-events: none;
    white-space: normal;
    z-index: 100;
}
.how-to-setup5 .iso27-tooltip strong {
    color: #7fe0a8;
    font-weight: 600;
}
/* Arrow pointing down */
.how-to-setup5 .iso27-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 8px;
    border: 6px solid transparent;
    border-top-color: #000319;
}
/* Show on hover */
.how-to-setup5 .iso27-lock-wrap:hover .iso27-tooltip {
    display: block;
}

/* ═══════════════════════════════
   EXPANDED BODY
   ═══════════════════════════════ */
.how-to-setup5 .aiact-row-body {
    padding: 0 0 14px 39px !important;
}
.how-to-setup5 .aiact-row-body[hidden] { display: none !important; }

.how-to-setup5 .aiact-row-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.how-to-setup5 .aiact-row-list li {
    position: relative;
    padding-left: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(0, 3, 24, 0.55);
}
.how-to-setup5 .aiact-row-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1a7a4a;
    opacity: 0.45;
}

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
.how-to-setup5 .iso27-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.how-to-setup5 .iso27-footer-meta {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(0, 3, 24, 0.32);
    letter-spacing: 0.01em;
}
.how-to-setup5 .iso27-footer-cta {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1a7a4a;
    text-decoration: none;
    background: #e8f5ee;
    border: 1px solid #b6dfc8;
    border-radius: 8px;
    padding: 7px 16px;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}
.how-to-setup5 .iso27-footer-cta:hover {
    background: #d4edd9;
    border-color: #7ec49a;
}


.how-to-setup5 .iso27-tooltip-cta {
    color: #4cde8a;
    font-weight: 600;
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (max-width: 768px) {
    .how-to-setup5 .iso27-col-title  { font-size: 24px; }
    .how-to-setup5 .aiact-card       { padding: 0 14px !important; }
    .how-to-setup5 .aiact-body       { align-items: flex-start !important; }
    .how-to-setup5 .iso27-footer     { flex-direction: column; align-items: flex-start; }
    .how-to-setup5 .iso27-footer-cta { width: 100%; text-align: center; }
    .how-to-setup5 .iso27-tooltip    { right: auto; left: auto; width: 200px; }
}
@media (max-width: 480px) {
    .how-to-setup5 .iso27-col-title  { font-size: 22px; }
    .how-to-setup5 .iso27-eyebrow    { font-size: 10px; }
    .how-to-setup5 .aiact-row-text   { font-size: 14px !important; }
}