/* Fredericks PUBLIC site style "Middle" (Mesa, Nov 27 2026; Luke 11:49 AM PT via Anderson: site-wide public Style picker).
   Dusky clay: the warm mid-tone between Original (cream #F9EFE1) and Dark (#130F10), with cream text. Built from the Dark layer's
   complete rule set (so every hard-coded light spot it covers is covered here too), re-coloured. Load it INSTEAD of dark.css, LAST,
   on public pages only; pair it with brand/frame/snake-v3-middle/. Header mark: /brand/logo/head-mark-on-dark.svg (light text).
   Manifest + theme-color: #5C4A44. Asset next to this file: divider-motif-middle.svg.
   GENERATED by brand/source/public-styles/build.py. Edit the palette there and re-run; don't hand-edit. */


:root:where([data-site-style="middle"]){
  color-scheme:dark;
  /* ---- palette (pm = public middle) ---- */
  --pm-bg:#5C4A44;        
  --pm-surface:#65534C;   
  --pm-alt:#524039;       
  --pm-field:#6A5750;     
  --pm-ph:#6B5952;        
  --pm-deep:#3A2F2B;      
  --pm-text:#F8EEE2;      
  --pm-muted:#ECDECD;     
  --pm-sand:#E5D5C2;      
  --pm-hint:#E4D4C1;      
  --pm-line:#7D6A61;      
  --pm-line-strong:#C6B2A0; 
  --pm-red:#E58276;       
  --pm-coral:#FFCABB;     
  --pm-coral-hover:#FFE3DA; 
  --pm-btn:#A83F38;       
  --pm-btn-hover:#8E352F; 
  --pm-error:#FFD6CD;     
  --pm-beige:#EAD8C0;     
  --pm-manifest-background:#5C4A44; --pm-manifest-theme:#5C4A44;

  /* ---- Fredericks tokens remapped (so every existing rule that reads them flips to the clay palette) ---- */
  --fr-cream:var(--pm-text);           /* was the page bg on light, but used as text on dark: now the cream text */
  --fr-cream-light:var(--pm-surface);  /* surfaces, inputs, skip link, view switch */
  --fr-cream-deep:var(--pm-alt);       /* "sand" sections, map well */
  --fr-line:var(--pm-line);
  --fr-line-strong:var(--pm-line-strong);
  --fr-stone:var(--pm-muted);
  --fr-ink:var(--pm-text);             /* ink was text + line-button colour; the few ink BACKGROUNDS are overridden below */
  --fr-ink-deep:var(--pm-deep);
  --fr-sand:#E2D2BE;                   /* muted text on the footer / top strip */
  --fr-red:var(--pm-red);              /* decorative red (nav current underline, rules): lighter so it shows on clay */
  --fr-logo-red:#CB564F;               /* the logo keeps its own red */
  --fr-red-deep:var(--pm-coral);       /* small red text / hovers on light -> coral on dark */
  --fr-red-deeper:var(--pm-coral-hover);
  --fr-bg:var(--pm-bg);
  --fr-surface:var(--pm-surface);
  --fr-text:var(--pm-text);
  --fr-text-muted:var(--pm-muted);
  --fr-eyebrow:var(--pm-coral);
  --fr-link:var(--pm-coral);
  --fr-link-hover:var(--pm-coral-hover);
  --fr-focus:var(--pm-coral);
  --fr-btn-bg:var(--pm-btn);
  --fr-btn-bg-hover:var(--pm-btn-hover);
  --fr-btn-text:var(--pm-text);
  --fr-placeholder-bg:var(--pm-ph);
  --fr-placeholder-text:var(--pm-sand);
  --fr-logo-ink:var(--pm-text);
  --fr-shadow-1:0 1px 2px rgba(0,0,0,.4);
  --fr-shadow-2:0 8px 24px -12px rgba(0,0,0,.6),0 2px 6px rgba(0,0,0,.35);
  --fr-shadow-frame:inset 0 0 0 1px rgba(248,238,226,.06),0 18px 40px -24px rgba(0,0,0,.7);
  /* serpent art: the divider head + motif in their on-dark versions (the standard head's black outline vanishes on dark) */
  --sf-head:url("/brand/logo/head-mark-on-dark.svg");
  --sd-motif:url("divider-motif-middle.svg");
}

/* ---- page ---- */
html:where([data-site-style="middle"]){background:var(--pm-bg)}
:where(html[data-site-style="middle"]) body.fr{background:var(--pm-bg);color:var(--pm-text)}
:where(html[data-site-style="middle"]) .hdr{background:var(--pm-bg);border-bottom-color:var(--pm-line)}
:where(html[data-site-style="middle"]) .skip:focus{background:var(--pm-surface);color:var(--pm-text)}
:where(html[data-site-style="middle"]) ::placeholder{color:var(--pm-hint)}
:where(html[data-site-style="middle"]) ::selection{background:#8A3F37;color:var(--pm-text)}

/* ---- sections ---- */
:where(html[data-site-style="middle"]) .sec--sand{background:var(--pm-alt)}
:where(html[data-site-style="middle"]) .sec--dark{background:var(--pm-deep);color:var(--pm-text)}
:where(html[data-site-style="middle"]) .sec--dark .fr-eyebrow{color:var(--pm-coral)}
:where(html[data-site-style="middle"]) .fr .sec--sand a:not(.btn):not(.card){color:var(--pm-coral)}
:where(html[data-site-style="middle"]) .sec--sand .card .fr-ph{--fr-placeholder-bg:var(--pm-ph)}

/* ---- buttons ---- */
:where(html[data-site-style="middle"]) .fr a.btn--line,:where(html[data-site-style="middle"]) .btn--line{border-color:var(--pm-text);color:var(--pm-text);background:transparent}
:where(html[data-site-style="middle"]) .fr a.btn--line:hover,:where(html[data-site-style="middle"]) .btn--line:hover{background:var(--pm-text);color:var(--pm-bg);border-color:var(--pm-text)}
:where(html[data-site-style="middle"]) .fr .on-dark a.btn--line{border-color:var(--pm-text);color:var(--pm-text)}
:where(html[data-site-style="middle"]) .fr .on-dark a.btn--line:hover{background:var(--pm-text);color:var(--pm-deep)}
:where(html[data-site-style="middle"]) .btn:focus-visible{outline:2px solid var(--pm-coral);outline-offset:3px}

/* ---- placeholders, badges, review markers ---- */
:where(html[data-site-style="middle"]) .fr-ph::before{border-color:rgba(248,238,226,.16)}
:where(html[data-site-style="middle"]) .thumbs .fr-ph{box-shadow:inset 0 0 0 1px rgba(248,238,226,.12)}
:where(html[data-site-style="middle"]) .fr-ph--dark{--fr-placeholder-bg:var(--pm-deep)}
:where(html[data-site-style="middle"]) .ph-badge{background:var(--pm-deep);color:var(--pm-text);box-shadow:0 0 0 1px rgba(248,238,226,.28)}
:where(html[data-site-style="middle"]) .badge-sold,:where(html[data-site-style="middle"]) .badge-hold{background:var(--pm-btn);color:var(--pm-text)}
:where(html[data-site-style="middle"]) .photo,:where(html[data-site-style="middle"]) .sf>.sf__inner,:where(html[data-site-style="middle"]) .page-banner picture,:where(html[data-site-style="middle"]) .kind-tile__img picture{background:var(--pm-ph)}
/* the frame art layer must stay transparent: app.css `.page-banner picture` / `.kind-tile__img picture` also match the
   frame's <picture class="sf__frame"> and painted it opaque over the photo (pre-existing bug, hides the Collection banner photo) */
:where(html[data-site-style="middle"]) .sf>.sf__frame{background:none}

/* ---- forms ---- */
:where(html[data-site-style="middle"]) select,:where(html[data-site-style="middle"]) input[type=text],:where(html[data-site-style="middle"]) input[type=email],:where(html[data-site-style="middle"]) input[type=tel],:where(html[data-site-style="middle"]) input[type=search],:where(html[data-site-style="middle"]) textarea{color:var(--pm-text);background-color:var(--pm-field);border-color:var(--pm-line-strong)}
:where(html[data-site-style="middle"]) select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F8EEE2' stroke-width='1.5'/%3E%3C/svg%3E")}
:where(html[data-site-style="middle"]) select option{background:var(--pm-field);color:var(--pm-text)}
:where(html[data-site-style="middle"]) input:focus-visible,:where(html[data-site-style="middle"]) select:focus-visible,:where(html[data-site-style="middle"]) textarea:focus-visible{outline:2px solid var(--pm-coral);outline-offset:2px}
:where(html[data-site-style="middle"]) .chk input{accent-color:var(--pm-btn)}
/* radios + checkboxes drawn by hand (the browsers' dark-scheme ring is too faint): ring = line-strong, checked = coral dot /
   red box with a cream tick. Ratios: CONTRAST.md. */
:where(html[data-site-style="middle"]) input[type=radio],:where(html[data-site-style="middle"]) input[type=checkbox]{-webkit-appearance:none;appearance:none;width:20px;height:20px;margin:0;flex:none;display:inline-grid;place-content:center;
  vertical-align:middle;border:2px solid var(--pm-line-strong);background:var(--pm-field);cursor:pointer}
:where(html[data-site-style="middle"]) input[type=radio]{border-radius:50%}
:where(html[data-site-style="middle"]) input[type=checkbox]{border-radius:3px}
:where(html[data-site-style="middle"]) input[type=radio]:checked{border-color:var(--pm-coral)}
:where(html[data-site-style="middle"]) input[type=radio]:checked::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--pm-coral)}
:where(html[data-site-style="middle"]) input[type=checkbox]:checked{background:var(--pm-btn);border-color:var(--pm-btn)}
:where(html[data-site-style="middle"]) input[type=checkbox]:checked::before{content:"";width:11px;height:11px;background:var(--pm-text);clip-path:polygon(14% 44%,0 65%,40% 100%,100% 18%,84% 4%,40% 68%)}
:where(html[data-site-style="middle"]) input[type=radio]:focus-visible,:where(html[data-site-style="middle"]) input[type=checkbox]:focus-visible{outline:2px solid var(--pm-coral);outline-offset:2px}
:where(html[data-site-style="middle"]) .chk input{width:20px;height:20px}
:where(html[data-site-style="middle"]) .inquire{background:var(--pm-surface);border-color:var(--pm-line)}
:where(html[data-site-style="middle"]) .field-error{color:var(--pm-error)}
:where(html[data-site-style="middle"]) .form-status{border-color:var(--pm-error);color:var(--pm-error);background:var(--pm-surface)}
:where(html[data-site-style="middle"]) [aria-invalid="true"]{border-color:var(--pm-error)}

/* ---- footer + top link strip (deepest dark) ---- */
:where(html[data-site-style="middle"]) .ftr{background:var(--pm-deep);color:var(--pm-text)}
:where(html[data-site-style="middle"]) .toplinks{background:var(--pm-deep);color:var(--pm-text);border-bottom:1px solid var(--pm-line)}
:where(html[data-site-style="middle"]) .fr .toplinks a,:where(html[data-site-style="middle"]) .fr .ftr a{color:var(--pm-text)}
:where(html[data-site-style="middle"]) .fr .toplinks a:hover,:where(html[data-site-style="middle"]) .fr .ftr a:hover{color:var(--pm-coral)}
:where(html[data-site-style="middle"]) .ftr .small{border-top-color:rgba(248,238,226,.14)}

/* ---- visit map: clay well; the Google embed (a light third-party page) is only toned down a little, not inverted, so it keeps
   its own legible colours on the mid-tone page. Delete the iframe rule for the stock map. ---- */
:where(html[data-site-style="middle"]) .visit-map__frame{background:var(--pm-alt);border-color:var(--pm-line-strong)}
:where(html[data-site-style="middle"]) .visit-map__frame iframe{filter:saturate(.8) sepia(.12) brightness(.92);background:var(--pm-alt)}

/* ---- section divider: head + motif on-dark (vars above); the cut-out behind the head takes the section colour ---- */
:where(html[data-site-style="middle"]) .sd{--sd-bg:var(--pm-bg);background:var(--sd-motif) center / auto calc(var(--sd-h) * .82) no-repeat,linear-gradient(var(--pm-line-strong),var(--pm-line-strong)) center / 100% 1.5px no-repeat}
:where(html[data-site-style="middle"]) .sec--sand .sd{--sd-bg:var(--pm-alt)}
:where(html[data-site-style="middle"]) .sec--dark .sd{--sd-bg:var(--pm-deep)}
:where(html[data-site-style="middle"]) .fr-divider{background:url("divider-motif-middle.svg") center / auto 100% no-repeat,linear-gradient(var(--pm-line-strong),var(--pm-line-strong)) center / 100% 1px no-repeat}

/* ---- view switch + floating "Back to admin" (public pages) ---- */
:where(html[data-site-style="middle"]) .fr-view-switch{background:var(--pm-surface);border-color:var(--pm-line-strong)}
:where(html[data-site-style="middle"]) .fr-view-switch__opt+.fr-view-switch__opt{border-left-color:var(--pm-line-strong)}
:where(html[data-site-style="middle"]) .fr a.fr-view-switch__opt[aria-current],:where(html[data-site-style="middle"]) .fr-view-switch__opt[aria-current]{background:var(--pm-text);color:var(--pm-bg)}
:where(html[data-site-style="middle"]) .fr a.fr-view-switch__opt:not([aria-current]):hover{background:var(--pm-alt);color:var(--pm-coral)}
:where(html[data-site-style="middle"]) .fr-admin-switch{background:var(--pm-deep);border-color:rgba(248,238,226,.45);box-shadow:0 6px 18px -6px rgba(0,0,0,.7)}
:where(html[data-site-style="middle"]) .fr a.fr-admin-switch:hover{background:var(--pm-btn-hover)}
:where(html[data-site-style="middle"]) .fr-admin-switch:focus-visible{box-shadow:0 0 0 2px var(--pm-bg),0 0 0 4px var(--pm-coral)}

/* ---- test banner (test server only): was charcoal on bone ---- */
:where(html[data-site-style="middle"]) .test-banner{background:var(--pm-deep);color:var(--pm-sand);border-bottom:1px solid var(--pm-line)}

/* ---- middle only: the red solid button is a quiet 1.36:1 against the clay page, so it gets a hairline in the cream text colour (label is 5.34:1) ---- */
:where(html[data-site-style="middle"]) .fr a.btn--solid,:where(html[data-site-style="middle"]) .btn--solid{box-shadow:inset 0 0 0 1px rgba(248,238,226,.35)}
