/* =========================================================
   WordPress glue for the Atelier Italiano design (site.css stays identical to the static site).
   ========================================================= */

/* Template-part wrappers must not break the sticky nav or the footer layout. */
.wp-site-blocks > .mvf-part,
.wp-block-template-part.mvf-part { display: contents; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + *,
.entry-content > * + *,
:where(.is-layout-flow) > * { margin-block-start: 0; margin-block-end: 0; }
main#main > .wp-block-post-content { margin: 0; }

/* Sticky nav under the admin bar when logged in. */
.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-nav { top: 46px; } }

/* WordPress skip link (added automatically for <main>). */
.skip-link.screen-reader-text:focus { background: var(--surface); color: var(--heading); padding: 10px 14px; z-index: 100000; }

/* MrsV Bookings markup inside the theme (the plugin's own front.css is switched off by the theme). */
.mrsv-app .mrsv-list-head { text-align: center; margin: 80px 0 10px; }
.mrsv-app .mrsv-list-head h2 { margin-top: 10px; }
.mrsv-app [tabindex="-1"]:focus { outline: none; }
.mrsv-app .empty a.btn { margin-left: 10px; }
.band-dark .mrsv-app { color: inherit; }

/* Native blocks inside .prose (privacy notice, posts). */
.prose .wp-block-heading { margin-top: 36px; }
.prose .wp-block-list { margin: 10px 0 18px 20px; }

/* Search (index template). */
.mvf-search { max-width: 520px; margin: 24px auto 0; }
.mvf-search .wp-block-search__input { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); padding: 12px 14px; font: inherit; }
.mvf-search .wp-block-search__button { background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-border); padding: 0 18px; font: 600 12px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; }

/* Editor canvas: show sections at a sensible width and keep reveal animations visible. */
.editor-styles-wrapper .reveal { opacity: 1 !important; transform: none !important; }
#seats.band-dark { overflow: hidden; }

/* =========================================================
   Journal (blog): index/archive grid, single post, call to action. Uses the design tokens, so light + dark both work.
   ========================================================= */
.mvf-jhero { position: relative; }
.mvf-jhero h1, .mvf-jhero .wp-block-post-title, .mvf-jhero .wp-block-query-title { font-size: clamp(44px, 6vw, 80px); font-weight: 400; margin: 14px 0 14px; position: relative; overflow-wrap: anywhere; }
.mvf-jhero h1 em, .mvf-jcta h2 em { color: var(--accent-em); font-style: italic; }
.mvf-jhero .sub, .mvf-jhero .wp-block-term-description { color: var(--muted); max-width: 640px; margin: 0 auto; position: relative; }
.mvf-jhero .eyebrow a { color: var(--accent-text); }
.mvf-jcats { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; padding: 0; position: relative; }
.mvf-jcats li a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line-strong); color: var(--heading); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.mvf-jcats li a:hover, .mvf-jcats li.current-cat a { border-color: var(--accent); color: var(--accent-text); }
.mvf-journal { padding: 70px 0 90px; }
.mvf-jgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.mvf-jcard { background: var(--surface); border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.mvf-jcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mvf-jimg { margin: 0; background: repeating-linear-gradient(135deg, var(--ph-a) 0 12px, var(--ph-b) 12px 24px); }
.mvf-jimg img { width: 100%; height: 100%; object-fit: cover; }
.mvf-jbody { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.mvf-jmeta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.mvf-jmeta a, .mvf-jmeta .wp-block-post-terms { color: var(--accent-text); }
.mvf-jcard .wp-block-post-title { font-size: 30px; margin: 10px 0 10px; line-height: 1.1; overflow-wrap: anywhere; }
.mvf-jcard .wp-block-post-title a:hover { color: var(--accent-text); }
.mvf-jcard .wp-block-post-excerpt { color: var(--muted); font-size: 15px; flex: 1; display: flex; flex-direction: column; }
.mvf-jcard .wp-block-post-excerpt__excerpt { margin: 0 0 16px; }
.mvf-jcard .wp-block-post-excerpt__more-text { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.mvf-jcard .wp-block-post-excerpt__more-link { color: var(--heading); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.mvf-jcard .wp-block-post-excerpt__more-link:hover { color: var(--accent-text); }
.mvf-jpag { margin-top: 50px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.mvf-jpag a, .mvf-jpag .page-numbers { padding: 10px 14px; border: 1px solid var(--line-strong); color: var(--heading); }
.mvf-jpag .current { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-border); }
.mvf-jempty { text-align: center; color: var(--muted); font-size: 18px; }
.mvf-jbyline { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; position: relative; }
.mvf-jbyline > * + *::before { content: "·"; margin-right: 18px; color: var(--accent); }
.mvf-post { padding: 0 0 70px; }
.mvf-post-img { width: min(1100px, calc(100% - 48px)); margin: 50px auto 0; }
.mvf-post-img img { width: 100%; height: 100%; object-fit: cover; }
.mvf-post-body { padding-top: 50px; font-size: 18px; line-height: 1.75; }
.mvf-post-body h2 { font-size: clamp(30px, 3.4vw, 40px); }
.mvf-post-body h3 { font-size: 28px; margin: 32px 0 10px; }
.mvf-post-body .wp-block-image, .mvf-post-body .wp-block-gallery { margin: 28px 0; }
.mvf-post-body .wp-block-image img { height: auto; }
.mvf-post-body figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 8px; }
.mvf-post-body .wp-block-quote, .mvf-post-body .wp-block-pullquote { border-left: 3px solid var(--accent); padding: 6px 0 6px 24px; margin: 30px 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; font-style: italic; color: var(--heading); line-height: 1.35; }
.mvf-post-body .wp-block-pullquote { border: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 26px 0; text-align: center; }
.mvf-post-body .wp-block-quote cite, .mvf-post-body .wp-block-pullquote cite { display: block; margin-top: 10px; font: 600 12px/1.4 Inter, sans-serif; font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
.mvf-post-body .mvf-tip { background: var(--bg-alt); border-left-color: var(--accent); padding: 20px 24px; font-size: 21px; }
.mvf-post-body ol.mvf-tips li::marker { color: var(--accent-text); font-weight: 600; }
.mvf-post-body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.mvf-post-body td, .mvf-post-body th { border: 1px solid var(--line); padding: 10px 12px; }
.mvf-post-body .wp-block-button__link, .mvf-jcta .wp-block-button__link { display: inline-block; padding: 15px 28px; background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-border); border-radius: 0; font: 600 12px/1 Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.mvf-jcta .mvf-btn-o .wp-block-button__link { background: transparent; color: var(--btn-o-fg); border-color: var(--btn-o-border); }
.mvf-post-body iframe, .mvf-post-body video { max-width: 100%; }
.mvf-jtags { margin-top: 30px; color: var(--muted); font-size: 14px; }
.mvf-jtags a { color: var(--accent-text); }
.mvf-jnav { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.mvf-jnav a { color: var(--heading); text-decoration: none !important; font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; }
.mvf-jnav a:hover { color: var(--accent-text); }
.mvf-jnav .post-navigation-link-next { margin-left: auto; text-align: right; }
.mvf-jcta { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 80px 0; text-align: center; }
.mvf-jcta p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.mvf-jcta .mvf-jbtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
@media (max-width: 980px) { .mvf-jgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 640px) {
  .mvf-jgrid { grid-template-columns: minmax(0, 1fr); }
  .mvf-journal { padding: 44px 0 60px; }
  .mvf-post-body { font-size: 17px; }
  .mvf-post-img { width: calc(100% - 32px); margin-top: 30px; }
  .mvf-jnav { flex-direction: column; }
  .mvf-jnav .post-navigation-link-next { margin-left: 0; text-align: left; }
  .mvf-jcta { padding: 60px 0; }
}
/* Editor: show the Journal typography while writing. */
.editor-styles-wrapper.post-type-post .wp-block-post-content, .editor-styles-wrapper .is-root-container.wp-block-post-content { font-size: 18px; line-height: 1.75; }

/* Course cards from the MrsV Bookings course records ([mrsv_courses]): full-details panel + tidy facts. */
.mrsv-ccards .ccard .body > p { margin-bottom: 14px; }
.mrsv-cdetails { margin: 4px 0 18px; border-top: 1px solid var(--line); }
.mrsv-cdetails summary { cursor: pointer; padding: 12px 0 4px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--accent-text); list-style: none; }
.mrsv-cdetails summary::-webkit-details-marker { display: none; }
.mrsv-cdetails summary::after { content: " +"; }
.mrsv-cdetails[open] summary::after { content: " –"; }
.mrsv-cdetails dl { margin: 10px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; font-size: 14px; }
.mrsv-cdetails dt { color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-top: 10px; }
.mrsv-cdetails dd { margin: 2px 0 0; color: var(--text); overflow-wrap: anywhere; }
.mrsv-mrows .m .ph-flag { margin-left: 6px; }
.ccard .lvl .ph-flag { margin-left: 6px; }
/* Dynamic card count: even grid instead of the fixed 3 + 2 layout of the static design. */
.ccards.mrsv-ccards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.ccards.mrsv-ccards[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ccards.mrsv-ccards .ccard, .ccards.mrsv-ccards .ccard:nth-child(n) { grid-column: auto; }
.ccards.mrsv-ccards .ccard:nth-child(n) .ph { height: 240px; }
@media (max-width: 640px) { .ccards.mrsv-ccards, .ccards.mrsv-ccards[data-count="4"] { grid-template-columns: minmax(0, 1fr); } }
/* Online one-to-one programmes on the booking calendar: one card per day with start-time buttons. */
.slot-online .tslots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.slot-online .tslot { min-width: 64px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--btn-o-border); background: transparent; color: var(--btn-o-fg); font: 600 14px/1 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: .04em; cursor: pointer; border-radius: 0; transition: background .2s, color .2s; }
.slot-online .tslot:hover, .slot-online .tslot:focus-visible { background: var(--btn-bg); color: var(--btn-fg); outline: none; }
.slot-online .tslot:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.slot-online .tslot[disabled] { border-color: var(--line-strong); color: var(--muted); text-decoration: line-through; cursor: not-allowed; background: transparent; }
@media (max-width: 420px) { .slot-online .tslot { min-width: 0; flex: 0 0 calc((100% - 16px) / 3); padding: 8px 2px; font-size: 13px; } }

/* 1.2.1 range & collection dropdowns (course page filter + booking course select) */
.mrsv-range-filter {display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: 0 0 28px;}
.mrsv-range-filter[hidden], .mrsv-ccards > [hidden] {display: none !important;}
.mrsv-range-filter label, .cfilter .cf-label {font: 600 12px/1 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #6b5f56);}
.mrsv-range-filter select, .cfilter .cf-select {min-height: 44px; max-width: 100%; min-width: 0; padding: 10px 40px 10px 14px; border: 1px solid var(--line-strong, #d6c6b0); border-radius: 0; background-color: var(--surface, #fff); color: var(--heading, #14110f); font: 500 15px/1.3 Inter, sans-serif; -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; cursor: pointer;}
.mrsv-range-filter select:focus-visible, .cfilter .cf-select:focus-visible {outline: 2px solid var(--accent, #b8863b); outline-offset: 2px;}
.mrsv-range-filter select option, .mrsv-range-filter select optgroup, .cfilter .cf-select option, .cfilter .cf-select optgroup {background: var(--surface, #fff); color: var(--heading, #14110f);}
.mrsv-range-count {font-size: 13px; color: var(--muted, #6b5f56);}
.cfilter .cf-select {width: min(100%, 420px);}
.mrsv-range-filter select {width: auto; flex: 0 1 380px;}
.cfilter:has(.cf-select) {align-items: center;}
@media (max-width: 480px) {.mrsv-range-filter select, .cfilter .cf-select {flex: 1 1 100%; width: 100%;} .mrsv-range-filter, .cfilter:has(.cf-select) {justify-content: flex-start;}}
