/*
Theme Name: N. Mehta & Associates
Theme URI: https://www.csnmehta.in/
Author: N. Mehta & Associates
Description: Royal blue and gold block theme for N. Mehta & Associates, Company Secretaries, Bhilwara. Every page, heading, paragraph and photo is editable in the WordPress editor.
Version: 1.6.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nma-associates
*/

/* ---------- Base ---------- */
[id] { scroll-margin-top: 100px; }
body { -webkit-font-smoothing: antialiased; }
a:focus-visible, button:focus-visible, .wp-element-button:focus-visible { outline: 3px solid var(--wp--preset--color--gold); outline-offset: 3px; }
.wp-site-blocks > main { margin-block-start: 0; }

/* ---------- Header ---------- */
.wp-site-blocks > .wp-block-template-part:has(> .nma-header) { position: sticky; top: 0; z-index: 100; }
.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .nma-header) { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > .wp-block-template-part:has(> .nma-header) { top: 46px; } }
html { scroll-padding-top: 96px; }
.nma-header { z-index: 50; background: #fff; border-bottom: 1px solid var(--wp--preset--color--line); }
.admin-bar .nma-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nma-header { top: 46px; } }
.nma-header > .alignwide { min-height: 76px; }
.nma-wordmark { display: inline-flex; align-items: baseline; gap: .38em; text-decoration: none; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: clamp(1.25rem, 2.1vw, 1.7rem); line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.nma-wordmark__cs { color: var(--wp--preset--color--icsi-blue); }
.nma-wordmark__firm { color: var(--wp--preset--color--gold-deep); }
.nma-wordmark:hover .nma-wordmark__firm { color: var(--wp--preset--color--gold); }
@media (max-width: 420px) { .nma-wordmark { font-size: 1.12rem; } }
.nma-header .wp-block-navigation a { font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nma-header .wp-block-navigation a:hover,
.nma-header .wp-block-navigation .current-menu-item > a { border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--royal); }
.nma-header .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; border-top: 6px solid var(--wp--preset--color--gold); }
.nma-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; padding-top: 48px; }
.nma-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; gap: 4px; width: 100%; }
.nma-header .wp-block-navigation__responsive-container.is-menu-open { --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; }
.nma-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; justify-content: flex-start; text-align: left; border-bottom: 1px solid var(--wp--preset--color--line); }
.nma-header .wp-block-navigation__responsive-container.is-menu-open a { font-family: var(--wp--preset--font-family--heading); font-size: 1.25rem; font-weight: 600; color: var(--wp--preset--color--royal-deep); padding: 12px 0; border-bottom: 0; }

/* ---------- Page banner (inner pages) ---------- */
.nma-banner { background: var(--wp--preset--color--royal); color: #fff; padding: 64px 24px 56px; border-bottom: 6px solid var(--wp--preset--color--gold); }
.nma-banner h1 { color: #fff; margin: 0; }

/* ---------- Hero ---------- */
.nma-hero { background: var(--wp--preset--color--royal); color: #fff; border-bottom: 6px solid var(--wp--preset--color--gold); padding: 88px 24px 96px; }
.nma-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.3vw, 2.7rem); max-width: 22ch; line-height: 1.15; margin-bottom: .55em; }
.nma-hero p { color: #DDE4FA; font-size: 1.08rem; max-width: 60ch; margin: 0 0 .8em; }
.nma-hero .wp-block-image img { max-width: 380px; margin-inline: auto; display: block; }
.nma-hero .wp-block-columns { align-items: center; gap: 48px; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-gold .wp-block-button__link { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--royal-deep); border: 2px solid var(--wp--preset--color--gold); }
.wp-block-button.is-style-gold .wp-block-button__link:hover { background: #D9B24A; }
.wp-block-button.is-style-outline-light .wp-block-button__link { background: transparent; color: #fff; border: 2px solid var(--wp--preset--color--gold); }
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: rgba(255,255,255,.08); }

/* ---------- Sections ---------- */
.nma-section { padding: 88px 24px; }
.nma-section.is-tint { background: var(--wp--preset--color--paper); }
.nma-section.is-gold { background: var(--wp--preset--color--gold-soft); }
.nma-intro { color: var(--wp--preset--color--muted); }
.nma-intro-wrap > .nma-intro { max-width: 62ch; margin-left: 0; margin-right: auto; }

/* Ruled grid used for services and the associate network */
.nma-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 0 !important; border-top: 2px solid var(--wp--preset--color--royal-deep); }
.nma-grid > * { margin: 0 !important; padding: 28px 26px 30px; border-bottom: 1px solid var(--wp--preset--color--line); border-left: 1px solid var(--wp--preset--color--line); }
.nma-grid > *:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.nma-grid h3 { font-size: 1.12rem; color: var(--wp--preset--color--royal); margin: 0 0 8px; }
.nma-grid p { font-size: .98rem; color: var(--wp--preset--color--muted); margin: 0; }
.nma-grid p + p { margin-top: 12px; }
.nma-grid.is-four { grid-template-columns: repeat(4, 1fr); border-top-color: #DCCB94; border-top-width: 1px; }
.nma-grid.is-four > * { border-left: 0; padding: 20px 18px 20px 0; border-bottom-color: #DCCB94; }
.nma-grid.is-four h3 { color: var(--wp--preset--color--royal-deep); font-size: 1rem; margin-bottom: 2px; }
.nma-grid.is-four p { color: #5E5232; font-size: .92rem; }
.nma-more a { font-weight: 600; text-decoration: none; color: var(--wp--preset--color--royal-deep); border-bottom: 2px solid var(--wp--preset--color--gold); }

/* Founder */
.nma-founder .wp-block-image img { border-radius: 8px; border-bottom: 6px solid var(--wp--preset--color--gold); width: 100%; height: auto; }
.nma-creds { list-style: none; padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.nma-creds li { padding-left: 22px; position: relative; }
.nma-creds li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; background: var(--wp--preset--color--gold); transform: rotate(45deg); }

/* Resource panels */
.nma-panels { gap: 24px; }
.nma-panel { border: 1px solid var(--wp--preset--color--line); border-radius: 8px; padding: 30px !important; background: #fff; }
.nma-panel.is-dark { background: var(--wp--preset--color--royal-deep); border-color: var(--wp--preset--color--royal-deep); color: #fff; }
.nma-panel.is-dark h3, .nma-panel.is-dark a { color: #fff; }
.nma-panel.is-dark p, .nma-panel.is-dark li { color: #C9D3F5; }
.nma-panel h3 { margin-top: 0; color: var(--wp--preset--color--royal); }
.nma-panel p { color: var(--wp--preset--color--muted); }

/* Headings inside reading-width pages */
.nma-section h2.wp-block-heading[id] { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 2.4em; }

/* Tables (Knowledge Bank) */
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: .98rem; }
.wp-block-table th { background: var(--wp--preset--color--royal-deep); color: #fff; text-align: left; font-weight: 600; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--wp--preset--color--line); padding: 10px 14px; }
.wp-block-table tbody tr:nth-child(even) td { background: var(--wp--preset--color--paper); }
.wp-block-table figcaption { font-size: .88rem; color: var(--wp--preset--color--muted); text-align: left; }
.nma-note { font-size: .92rem; color: var(--wp--preset--color--muted); border-left: 3px solid var(--wp--preset--color--gold); padding-left: 14px; }

/* Stories */
.nma-cards .wp-block-post { border: 1px solid var(--wp--preset--color--line); border-radius: 8px; padding: 24px; background: #fff; }
.nma-cards .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--royal-deep); }
.nma-cards .wp-block-post-title a:hover { color: var(--wp--preset--color--royal); }
.nma-meta { color: var(--wp--preset--color--muted); font-size: .9rem; }

/* Footer */
.nma-footer { background: var(--wp--preset--color--royal-deep); color: #C9D3F5; padding: 56px 24px 30px; font-size: .92rem; }
.nma-footer h3, .nma-footer strong { color: #fff; }
.nma-footer a { color: #C9D3F5; text-decoration: none; }
.nma-footer a:hover { color: var(--wp--preset--color--gold); }
.nma-footer ul { list-style: none; padding-left: 0; }
.nma-footer .nma-disc { border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px; font-size: .85rem; color: #AAB6E0; }

/* WhatsApp button */
.nma-wa { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(15,36,102,.3); z-index: 60; }

/* Disclaimer gate (ICSI Guidelines, 2023, cl. 6.6(ii)) */
.nma-gate { position: fixed; inset: 0; z-index: 9999; background: rgba(15,36,102,.82); display: none; align-items: center; justify-content: center; padding: 20px; }
.nma-gate.is-open { display: flex; }
.nma-gate__box { background: #fff; max-width: 640px; width: 100%; max-height: 86vh; overflow: auto; border-radius: 10px; border-top: 6px solid var(--wp--preset--color--gold); padding: 32px; }
.nma-gate__box h2 { margin-top: 0; font-size: 1.5rem; color: var(--wp--preset--color--royal-deep); }
.nma-gate__box p { font-size: .98rem; }
.nma-gate__actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.nma-gate__actions button, .nma-gate__actions a { font: inherit; font-weight: 600; padding: 12px 22px; border-radius: 6px; cursor: pointer; text-decoration: none; }
.nma-gate__agree { background: var(--wp--preset--color--royal); color: #fff; border: 2px solid var(--wp--preset--color--royal); }
.nma-gate__exit { background: #fff; color: var(--wp--preset--color--royal-deep); border: 2px solid var(--wp--preset--color--line); }

/* Tools (Corporate AI) */
.nma-tool { border: 1px solid var(--wp--preset--color--line); border-top: 4px solid var(--wp--preset--color--gold); border-radius: 8px; padding: 28px; margin: 28px 0; background: #fff; }
.nma-tool h3 { margin-top: 0; color: var(--wp--preset--color--royal-deep); }
.nma-tool label { display: block; font-weight: 600; margin: 14px 0 6px; }
.nma-tool input, .nma-tool select { display: block; font: inherit; padding: 10px 12px; border: 1px solid #AEB8D6; border-radius: 6px; width: 100%; max-width: 360px; }
.nma-tool button { display: block; font: inherit; font-weight: 600; margin-top: 18px; padding: 12px 22px; border-radius: 6px; border: 0; background: var(--wp--preset--color--royal); color: #fff; cursor: pointer; }
.nma-tool button:hover { background: var(--wp--preset--color--royal-deep); }
.nma-result { margin-top: 20px; padding: 18px; background: var(--wp--preset--color--paper); border-radius: 6px; display: none; }
.nma-result.is-shown { display: block; }
.nma-result table { width: 100%; border-collapse: collapse; }
.nma-result td, .nma-result th { padding: 8px 10px; border-bottom: 1px solid var(--wp--preset--color--line); text-align: left; }
.nma-small { font-size: .88rem; color: var(--wp--preset--color--muted); margin-top: 14px; }

/* Eye and visualization exercises (Spiritual Corner) */
.nma-calm [hidden] { display: none !important; }
.nma-calm { border: 1px solid var(--wp--preset--color--line); border-top: 4px solid var(--wp--preset--color--gold); border-radius: 8px; padding: 24px; background: #fff; }
.nma-calm__controls { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; }
.nma-calm__controls label { max-width: 100%; display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.nma-calm__controls select { max-width: 100%; font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid #AEB8D6; border-radius: 6px; }
.nma-calm__controls .nma-calm__check { flex-direction: row; align-items: center; font-weight: 500; }
.nma-calm__stage { position: relative; margin-top: 20px; aspect-ratio: 16 / 7; max-height: 340px; width: 100%; border-radius: 10px; background: radial-gradient(ellipse at center, #1A3A9C 0%, #0F2466 75%); overflow: hidden; }
.nma-calm__dot { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--wp--preset--color--gold); box-shadow: 0 0 0 6px rgba(201,160,52,.25); transition: transform .9s ease; will-change: transform; }
.nma-calm__stage[data-mode="h"] .nma-calm__dot, .nma-calm__stage[data-mode="v"] .nma-calm__dot, .nma-calm__stage[data-mode="circle"] .nma-calm__dot, .nma-calm__stage[data-mode="circleRev"] .nma-calm__dot, .nma-calm__stage[data-mode="eight"] .nma-calm__dot { transition: none; }
.nma-calm__orb { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; max-width: 300px; margin: 0; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(243,231,196,.55) 0%, rgba(201,160,52,.22) 55%, rgba(201,160,52,0) 72%); display: grid; place-items: center; color: #fff; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: clamp(1rem, 2.4vw, 1.4rem); }
.nma-calm__text { min-height: 3.2em; margin: 18px 0 10px; font-size: 1.15rem; color: var(--wp--preset--color--royal-deep); }
.nma-calm__bar { height: 6px; background: var(--wp--preset--color--line); border-radius: 3px; overflow: hidden; }
.nma-calm__bar span { display: block; height: 100%; width: 0; background: var(--wp--preset--color--gold); }
.nma-calm__actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.nma-calm__actions button { font: inherit; font-weight: 600; padding: 12px 26px; border-radius: 6px; border: 2px solid var(--wp--preset--color--royal); background: var(--wp--preset--color--royal); color: #fff; cursor: pointer; }
.nma-calm__actions button.is-secondary { background: #fff; color: var(--wp--preset--color--royal-deep); border-color: var(--wp--preset--color--line); }
.nma-calm__actions button:disabled { opacity: .5; cursor: default; }
.nma-calm__clock { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--wp--preset--color--muted); }

/* Map with fallback card (shown if the map cannot load) */
.nma-map { position: relative; min-height: 420px; border-radius: 8px; overflow: hidden; background: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--line); }
.nma-map__fallback { position: absolute; inset: 0; display: block; text-decoration: none; }
.nma-map__fallback img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nma-map__card { position: absolute; left: 16px; bottom: 16px; display: grid; gap: 2px; background: #fff; padding: 14px 16px; border-radius: 8px; border-left: 4px solid var(--wp--preset--color--gold); box-shadow: 0 8px 22px rgba(15,36,102,.18); color: var(--wp--preset--color--muted); font-size: .92rem; max-width: 80%; }
.nma-map__card strong { color: var(--wp--preset--color--royal-deep); font-size: 1.02rem; }
.nma-map__card em { font-style: normal; font-weight: 600; color: var(--wp--preset--color--royal); margin-top: 4px; }
.nma-map__fallback small { position: absolute; right: 6px; bottom: 4px; font-size: .72rem; background: rgba(255,255,255,.8); padding: 1px 6px; border-radius: 3px; color: #444; }
.nma-map iframe { position: relative; z-index: 1; display: block; width: 100%; height: 420px; border: 0; }

/* Dropdown sub-tabs */
.nma-header .wp-block-navigation .wp-block-navigation__container { gap: 4px 22px; }
.nma-header .wp-block-navigation .wp-block-navigation-item__content { font-size: .98rem; }
.nma-header .wp-block-navigation .wp-block-navigation__submenu-icon { width: .6em; height: .6em; }
@media (min-width: 600px) and (max-width: 1180px) {
  .nma-header .wp-block-navigation .wp-block-navigation__container { gap: 4px 14px; }
  .nma-header .wp-block-navigation .wp-block-navigation-item__content { font-size: .9rem; }
  .nma-wordmark { font-size: 1.2rem; }
}
.nma-header .wp-block-navigation .wp-block-navigation__submenu-container { background: #fff; border: 1px solid var(--wp--preset--color--line) !important; border-top: 3px solid var(--wp--preset--color--gold) !important; border-radius: 0 0 8px 8px; box-shadow: 0 12px 28px rgba(15,36,102,.12); padding: 8px 0; min-width: 240px !important; }
.nma-header .wp-block-navigation .wp-block-navigation__submenu-container a { padding: 9px 18px !important; border-bottom: 0 !important; font-size: .95rem; white-space: nowrap; }
.nma-header .wp-block-navigation .wp-block-navigation__submenu-container a:hover { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--royal); }
.nma-header .wp-block-navigation .wp-block-navigation__submenu-icon { margin-left: 4px; }
.nma-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none; padding: 0 0 8px 0; min-width: 0 !important; }
.nma-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a { font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 500; color: var(--wp--preset--color--muted); padding: 6px 0 !important; }

/* Compliance applicability checker */
.nma-check fieldset { border: 1px solid var(--wp--preset--color--line); border-radius: 8px; padding: 6px 18px 18px; margin: 18px 0 0; }
.nma-check legend { font-weight: 700; color: var(--wp--preset--color--royal-deep); padding: 0 6px; }
.nma-check .nma-inline { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; margin: 12px 0 0; }
.nma-check .nma-inline input { width: auto; margin-top: 5px; }
.nma-grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.nma-grid-form input, .nma-grid-form select { max-width: 100%; }
.nma-check__summary { font-size: 1.05rem; }
.nma-check h4 { margin: 22px 0 8px; color: var(--wp--preset--color--royal-deep); font-size: 1.05rem; }
.nma-check__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.nma-check__list li { display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding: 12px; border-radius: 6px; background: #fff; border: 1px solid var(--wp--preset--color--line); }
.nma-check__list p { margin: 4px 0 0; font-size: .95rem; }
.nma-check__law { color: var(--wp--preset--color--muted); font-size: .85rem !important; }
.nma-check__badge { align-self: start; text-align: center; font-size: .82rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; }
.is-yes .nma-check__badge { background: var(--wp--preset--color--royal); color: #fff; }
.is-no .nma-check__badge { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--muted); border: 1px solid var(--wp--preset--color--line); }
.is-check .nma-check__badge { background: var(--wp--preset--color--gold-soft); color: #6B5310; }
.nma-check__copy { background: #fff !important; color: var(--wp--preset--color--royal-deep) !important; border: 2px solid var(--wp--preset--color--line) !important; }

/* Deadlines strip (home) */
.nma-strip { background: var(--wp--preset--color--royal-deep); color: #fff; padding: 22px 24px; }
.nma-deadlines { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: center; }
.nma-deadlines__title { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 700; color: var(--wp--preset--color--gold); }
.nma-deadlines ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nma-deadlines li { display: grid; gap: 2px; padding-left: 12px; border-left: 2px solid var(--wp--preset--color--gold); font-size: .92rem; color: #DDE4FA; }
.nma-deadlines time { font-weight: 700; color: #fff; }
.nma-deadlines em { font-style: normal; color: var(--wp--preset--color--gold-soft); font-size: .85rem; }
.nma-deadlines .nma-small { grid-column: 1 / -1; margin: 6px 0 0; color: #AAB6E0; }
.nma-deadlines .nma-small a { color: #fff; }

/* Story dates */
.nma-dates { gap: 6px 18px; color: #DDE4FA; font-size: .95rem; }
.nma-updated::before { content: "Updated "; }

/* Justified paragraphs (add the class nma-justify to any paragraph under Advanced → Additional CSS class) */
.nma-justify { text-align: justify; hyphens: manual; }

/* Two-column sub-pages: content left, side panel right */
.nma-split { gap: 48px; align-items: flex-start !important; }
.nma-split__main > :first-child { margin-top: 0; }
.nma-split__main { min-width: 0; }
.nma-split__main input, .nma-split__main select, .nma-split__main textarea { box-sizing: border-box; max-width: 100%; }
.nma-split__main h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.nma-split .nma-intro-wrap > .nma-intro { max-width: none; font-size: 1.15rem; }
.nma-aside { position: sticky; top: 100px; align-self: flex-start; display: flex; flex-direction: column; gap: 20px; }
.admin-bar .nma-aside { top: 132px; }
.nma-aside__card { background: var(--wp--preset--color--royal-deep); color: #fff; border-radius: 10px; padding: 24px; border-top: 5px solid var(--wp--preset--color--gold); }
.nma-aside__card h3 { margin: 0 0 8px; color: #fff; font-size: 1.25rem; }
.nma-aside__card p { margin: 0 0 16px; color: #D6DDF3; font-size: .98rem; }
.nma-aside__buttons { flex-direction: column; align-items: stretch !important; gap: 10px; }
.nma-aside__buttons .wp-block-button, .nma-aside__buttons .wp-block-button__link { width: 100%; text-align: center; box-sizing: border-box; }
.nma-aside__buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--royal-deep); }
.nma-aside__buttons .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.nma-aside__buttons .is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.1); }
.nma-aside__nav { border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 18px 20px; background: #fff; }
.nma-aside__title { margin: 0 0 10px; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.05rem; }
.nma-aside__title a { color: var(--wp--preset--color--royal-deep); text-decoration: none; }
.nma-aside__nav ul { list-style: none; margin: 0; padding: 0; }
.nma-aside__nav li a { display: block; padding: 7px 10px; border-left: 3px solid transparent; color: var(--wp--preset--color--royal); text-decoration: none; font-size: .98rem; }
.nma-aside__nav li a:hover { background: var(--wp--preset--color--paper); }
.nma-aside__nav li.is-current a { border-left-color: var(--wp--preset--color--gold); background: var(--wp--preset--color--gold-soft); color: var(--wp--preset--color--royal-deep); font-weight: 600; }
.nma-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nma-grid.is-two > * { border-left: 1px solid var(--wp--preset--color--line); padding: 22px 22px 24px; }
.nma-grid.is-two > *:nth-child(2n+1) { border-left: 0; padding-left: 0; }
.nma-child-cards .nma-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.nma-child-cards .nma-card p { margin: 0; color: var(--wp--preset--color--muted); }
@media (max-width: 900px) {
  .nma-split { flex-direction: column; gap: 28px; }
  .nma-split > .wp-block-column { flex-basis: 100% !important; width: 100%; }
  .nma-aside { position: static; }
  .nma-aside__buttons { flex-direction: row; flex-wrap: wrap; }
  .nma-aside__buttons .wp-block-button { width: auto; flex: 1 1 140px; }
}

/* Thought for today */
.nma-thought, .nma-medi, .nma-medi * { box-sizing: border-box; }
.nma-thought { margin: 8px 0 24px; padding: 36px 40px; border-radius: 10px; background: radial-gradient(ellipse at top left, #1A3A9C 0%, #0F2466 80%); color: #fff; border-left: 6px solid var(--wp--preset--color--gold); }
.nma-thought__label { margin: 0 0 10px; color: var(--wp--preset--color--gold-soft); font-size: .92rem; font-weight: 600; }
.nma-thought blockquote { margin: 0; padding: 0; border: 0; }
.nma-thought blockquote p { margin: 0; font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.35; color: #fff; }
.nma-thought figcaption { margin-top: 14px; font-size: .85rem; color: #AAB6E0; }

/* Meditation timer */
.nma-medi { border: 1px solid var(--wp--preset--color--line); border-top: 4px solid var(--wp--preset--color--gold); border-radius: 8px; padding: 24px; background: #fff; margin-bottom: 24px; }
.nma-medi__stage { position: relative; margin-top: 20px; aspect-ratio: 16 / 7; max-height: 340px; width: 100%; border-radius: 10px; background: radial-gradient(ellipse at center, #1A3A9C 0%, #0F2466 75%); display: grid; place-items: center; overflow: hidden; }
.nma-medi__orb { position: absolute; width: 44%; max-width: 280px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(243,231,196,.5) 0%, rgba(201,160,52,.2) 55%, rgba(201,160,52,0) 72%); transform: scale(.8); transition: opacity .6s; }
.nma-medi__time { position: relative; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.6rem); color: #fff; font-variant-numeric: tabular-nums; }
.nma-medi__text { min-height: 3em; margin: 16px 0 6px; font-size: 1.1rem; color: var(--wp--preset--color--royal-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nma-grid { grid-template-columns: 1fr 1fr; }
  .nma-grid > *, .nma-grid > *:nth-child(3n+1) { border-left: 0; padding: 24px 20px 24px 0; }
  .nma-grid > *:nth-child(2n) { border-left: 1px solid var(--wp--preset--color--line); padding-left: 20px; }
  .nma-grid.is-four { grid-template-columns: 1fr 1fr; }
  .nma-grid.is-four > *:nth-child(2n) { border-left: 0; padding-left: 0; }
  .nma-hero .wp-block-image img { max-width: 260px; }
}
@media (max-width: 960px) {
  .nma-deadlines { grid-template-columns: 1fr; }
  .nma-deadlines ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nma-thought { padding: 26px 22px; }
  .nma-grid-form { grid-template-columns: 1fr; }
  .nma-check__list li { grid-template-columns: 1fr; }
  .nma-grid, .nma-grid.is-four { grid-template-columns: 1fr; }
  .nma-grid > *:nth-child(2n) { border-left: 0; padding-left: 0; }
  .nma-creds { grid-template-columns: 1fr; }
  .nma-section { padding: 64px 20px; }
  .nma-hero { padding: 64px 20px 72px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
