/* Golden Recruit V6: optional image frames across all ten visitor templates.
   All values are whitelisted server-side. Existing V5 designs remain intact if turned off. */
.hero-frame-on .hero-people{
  box-sizing:border-box!important;
  isolation:isolate;
  border-radius:var(--hero-frame-radius,16px)!important;
  border:2px solid var(--hero-frame-colour,var(--accent))!important;
  box-shadow:var(--hero-frame-shadow,0 12px 36px rgba(18,32,48,.14))!important;
  background-clip:padding-box!important;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.hero-frame-on .hero-people img{object-position:var(--hero-photo-focus,center 42%)!important;border-radius:inherit;}
.hero-frame-corners-square{--hero-frame-radius:2px}
.hero-frame-corners-rounded{--hero-frame-radius:16px}
.hero-frame-corners-soft{--hero-frame-radius:32px}
.hero-frame-shadow-none{--hero-frame-shadow:none}
.hero-frame-shadow-light{--hero-frame-shadow:0 10px 30px rgba(19,34,53,.13)}
.hero-frame-shadow-medium{--hero-frame-shadow:0 16px 42px rgba(19,34,53,.20)}
.hero-frame-shadow-strong{--hero-frame-shadow:0 22px 55px rgba(19,34,53,.28)}
.hero-frame-on.hero-frame-style-soft .hero-people{border:2px solid color-mix(in srgb,var(--hero-frame-colour) 49%,white)!important;}
.hero-frame-on.hero-frame-style-classic .hero-people{border:3px solid var(--hero-frame-colour)!important;}
.hero-frame-on.hero-frame-style-double .hero-people{border:8px double var(--hero-frame-colour)!important;}
.hero-frame-on.hero-frame-style-accent .hero-people{border:2px solid color-mix(in srgb,var(--hero-frame-colour) 35%,white)!important;border-left:9px solid var(--hero-frame-colour)!important;}
.hero-frame-on.hero-frame-style-gallery .hero-people{border:9px solid #fff!important;outline:2px solid var(--hero-frame-colour);outline-offset:0;}
.hero-frame-on.hero-frame-style-floating .hero-people{border:1px solid color-mix(in srgb,var(--hero-frame-colour) 52%,white)!important;box-shadow:0 3px 0 var(--hero-frame-colour),0 20px 45px rgba(18,32,48,.24)!important;}
.hero-frame-on.hero-frame-style-floating.hero-frame-shadow-none .hero-people{box-shadow:0 3px 0 var(--hero-frame-colour)!important}
.hero-frame-on.hero-frame-style-floating.hero-frame-shadow-medium .hero-people{box-shadow:0 3px 0 var(--hero-frame-colour),0 23px 50px rgba(18,32,48,.25)!important}
.hero-frame-on.hero-frame-style-floating.hero-frame-shadow-strong .hero-people{box-shadow:0 4px 0 var(--hero-frame-colour),0 29px 65px rgba(18,32,48,.32)!important}
/* Give framed photographs breathing room without changing site branding. */
.layout-heritage.hero-frame-on .hero-people{width:min(1180px,calc(100% - 52px));margin:18px auto 26px;}
.layout-minimal.hero-frame-on .hero-people,.layout-editorial.hero-frame-on .hero-people,.layout-monochrome.hero-frame-on .hero-people{margin-top:12px;margin-bottom:28px;}
.layout-executive.hero-frame-on .hero-people{top:20px;right:20px;bottom:20px;width:calc(46% - 20px);height:calc(100% - 40px);}
.layout-studio.hero-frame-on .hero-people{margin:20px 22px 20px 0;min-height:0;height:auto;}
.layout-corporate.hero-frame-on .hero-people{border-radius:var(--hero-frame-radius)!important;}
.layout-wave.hero-frame-on .hero-people{border-radius:var(--hero-frame-radius)!important;}
/* Full-bleed image layouts receive a framed image panel behind the text. */
.layout-glass.hero-frame-on .hero-people{inset:18px!important;width:auto!important;height:auto!important;opacity:.91;}
.layout-nightfall.hero-frame-on .hero-people{top:20px!important;right:20px!important;bottom:20px!important;left:auto!important;width:57%!important;height:auto!important;opacity:.68;}
/* Certain presets apply visual filters to the image; framing does not alter those effects. */
.layout-monochrome.hero-frame-on .hero-people{filter:grayscale(1)}
@media(max-width:760px){
  .layout-executive.hero-frame-on .hero-people,.layout-wave.hero-frame-on .hero-people{position:relative;inset:auto!important;width:calc(100% - 32px)!important;height:300px!important;margin:0 auto 20px;}
  .layout-studio.hero-frame-on .hero-people,.layout-corporate.hero-frame-on .hero-people{width:calc(100% - 32px);height:290px;min-height:0;margin:0 auto 18px;}
  .layout-glass.hero-frame-on .hero-people{inset:12px!important;}
  .layout-nightfall.hero-frame-on .hero-people{inset:12px!important;width:auto!important;height:auto!important;opacity:.52;}
}
@media(max-width:600px){
  .layout-heritage.hero-frame-on .hero-people,.layout-editorial.hero-frame-on .hero-people,.layout-minimal.hero-frame-on .hero-people,.layout-monochrome.hero-frame-on .hero-people{width:calc(100% - 24px)!important;margin:10px auto 20px;}
  .layout-executive.hero-frame-on .hero-people,.layout-wave.hero-frame-on .hero-people,.layout-studio.hero-frame-on .hero-people,.layout-corporate.hero-frame-on .hero-people{width:calc(100% - 24px)!important;}
  .hero-frame-on.hero-frame-style-gallery .hero-people{border-width:6px!important;}
  .hero-frame-on.hero-frame-style-double .hero-people{border-width:6px!important;}
}
/* Admin design choice samples. Selectors deliberately scoped to admin page. */
.admin-body .frame-settings-section{margin:24px 0 10px;padding:20px;border:1px solid #dfe4ec;background:#fafbfc;border-radius:14px}
.admin-body .frame-settings-section h2{margin:2px 0 8px}
.admin-body .frame-settings-section .frame-toggle{margin:18px 0 22px;font-weight:750}
.admin-body .frame-style-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:24px}
.admin-body .frame-style-choice{display:flex;flex-direction:column;gap:8px;background:white;border:2px solid #e4e8ee;border-radius:12px;padding:13px;cursor:pointer}
.admin-body .frame-style-choice:has(input:checked){border-color:#3b567e;background:#f7faff}
.admin-body .frame-style-title{font-weight:750;font-size:14px;display:flex;align-items:center;gap:4px}
.admin-body .frame-style-title input{width:auto;accent-color:#304b72}
.admin-body .frame-style-choice small{font-size:12px;color:#677587;line-height:1.5}
.admin-body .frame-style-sample{display:block;height:95px;border-radius:12px;background:#f2f2f0;padding:7px}
.admin-body .frame-style-sample img{height:100%;width:100%;object-fit:cover;object-position:center 42%;border-radius:7px;display:block}
.admin-body .frame-sample-soft img{border:2px solid #c4b4a0;box-shadow:0 8px 14px #28374c26}
.admin-body .frame-sample-classic img{border:3px solid var(--frame-preview-colour,#ad895f)}
.admin-body .frame-sample-double img{border:7px double var(--frame-preview-colour,#ad895f)}
.admin-body .frame-sample-accent img{border:2px solid #cfcbc1;border-left:9px solid var(--frame-preview-colour,#ad895f)}
.admin-body .frame-sample-gallery img{border:7px solid #fff;outline:2px solid var(--frame-preview-colour,#ad895f)}
.admin-body .frame-sample-floating img{border:1px solid #a8aeb6;box-shadow:0 3px 0 var(--frame-preview-colour,#ad895f),0 9px 15px #28374c48}
.admin-body .frame-fields{margin:0 0 20px}
.admin-body .frame-fields label{display:block;font-weight:700}
.admin-body .frame-fields select,.admin-body .frame-fields input[type=color]{display:block;margin-top:7px;min-height:42px;width:100%;border:1px solid #d7dde6;border-radius:7px;background:white;padding:6px 10px}
@media(max-width:820px){.admin-body .frame-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:530px){.admin-body .frame-style-grid{grid-template-columns:1fr}.admin-body .frame-settings-section{padding:14px}}
