/* The Bunker Bar — WordPress additions.
   Loads after styles.css (the design, untouched). Any component that has a
   responsive override in styles.css keeps its base rule AND its media query
   together here, because a later same-specificity rule beats a media query. */

/* ---------------------------------------------------------------- Header logo
   PHP writes --logo-width on .brand; the custom property lets a media query
   override it without !important. */
.brand img{width:var(--logo-width,38px);height:auto}

/* WordPress admin bar: keep the sticky header and mobile menu below it */
@media (min-width:783px){
  .admin-bar .site-header{top:32px}
}
@media (min-width:783px) and (max-width:1100px){
  .admin-bar .nav{inset:110px 0 auto 0;max-height:calc(100vh - 110px)}
}
@media (min-width:601px) and (max-width:782px){
  .admin-bar .site-header{top:46px}
  .admin-bar .nav{inset:124px 0 auto 0;max-height:calc(100vh - 124px)}
}

/* Mobile menu is a single column: never let it wrap into columns */
@media (max-width:1100px){
  .nav{flex-wrap:nowrap}
}

/* ---------------------------------------------------------------- Section padding
   Section settings → Top/Bottom padding. .section uses padding-block in styles.css. */
.tbb-pt-tight{padding-top:clamp(2.5rem,5vw,4rem)}
.tbb-pb-tight{padding-bottom:clamp(2.5rem,5vw,4rem)}
.tbb-pt-none{padding-top:0}
.tbb-pb-none{padding-bottom:0}
/* With no padding, a child's margin (e.g. .steps margin-bottom:3rem) collapses through
   the section and shows the dark body background between sections. flow-root keeps
   the margin inside the section, on its own background. */
.tbb-pt-none,.tbb-pb-none{display:flow-root}
/* Two sections on the same background: the second usually has no top padding */
.section.tbb-pt-none > .wrap > :first-child{margin-top:0}

/* ---------------------------------------------------------------- Font Awesome icons
   The design used inline line-icons sized by `svg` rules; these give the same
   footprint and colours to <i> icons chosen in the admin. */
.ticker-item i{color:var(--red);font-size:18px;width:20px;text-align:center;flex:0 0 auto}
.steps .ico i{color:#fff;font-size:26px;line-height:1}
.duo-card .ico i{color:#fff;font-size:22px;line-height:1}
.duo-card:not(.white) .ico i{color:var(--ink)}
.vitem .ico i{color:#fff;font-size:20px;line-height:1}
.card.feat .ico i{color:#fff;font-size:20px;line-height:1}
.social i{font-size:18px;line-height:1}

/* ---------------------------------------------------------------- Home hero wall
   styles.css assumes exactly four clips. Fewer clips get fewer columns. */
.hero-wall--1{grid-template-columns:1fr}
.hero-wall--2{grid-template-columns:repeat(2,1fr)}
.hero-wall--3{grid-template-columns:repeat(3,1fr)}
@media (max-width:760px){
  .hero-wall--3{grid-template-columns:repeat(2,1fr)}
}
.hero-wall .placeholder{border-radius:0;min-height:0}

/* ---------------------------------------------------------------- Text helpers
   Replace the static HTML's inline styles. */
.center > .lede,.center .lede{margin-inline:auto}
.band-note{color:#d4d4d4}
.band .btn-row{justify-content:center}
.tbb-note{margin-top:1.25rem}
.tbb-loc-list{padding-left:1.25rem;margin:0}
.tbb-loc-list li{margin-bottom:.35rem}
.light .tbb-loc-list a,.light-2 .tbb-loc-list a{color:var(--ink)}
.section h3:first-child + .tbb-loc-list,.section > .wrap > h3:first-child{margin-top:0}

/* WYSIWYG content inside cards and bays ends without a trailing gap */
.bay > p:last-of-type{margin-bottom:1rem}
.card > :last-child{margin-bottom:0}

/* ---------------------------------------------------------------- Media placeholders
   Tiles and galleries position their media absolutely; placeholders must fill too. */
.tile .placeholder{position:absolute;inset:0;z-index:-2;border-radius:0}
.gallery figure .placeholder{border-radius:inherit}

/* ---------------------------------------------------------------- Editor notice */
.tbb-notice{margin-block:1rem;padding:.9rem 1.1rem;border-left:3px solid var(--red);background:#fff7e6;color:#3d2a00;border-radius:0 var(--radius-s) var(--radius-s) 0;font-size:.92rem}
.wrap.tbb-notice{width:min(var(--wrap),100% - 2.5rem)}

/* ---------------------------------------------------------------- Gravity Forms
   Rendered with the 2.5 "gravity-theme" markup (see inc/gravity-forms.php). Its own
   CSS uses `.gform_wrapper.gravity-theme …` selectors (0,2,0+), which beat the
   design's single-class rules, so they are restated here at matching specificity.
   GF's 12-column grid is kept: half-width fields span 6, as the design intends. */
.gform_wrapper.gravity-theme{margin-top:1.75rem}
.gform_wrapper.gravity-theme .gform_fields{grid-column-gap:1.25rem;grid-row-gap:1.1rem}
.gform_wrapper.gravity-theme .gfield_label,
.gform_wrapper.gravity-theme .gform-field-label{display:block;font-weight:600;font-size:.95rem;margin-bottom:.4rem;color:var(--ink);padding:0}
.gform_wrapper.gravity-theme .gfield_required{color:var(--red);font-size:inherit}
.gform_wrapper.gravity-theme input[type=text],
.gform_wrapper.gravity-theme input[type=email],
.gform_wrapper.gravity-theme input[type=tel],
.gform_wrapper.gravity-theme input[type=date],
.gform_wrapper.gravity-theme input[type=number],
.gform_wrapper.gravity-theme input[type=url],
.gform_wrapper.gravity-theme select,
.gform_wrapper.gravity-theme textarea{width:100%;font:inherit;font-size:1rem;color:var(--ink);background-color:#fff;border:1px solid #d4d4d4;border-radius:var(--radius-s);padding:.8rem .9rem;line-height:1.4;transition:border-color .15s,box-shadow .15s}
.gform_wrapper.gravity-theme select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .8rem center;background-size:18px;padding-right:2.5rem}
.gform_wrapper.gravity-theme input:focus,
.gform_wrapper.gravity-theme select:focus,
.gform_wrapper.gravity-theme textarea:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px rgba(23,23,23,.12)}
.gform_wrapper.gravity-theme .ginput_container_consent{display:flex;gap:.6rem;align-items:flex-start}
.gform_wrapper.gravity-theme .ginput_container_consent input[type=checkbox]{width:18px;height:18px;margin-top:.2rem;accent-color:var(--ink);flex:0 0 auto}
.gform_wrapper.gravity-theme .gfield_consent_label{font-size:.92rem;color:#404040}
.gform_wrapper.gravity-theme .gform_footer{margin-top:1.5rem;padding:0}
.gform_wrapper.gravity-theme .gform_footer input[type=submit],
.gform_wrapper.gravity-theme .gform_footer button,
.gform_wrapper.gravity-theme .gform_button{display:inline-flex;align-items:center;justify-content:center;font:500 1rem var(--font);line-height:1.2;padding:.85rem 1.5rem;border-radius:var(--radius-s);border:0;background:var(--ink);color:#fff;cursor:pointer;box-shadow:0 10px 24px -12px rgba(0,0,0,.45);transition:background-color .15s}
.gform_wrapper.gravity-theme .gform_footer input[type=submit]:hover,
.gform_wrapper.gravity-theme .gform_button:hover{background:#000}
.gform_wrapper.gravity-theme .gfield_validation_message,
.gform_wrapper.gravity-theme .validation_message{background:none;border:0;padding:.35rem 0 0;color:var(--red-dark);font-size:.88rem}
.gform_wrapper.gravity-theme .gform_validation_errors{border-radius:var(--radius-s);box-shadow:none}
.gform_confirmation_message{padding:1rem 1.2rem;background:var(--grey-100);border-left:3px solid var(--red);border-radius:0 var(--radius-s) var(--radius-s) 0}
@media (max-width:640px){
  .gform_wrapper.gravity-theme .gfield--width-half{grid-column:span 12}
}

/* Orbital theme (if the form is switched to it): GF prints its CSS-API variables in an
   inline <style> scoped to #gform_wrapper_{id}. An ID selector cannot be out-specified,
   so the variables are overridden with !important. */
.gform-theme--orbital{
  --gf-color-primary:#171717 !important;
  --gf-color-primary-rgb:23,23,23 !important;
  --gf-color-primary-contrast:#fff !important;
  --gf-color-primary-darker:#000 !important;
  --gf-color-primary-lighter:#404040 !important;
  --gf-ctrl-border-color:#d4d4d4 !important;
  --gf-radius:8px !important;
  --gf-font-family-primary:var(--font) !important;
}

/* ---------------------------------------------------------------- Fallback content & posts */
.prose img{border-radius:var(--radius-m)}
.prose .alignleft{float:left;margin:.3rem 1.5rem 1rem 0}
.prose .alignright{float:right;margin:.3rem 0 1rem 1.5rem}
.prose .aligncenter{margin-inline:auto}
.prose figure{margin:1.5rem 0}
.prose figcaption,.wp-caption-text{font-size:.88rem;color:var(--grey-500);margin-top:.4rem}
.tbb-featured{margin:0 0 2rem;border-radius:var(--radius-l);overflow:hidden}
.tbb-post-nav{display:flex;justify-content:space-between;gap:1rem;margin-top:3rem;padding-top:1.5rem;border-top:1px solid var(--grey-200)}
.tbb-post-list .card h3 a{text-decoration:none}
.tbb-post-list .card h3 a:hover{color:var(--red)}
.tbb-post-thumb{display:block;margin:-1.75rem -1.75rem 1.25rem;aspect-ratio:3/2;overflow:hidden;border-radius:var(--radius-l) var(--radius-l) 0 0}
.tbb-post-thumb img{width:100%;height:100%;object-fit:cover}
.tbb-pagination{margin-top:2.5rem}
.tbb-pagination ul{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;padding:0;margin:0}
.tbb-pagination a,.tbb-pagination span{display:inline-block;padding:.5rem .85rem;border-radius:var(--radius-s);border:1px solid var(--grey-200);text-decoration:none;color:var(--ink)}
.tbb-pagination .current{background:var(--ink);color:#fff;border-color:var(--ink)}
.page-hero .search-form{display:flex;gap:.5rem;margin-top:1rem}
.page-hero .search-form input[type=search]{flex:1;padding:.75rem .9rem;border-radius:var(--radius-s);border:1px solid rgba(255,255,255,.2);background:var(--ink-3);color:#fff;font:inherit}
.page-hero .search-form input[type=submit]{padding:.75rem 1.2rem;border-radius:var(--radius-s);border:0;background:#fff;color:var(--ink);font:500 1rem var(--font);cursor:pointer}

/* WordPress core helpers */
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.screen-reader-text:focus{position:static!important;width:auto;height:auto;clip:auto}

/* ---------------------------------------------------------------- Booking pop-up
   styles.css gives the SimplyBook iframe a fixed 569px height with scrolling off; that
   relied on SimplyBook's widget.js resizing it, which isn't loaded. On phones the form
   is far taller than 569px, so the rest was unreachable. Instead the pop-up gets a
   fixed height and the iframe fills it and scrolls internally (scrolling="auto").
   dvh = the visible screen on mobile; 100vh includes the browser bars. The vh line is
   the fallback for older browsers. Base rules and the phone override stay together
   here so the media query wins (see CLAUDE.md §8). */
.book-modal{max-height:calc(100vh - 2rem);max-height:calc(100dvh - 2rem)}
.book-modal .bm-box{height:min(760px,calc(100vh - 2rem));height:min(760px,calc(100dvh - 2rem));max-height:none}
.book-modal .bm-head{flex:0 0 auto}
.book-modal .bm-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.book-modal iframe{flex:1 1 auto;height:auto;min-height:0}
body.modal-open{overscroll-behavior:none}
@media (max-width:600px){
  /* Full screen on phones */
  .book-modal{width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;inset:0}
  .book-modal .bm-box{height:100%;border-radius:0}
  .book-modal .bm-head{padding:.75rem 1rem;padding-top:max(.75rem,env(safe-area-inset-top))}
  .book-modal .bm-body{padding-bottom:env(safe-area-inset-bottom)}
}
