/* Southern Cal: header, callbar, page frame and footer (round 1, header slice). Measured on www.southerncal.net
   (branch main: css/main.css, Bootstrap 4.5 navbar). The role classes (.sc-menu-link, .sc-toggler, .sc-header, .sc-footer,
   .sc-card) come from sc-theme.css; this file only places them. */

/* Header bar: 113 px at 1366 (100 at 768, 64 at a phone), container 1193 px, soft shadow (theme). Not sticky. */
#header .sc-header-inner { width: 100%; max-width: 1193px; margin: 0 auto; padding: 0 15px; }
#header .navbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; padding: .75rem 0; margin: 0; }
/* The round badge: a white circle hanging below the bar, the logo on top of it. */
#header .navbar::after { content: ""; position: absolute; width: 100px; height: 100px; border-radius: 50%; left: 50%; bottom: -36px;
  transform: translateX(-50%); background-color: #fff; z-index: 0; }
#header .navbar-brand { position: absolute; left: 50%; bottom: -1.8125rem; z-index: 1; display: inline-block; max-width: 80px; margin: 0 auto;
  padding: .3125rem 0; transform: translateX(calc(-50% - 1px)); line-height: inherit; }
#header .navbar-brand img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; }
#header .sc-toggler { cursor: pointer; }
#header .sc-nav { display: none; flex-basis: 100%; flex-grow: 1; padding-bottom: 30px; }
#header .sc-nav.show { display: block; }
#header .sc-nav-group { display: flex; flex-direction: column; margin: 0; padding: 0; }
#header .sc-menu-link { white-space: normal; } /* as old (the labels never wrap at the widths used: measured) */

/* The page frame (theme .sc-card, old #main): a phone keeps 15 px of photo each side; pages put their own container inside. */
#main.sc-card { padding: 0 0 20px; margin: 0 15px 50px; }
/* The white sections inside the frame reach its bottom edge on wide screens; clipping to the frame's own rounded corners keeps
   their square corners from showing under the curve (Henry 2026-11-30). Nothing hangs outside the frame on purpose. */
#main.sc-card { overflow: hidden; }
.sc-callbar { padding: 1rem; text-align: right; line-height: 1.2; }
.sc-callbar strong, .sc-callbar a { font-weight: 700; color: #3f3f3f; }
.sc-callbar a:hover { color: #3f3f3f; text-decoration: none; }
/* Q4: the phone is narrow, so the badge hangs over the callbar; push the line below it. */
.sc-callbar { padding-top: 2rem; }

/* Footer: red band (theme .sc-footer), white logo left, three lines right; 17 px / 1.1 */
#footer .sc-footer-inner { width: 100%; max-width: 100%; margin: 0 auto; padding: 0 15px; }
#footer .sc-footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; margin: 0 -15px; }
#footer .sc-footer-logo, #footer .sc-footer-text { flex: 0 0 100%; max-width: 100%; padding: 0 15px; position: relative; }
#footer .sc-footer-logo { text-align: center; }
#footer .sc-footer-brand { display: inline-block; margin-bottom: 1.25rem; padding: .3125rem 0; }
#footer .sc-footer-brand img { max-width: 100%; height: auto; vertical-align: middle; }
#footer .privacy-list { margin: 0; padding: 0; list-style: none; font-size: 1.0625rem; line-height: 1.1; }
#footer .privacy-list li { margin-bottom: 5px; }
#footer .privacy-list li:last-child { margin: 0; }
#footer .privacy-list li p { margin: 0 0 1rem; }
#footer .privacy-list li p:last-child { margin: 0; }

@media (min-width: 768px) {
  #main.sc-card { padding: 0; margin: 0 auto 112px; }
  .sc-callbar { padding-top: 1rem; }
  #header .navbar { padding: 1.875rem 0; }
  #header .navbar::after { width: 170px; height: 170px; bottom: -52px; }
  #header .navbar-brand { max-width: none; transform: translateX(calc(-50% - 3px)); }
  #header .sc-nav { padding-bottom: 0; }
  #footer .sc-footer-inner { max-width: 1050px; }
  #footer .sc-footer-row { margin: 0 -65px; }
  #footer .sc-footer-logo, #footer .sc-footer-text { padding: 0 65px; }
  #footer .sc-footer-logo { flex: 0 0 33.333333%; max-width: 33.333333%; }
  #footer .sc-footer-text { flex: 1 1 0; max-width: 66.666667%; }
  #footer .sc-footer-logo::after { content: ""; position: absolute; top: 50%; right: 0; width: 2px; height: 100px; transform: translateY(-50%); background-color: #fff; }
  #footer .sc-footer-brand { margin-bottom: 0; }
}
@media (min-width: 992px) {
  #header .navbar { padding: 2.8125rem 0 2.125rem; margin: 0 -80px; justify-content: space-between; }
  #header .sc-toggler { display: none; }
  #header .sc-nav { display: flex; justify-content: space-between; padding-bottom: 0; }
  #header .sc-nav-group { flex-direction: row; padding: 0 80px; }
  #header .sc-menu-link { padding: .4375rem .5rem; font-size: 1rem; }
  #footer .sc-footer-inner { max-width: 1039px; }
  #footer .sc-footer-logo { flex: 0 0 25%; max-width: 25%; }
  #footer .sc-footer-text { max-width: 75%; }
}
@media (min-width: 1100px) {
  #header .sc-menu-link { padding: .4375rem .75rem; font-size: 1.0625rem; }
}

/* The old #wrapper hid the bar's and footer's negative-margin overhang (no sideways scroll from 320 px up); clip, so the badge can still hang. */
#header, #footer { overflow-x: clip; }

/* Combine 2026-11-27: the old #main > .container (Bootstrap 4: padding 0 15px at every width) sits inside the card, so
   every page's content is 885 px at 1366 (330 at 390) and starts 15 px in. The frame gives that inset once, here; a
   page's own .sc-container adds nothing more inside #main. The call line's row spans the full card as the old .row did. */
#main.sc-card { padding-left: 15px; padding-right: 15px; }
#main.sc-card .sc-container { max-width: none; padding-left: 0; padding-right: 0; }
#main.sc-card > .sc-callbar { margin-left: -15px; margin-right: -15px; }
/* Combine 2026-11-27: the old footer brand (Bootstrap navbar-brand plus the space after the link) takes about 7 px more
   than the logo, which places it at x 179 (1366) / 118 (390): the same room here. */
#footer .sc-footer-brand { margin-right: 7px; }
/* The old #main > .container is Bootstrap 4's: 540 px wide from 576, 720 from 768, then the 915 px card from 992 (content
   510 / 690 / 885). Measured at 768: the call line's row at x 24 w 720, the h1 at x 39 w 690. */
@media (min-width: 576px) and (max-width: 767.98px) { #main.sc-card { padding-left: calc((100% - 540px) / 2 + 15px); padding-right: calc((100% - 540px) / 2 + 15px); } }
@media (min-width: 768px) and (max-width: 991.98px) { #main.sc-card { padding-left: calc((100% - 720px) / 2 + 15px); padding-right: calc((100% - 720px) / 2 + 15px); } }
/* The old report embeds responded to their iframe's width (the frame's content: 885 / 690 / 330 px), not the window's: the
   frame is a CSS container, and the embed blocks (sc-reports.css, Home's cards) use container queries against it. */
#main.sc-card { container-type: inline-size; container-name: sc-main; }
