/*
Theme Name: DAFormsHub
Author: DAFormsHub
Description: Directory style theme for DAFormsHub.
Version: 4.0.0
Text Domain: daformshub
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; background: #f5f6f7; color: #212529; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
    --white:     #ffffff;
    --bg:        #f5f6f7;
    --sl50:      #f8f9fa;
    --sl100:     #f1f3f5;
    --sl200:     #e9ecef;
    --sl300:     #dee2e6;
    --sl400:     #adb5bd;
    --sl500:     #868e96;
    --sl600:     #495057;
    --sl700:     #343a40;
    --sl800:     #212529;
    --teal:      #0f766e;
    --teal-mid:  #0d9488;
    --teal-lt:   #e6f7f5;
    --teal-bd:   #99e6e0;
    --green:     #2f9e44;
    --green-lt:  #ebfbee;
    --amber:     #e67700;
    --amber-lt:  #fff3bf;
    --red:       #c92a2a;
    --red-lt:    #fff0f0;
    --r:         6px;
    --rl:        10px;
    --b:         1px solid #e9ecef;
    --cw:        1140px;
    --sw:        210px;
}

/* NAV */
#site-header { background: var(--white); border-bottom: var(--b); position: sticky; top: 0; z-index: 200; }
.hdr { max-width: var(--cw); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 52px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-sq { width: 28px; height: 28px; background: var(--teal); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.logo-name { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; color: var(--sl800); letter-spacing: -0.02em; }
.logo-name span { color: var(--teal); }
.hdr-search { flex: 1; max-width: 360px; display: flex; align-items: center; background: var(--sl50); border: var(--b); border-radius: var(--r); overflow: hidden; }
.hdr-search:focus-within { border-color: var(--teal); }
.hdr-search input { flex: 1; border: none; outline: none; background: transparent; padding: 7px 10px; font-size: 13px; color: var(--sl800); font-family: inherit; }
.hdr-search input::placeholder { color: var(--sl400); }
.hdr-search button { background: var(--teal); border: none; color: #fff; padding: 0 13px; height: 34px; cursor: pointer; font-size: 12.5px; font-weight: 500; font-family: inherit; white-space: nowrap; }
.hdr-search button:hover { background: var(--teal-mid); }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a { font-size: 13px; color: var(--sl600); padding: 5px 10px; border-radius: 5px; }
.site-nav a:hover { background: var(--sl100); color: var(--sl800); }
.nav-cta { background: var(--teal) !important; color: #fff !important; font-weight: 500 !important; border-radius: var(--r) !important; }
.nav-cta:hover { background: var(--teal-mid) !important; }
.menu-btn { display: none; background: none; border: var(--b); border-radius: var(--r); padding: 5px 10px; cursor: pointer; color: var(--sl700); font-size: 13px; font-family: inherit; }

/* HERO SEARCH */
.s-hero { background: var(--white); border-bottom: var(--b); padding: 26px 0; }
.s-hero-in { max-width: var(--cw); margin: 0 auto; padding: 0 24px; }
.s-hero h1 { font-family: 'Sora', sans-serif; font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: var(--sl800); letter-spacing: -0.02em; margin-bottom: 4px; }
.s-hero p { font-size: 14px; color: var(--sl500); margin-bottom: 16px; }
.s-bar { display: flex; align-items: center; background: var(--white); border: 1.5px solid var(--sl300); border-radius: var(--rl); overflow: hidden; max-width: 620px; margin-bottom: 12px; }
.s-bar:focus-within { border-color: var(--teal); }
.s-bar svg { margin-left: 14px; flex-shrink: 0; }
.s-bar input { flex: 1; border: none; outline: none; padding: 12px; font-size: 14px; color: var(--sl800); font-family: inherit; background: transparent; }
.s-bar input::placeholder { color: var(--sl400); }
.s-bar button { background: var(--teal); color: #fff; border: none; padding: 0 22px; height: 46px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; white-space: nowrap; }
.s-bar button:hover { background: var(--teal-mid); }
.chips { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.chips-lbl { font-size: 12px; color: var(--sl400); }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 99px; border: var(--b); color: var(--sl600); background: var(--sl50); cursor: pointer; }
.chip:hover { background: var(--teal-lt); color: var(--teal); border-color: var(--teal-bd); }

/* STATS */
.stats { background: var(--sl50); border-bottom: var(--b); padding: 11px 0; }
.stats-in { max-width: var(--cw); margin: 0 auto; padding: 0 24px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.stat { font-size: 13px; color: var(--sl600); }
.stat strong { color: var(--sl800); font-weight: 600; }
.sdot { width: 4px; height: 4px; background: var(--sl300); border-radius: 50%; }

/* DIRECTORY */
.dir { max-width: var(--cw); margin: 0 auto; padding: 24px; display: grid; grid-template-columns: var(--sw) 1fr; gap: 22px; align-items: start; }
.cat-sb { position: sticky; top: 68px; max-height: calc(100vh - 88px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--sl200) transparent; }
.sb-ttl { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--sl400); padding-bottom: 8px; margin-bottom: 6px; border-bottom: var(--b); }
.cat-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.cat-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: var(--r); font-size: 13px; color: var(--sl700); cursor: pointer; border: 1px solid transparent; }
.cat-item:hover { background: var(--sl100); }
.cat-item.active { background: var(--teal-lt); color: var(--teal); border-color: var(--teal-bd); font-weight: 500; }
.cat-cnt { font-size: 11px; background: var(--sl100); color: var(--sl500); padding: 1px 6px; border-radius: 99px; }
.cat-item.active .cat-cnt { background: var(--teal); color: #fff; }
.sb-widget { background: var(--white); border: var(--b); border-radius: var(--rl); overflow: hidden; }
.sb-widget-ttl { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--sl500); padding: 9px 12px; border-bottom: var(--b); background: var(--sl50); }
.sb-link { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: var(--b); color: var(--sl700); font-size: 12.5px; }
.sb-link:last-child { border-bottom: none; }
.sb-link:hover { background: var(--sl50); }
.sb-num { font-size: 11.5px; font-weight: 600; color: var(--teal); min-width: 50px; }
.sb-name { flex: 1; font-size: 12px; color: var(--sl600); line-height: 1.3; }
.tag-new { font-size: 9.5px; font-weight: 600; padding: 1px 6px; border-radius: 99px; background: var(--teal-lt); color: var(--teal); border: 1px solid var(--teal-bd); white-space: nowrap; }

/* FORMS LIST */
.forms-main { min-width: 0; }
.ftoolbar { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.ftoolbar-ttl { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 600; color: var(--sl800); letter-spacing: -0.02em; }
.ftoolbar-sub { font-size: 12.5px; color: var(--sl500); margin-top: 2px; }
.view-all { font-size: 13px; font-weight: 500; color: var(--teal); }
.view-all:hover { text-decoration: underline; }

.how-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 16px; }
.how-card { background: var(--white); border: var(--b); border-radius: var(--rl); padding: 14px 16px; }
.how-n { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 700; color: var(--sl200); line-height: 1; margin-bottom: 8px; }
.how-t { font-size: 13px; font-weight: 600; color: var(--sl800); margin-bottom: 4px; }
.how-d { font-size: 12px; color: var(--sl500); line-height: 1.5; }

.flist { background: var(--white); border: var(--b); border-radius: var(--rl); overflow: hidden; margin-bottom: 20px; }
.flist-hdr { display: grid; grid-template-columns: 100px 1fr 130px 90px; padding: 9px 16px; background: var(--sl50); border-bottom: var(--b); }
.flist-lbl { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--sl400); }
.frow { display: grid; grid-template-columns: 100px 1fr 130px 90px; padding: 12px 16px; border-bottom: var(--b); align-items: center; cursor: pointer; }
.frow:last-child { border-bottom: none; }
.frow:hover { background: var(--sl50); }
.frow:hover .frow-name { color: var(--teal); }
.frow-num { font-size: 13px; font-weight: 600; color: var(--teal); }
.frow-name { font-size: 14px; font-weight: 500; color: var(--sl800); }
.frow-cat { font-size: 12px; color: var(--sl500); }

/* BADGES */
.b-active { display: inline-flex; align-items: center; gap: 4px; background: var(--green-lt); color: var(--green); font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 99px; }
.b-active::before { content: ''; width: 5px; height: 5px; background: var(--green); border-radius: 50%; display: block; }
.b-inactive { background: var(--red-lt); color: var(--red); font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 99px; display: inline-block; }
.b-pending { background: var(--amber-lt); color: var(--amber); font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 99px; display: inline-block; }

/* SINGLE POST */
.single-pg { max-width: var(--cw); margin: 0 auto; padding: 22px 24px 48px; display: grid; grid-template-columns: 1fr 255px; gap: 24px; align-items: start; }
.bc { grid-column: 1/-1; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sl500); flex-wrap: wrap; }
.bc a { color: var(--teal); }
.bc a:hover { text-decoration: underline; }

/* Hero */
.f-hero { background: var(--white); border: var(--b); border-radius: var(--rl); padding: 20px; margin-bottom: 14px; }
.f-pill { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); background: var(--teal-lt); border: 1px solid var(--teal-bd); padding: 3px 10px; border-radius: 99px; margin-bottom: 8px; }
.f-hero h1 { font-family: 'Sora', sans-serif; font-size: clamp(18px, 2.5vw, 24px); font-weight: 700; color: var(--sl800); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.f-intro { font-size: 14px; color: var(--sl600); line-height: 1.7; margin-bottom: 12px; }
.f-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.f-tag { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; border: var(--b); color: var(--sl600); background: var(--sl50); }
.f-meta { display: flex; gap: 0; border-top: var(--b); padding-top: 12px; flex-wrap: wrap; }
.mc { flex: 1; min-width: 90px; padding-right: 14px; }
.mc:not(:last-child) { border-right: var(--b); margin-right: 14px; }
.ml { font-size: 10px; color: var(--sl400); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.mv { font-size: 13px; font-weight: 500; color: var(--sl800); }

/* Editor content */
.f-content { background: var(--white); border: var(--b); border-radius: var(--rl); padding: 22px; margin-bottom: 14px; }
.f-content p { font-size: 14px; color: var(--sl600); line-height: 1.78; margin-bottom: 12px; }
.f-content p:last-child { margin-bottom: 0; }
.f-content h2 { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; color: var(--sl800); margin: 20px 0 10px; }
.f-content h3 { font-size: 15px; font-weight: 600; color: var(--sl800); margin: 16px 0 8px; }
.f-content ul { padding-left: 18px; margin-bottom: 12px; }
.f-content ul li { font-size: 14px; color: var(--sl600); line-height: 1.7; margin-bottom: 4px; }
.f-content ol { padding-left: 18px; margin-bottom: 12px; }
.f-content ol li { font-size: 14px; color: var(--sl600); line-height: 1.7; margin-bottom: 4px; }
.f-content strong { font-weight: 600; color: var(--sl800); }

/* Sidebar */
.f-sidebar { position: sticky; top: 68px; max-height: calc(100vh - 88px); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--sl200) transparent; }
.dl-card { background: var(--white); border: var(--b); border-radius: var(--rl); padding: 18px; margin-bottom: 14px; }
.dl-v { font-size: 11px; color: var(--sl400); margin-bottom: 2px; }
.dl-r { font-size: 13px; color: var(--sl700); font-weight: 500; margin-bottom: 14px; }
.btn-dl { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 10px 0; background: var(--teal); color: #fff; border: none; border-radius: var(--r); font-size: 13.5px; font-weight: 500; cursor: pointer; text-decoration: none; margin-bottom: 8px; font-family: inherit; }
.btn-dl:hover { background: var(--teal-mid); }
.btn-pv { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 9px 0; background: transparent; color: var(--sl600); border: var(--b); border-radius: var(--r); font-size: 13.5px; font-family: inherit; cursor: pointer; text-decoration: none; margin-bottom: 12px; }
.btn-pv:hover { background: var(--sl50); color: var(--sl800); }
.dl-div { border: none; border-top: var(--b); margin: 12px 0; }
.dl-note { font-size: 11.5px; color: var(--sl500); line-height: 1.6; }
.dl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.dl-stat { background: var(--sl50); border-radius: var(--r); padding: 9px; text-align: center; }
.dl-stat strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--sl800); }
.dl-stat span { font-size: 10.5px; color: var(--sl500); }

.rel-card { background: var(--white); border: var(--b); border-radius: var(--rl); overflow: hidden; margin-bottom: 14px; }
.rel-hd { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--sl500); padding: 9px 14px; background: var(--sl50); border-bottom: var(--b); }
.rel-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: var(--b); color: var(--sl700); }
.rel-row:last-child { border-bottom: none; }
.rel-row:hover { background: var(--sl50); }
.rel-num { font-size: 12px; font-weight: 600; color: var(--teal); min-width: 56px; }
.rel-name { flex: 1; font-size: 12.5px; color: var(--sl700); line-height: 1.3; }
.rel-arr { color: var(--sl400); font-size: 13px; }

.reg-card { background: var(--sl50); border: var(--b); border-radius: var(--rl); padding: 14px 16px; }
.reg-lbl { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--sl400); margin-bottom: 5px; }
.reg-name { font-size: 14px; font-weight: 600; color: var(--sl800); margin-bottom: 4px; }
.reg-desc { font-size: 12.5px; color: var(--sl600); line-height: 1.6; }

/* ARCHIVE */
.archive-pg { max-width: var(--cw); margin: 0 auto; padding: 24px; display: grid; grid-template-columns: var(--sw) 1fr; gap: 22px; align-items: start; }

/* FOOTER */
#site-footer { background: var(--white); border-top: var(--b); padding: 36px 0 20px; margin-top: 16px; }
.ftr-grid { max-width: var(--cw); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 24px; }
.ftr-brand p { font-size: 13px; color: var(--sl500); margin-top: 10px; line-height: 1.7; max-width: 240px; }
.ftr-col h4 { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sl400); margin-bottom: 12px; }
.ftr-col ul { display: flex; flex-direction: column; gap: 8px; }
.ftr-col a { font-size: 13px; color: var(--sl600); }
.ftr-col a:hover { color: var(--teal); }
.ftr-bot { max-width: var(--cw); margin: 0 auto; padding: 16px 24px 0; border-top: var(--b); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.ftr-copy { font-size: 12px; color: var(--sl400); }
.ftr-disc { font-size: 11.5px; color: var(--sl400); max-width: 480px; text-align: right; line-height: 1.5; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ══════════════════════════════════════════════════
   WORDPRESS EDITOR CONTENT — FULL OVERRIDE
   Fixes tables, columns, boxes, grids, lists,
   images, buttons and all block editor content
══════════════════════════════════════════════════ */

/* Base */
.entry-content {
    max-width: 100%;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--sl600);
}
.entry-content * { box-sizing: border-box; }

/* Paragraphs */
.entry-content p {
    font-size: 14.5px;
    color: var(--sl600);
    line-height: 1.78;
    margin-bottom: 14px;
    font-weight: 300;
}
.entry-content p:last-child { margin-bottom: 0; }
.entry-content strong { color: var(--sl700); font-weight: 500; }
.entry-content em { font-style: italic; }
.entry-content a { color: var(--teal); }
.entry-content a:hover { text-decoration: underline; }

/* Headings */
.entry-content h2 {
    font-size: 19px;
    font-weight: 600;
    color: var(--sl800);
    margin: 24px 0 11px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.entry-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--sl800);
    margin: 20px 0 9px;
}
.entry-content h4 {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--sl700);
    margin: 16px 0 7px;
}

/* Lists — override theme's ul { list-style:none } */
.entry-content ul {
    list-style: disc !important;
    padding-left: 22px !important;
    margin-bottom: 14px !important;
}
.entry-content ol {
    list-style: decimal !important;
    padding-left: 22px !important;
    margin-bottom: 14px !important;
}
.entry-content li {
    font-size: 14.5px;
    color: var(--sl600);
    line-height: 1.72;
    margin-bottom: 6px;
    font-weight: 300;
    display: list-item !important;
}

/* ── TABLES ── */
.entry-content table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    display: table !important;
    table-layout: auto;
    font-size: 13.5px;
    color: var(--sl600);
    border: var(--b);
    border-radius: var(--rl);
    overflow: hidden;
    margin-bottom: 16px;
}
.entry-content thead,
.wp-block-table thead {
    display: table-header-group !important;
    background: var(--sl50);
}
.entry-content tbody,
.wp-block-table tbody {
    display: table-row-group !important;
}
.entry-content tr,
.wp-block-table tr {
    display: table-row !important;
    width: auto !important;
    float: none !important;
}
.entry-content th,
.wp-block-table th {
    display: table-cell !important;
    padding: 9px 13px;
    text-align: left;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sl500);
    border-bottom: var(--b);
    background: var(--sl50);
    white-space: nowrap;
    float: none !important;
    width: auto !important;
}
.entry-content td,
.wp-block-table td {
    display: table-cell !important;
    padding: 11px 13px;
    text-align: left;
    border-bottom: var(--b);
    vertical-align: top;
    float: none !important;
    width: auto !important;
    font-weight: 300;
    line-height: 1.58;
    color: var(--sl600);
}
.entry-content tbody tr:last-child td,
.wp-block-table tbody tr:last-child td { border-bottom: none; }
.entry-content tbody tr:hover td,
.wp-block-table tbody tr:hover td { background: var(--sl50); }
.entry-content .wp-block-table,
.entry-content figure.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
}
.wp-block-table table { min-width: 400px; }

/* ── COLUMNS BLOCK ── */
.entry-content .wp-block-columns {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
}
.entry-content .wp-block-column {
    display: block !important;
    flex: 1 1 200px;
    min-width: 0;
}
.entry-content .wp-block-column > *:first-child { margin-top: 0; }
.entry-content .wp-block-column > *:last-child { margin-bottom: 0; }

/* ── GROUP BLOCK (boxes / sections) ── */
.entry-content .wp-block-group {
    border-radius: var(--rl);
    margin-bottom: 16px;
}
.entry-content .wp-block-group.has-background {
    padding: 18px 20px;
}
.entry-content .wp-block-group > *:first-child { margin-top: 0; }
.entry-content .wp-block-group > *:last-child { margin-bottom: 0; }

/* ── BLOCKQUOTE ── */
.entry-content blockquote,
.entry-content .wp-block-quote {
    border-left: 3px solid var(--teal);
    padding: 12px 16px;
    margin: 16px 0;
    background: var(--teal-lt);
    border-radius: 0 8px 8px 0;
}
.entry-content blockquote p,
.entry-content .wp-block-quote p {
    color: #084d48;
    font-style: italic;
    margin-bottom: 0;
}

/* ── BUTTONS ── */
.entry-content .wp-block-buttons {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.entry-content .wp-block-button__link {
    background: var(--teal);
    color: #fff;
    border-radius: var(--r);
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s;
    font-family: inherit;
}
.entry-content .wp-block-button__link:hover {
    background: var(--teal-mid);
    color: #fff;
    text-decoration: none;
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--teal);
    border: 1px solid var(--teal);
}

/* ── IMAGES ── */
.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 7px;
}
.entry-content figure { margin: 0 0 16px; }
.entry-content figcaption {
    font-size: 12px;
    color: var(--sl400);
    text-align: center;
    margin-top: 6px;
}

/* ── SEPARATOR ── */
.entry-content hr,
.entry-content .wp-block-separator {
    border: none;
    border-top: var(--b);
    margin: 22px 0;
}

/* ── CODE ── */
.entry-content code {
    background: var(--sl100);
    color: var(--red);
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}
.entry-content pre {
    background: var(--sl800);
    color: var(--sl50);
    padding: 16px 18px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    margin-bottom: 16px;
}

/* ── DETAILS / ACCORDION (WP 6.4+) ── */
.entry-content .wp-block-details {
    border: var(--b);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    background: var(--white);
}
.entry-content .wp-block-details summary {
    font-weight: 500;
    color: var(--sl800);
    cursor: pointer;
    font-size: 14.5px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.entry-content .wp-block-details summary::after {
    content: '+';
    color: var(--teal);
    font-size: 18px;
    line-height: 1;
}
.entry-content .wp-block-details[open] summary::after { content: '−'; }
.entry-content .wp-block-details p {
    margin-top: 10px;
    margin-bottom: 0;
}

/* ── MEDIA & TEXT ── */
.entry-content .wp-block-media-text {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 16px;
}
.entry-content .wp-block-media-text__media img {
    width: 100%;
    border-radius: 8px;
}
.entry-content .wp-block-media-text__content { padding: 0; }

/* ── GALLERY ── */
.entry-content .wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.entry-content .wp-block-gallery figure { margin: 0; }
.entry-content .wp-block-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 7px;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .dir, .archive-pg { grid-template-columns: 1fr; }
    .cat-sb { position: static; max-height: none; }
    .how-row { grid-template-columns: 1fr 1fr; }
    .single-pg { grid-template-columns: 1fr; }
    .f-sidebar { position: static; max-height: none; order: -1; }
}
@media (max-width: 660px) {
    .site-nav { display: none; }
    .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 52px; left: 0; right: 0; background: var(--white); border-bottom: var(--b); padding: 10px 20px; z-index: 300; }
    .menu-btn { display: block; }
    .hdr-search { display: none; }
    .ftr-grid { grid-template-columns: 1fr 1fr; }
    .ftr-disc { text-align: left; }
    .flist-hdr, .frow { grid-template-columns: 90px 1fr 80px; }
    .flist-hdr .flist-lbl:nth-child(3), .frow .frow-cat { display: none; }
    .how-row { grid-template-columns: 1fr; }

    /* Editor content mobile */
    .entry-content .wp-block-columns { flex-direction: column; }
    .entry-content .wp-block-column { flex: 1 1 100% !important; min-width: 100%; }
    .entry-content .wp-block-media-text { grid-template-columns: 1fr; }
    .entry-content table,
    .wp-block-table table { min-width: 460px; }
    .entry-content figure.wp-block-table,
    .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .entry-content h2 { font-size: 17px; }
    .entry-content h3 { font-size: 15px; }
}
