/* Sunny Street Cafe — landing, bright daytime light theme */
* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* author display rules must never resurrect hidden elements */
html, body { margin: 0; padding: 0; overflow-x: clip; }
.fact, .card, .strip, .pair > label { min-width: 0; }
@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/OpenSans.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Josefin Sans';
  src: url('/fonts/JosefinSans.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
body, button, input, select, textarea {
  font-family: 'Open Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body {
  min-height: 100vh; background: #fdf9f0; color: #26221a;
  line-height: 1.5;
}

/* ---- hero ---- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(38,30,14,.62) 0%, rgba(38,30,14,.38) 55%, rgba(38,30,14,.66) 100%);
}
.hero-inner { position: relative; text-align: center; padding: 48px 20px; max-width: 560px; }
.hero-logo { width: 230px; max-width: 72vw; display: block; margin: 0 auto; filter: drop-shadow(0 6px 20px rgba(0,0,0,.45)); }
.hero h1.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.proof { color: #ffe9c2; font-weight: 700; font-size: 14px; margin: 10px 0 0; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero .tagline { color: #ffe9c2; font-size: 17px; margin: 8px 0 0; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero .actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.hero .btn { padding: 15px 18px; font-size: 17px; }
.hero .btn.primary { box-shadow: 0 6px 22px rgba(241,211,75,.4); }
.hero .btn.ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.65); color: #fff; backdrop-filter: blur(4px); }
.hero .wait-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero .waitline { color: #ffe9c2; font-weight: 600; font-size: 13.5px; margin: 6px 0 0; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
/* v138: live wait estimate — soft pulsing dot + "your estimated wait" line */
.wlive { display: inline-flex; align-items: center; gap: 7px; }
.wlive .pdot { width: 8px; height: 8px; border-radius: 50%; background: #6ee7a0; animation: wpulse 1.6s ease-in-out infinite; flex: 0 0 auto; }
@keyframes wpulse { 0%,100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
.hero .wait-wrap.note-over .waitline {
  position: absolute; top: 50%; left: 50%; margin: 0; z-index: 2; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-1.8deg);
  white-space: nowrap;
  color: #7a5c33; font-weight: 800; font-size: 15px; letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.nowait-chip {
  align-self: center; display: inline-flex; align-items: center; gap: 8px;
  margin: 0; padding: 8px 16px; border-radius: 999px;
  background: rgba(253, 246, 230, .93); backdrop-filter: blur(4px);
  border: 1px solid rgba(74, 61, 34, .18);
  color: #4a3d22; font-weight: 700; font-size: 13.5px;
}
.nowait-chip::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #5fbf7a;
  animation: dotpulse 2s ease-out infinite;
}
@keyframes dotpulse {
  0%   { box-shadow: 0 0 6px rgba(95,191,122,.8), 0 0 0 0 rgba(95,191,122,.55); }
  70%  { box-shadow: 0 0 6px rgba(95,191,122,.8), 0 0 0 9px rgba(95,191,122,0); }
  100% { box-shadow: 0 0 6px rgba(95,191,122,.8), 0 0 0 0 rgba(95,191,122,0); }
}
@media (prefers-reduced-motion: reduce) {
  .nowait-chip::before { animation: none; box-shadow: 0 0 6px rgba(95,191,122,.8); }
}
.btn { position: relative; }
.btn.inactive {
  color: #c7c0b1; background: #f2ede2; border-color: #e7e0d0;
  box-shadow: none; cursor: default;
}
.btn.inactive .btn-label { opacity: .35; }
.btn.inactive .btn-label { position: relative; }
.btn.inactive .btn-label::after {
  content: ''; position: absolute; left: -2%; right: -2%; top: 50%;
  height: 2px; background: #a89e8a; transform: rotate(-2.5deg); border-radius: 1px;
}

/* ---- specials board ---- */
.specials { background: #fdf9f0; padding: 34px 18px 10px; }
.sp-head { text-align: center; margin-bottom: 18px; }
.sp-head h2 { margin: 0; font-size: 24px; color: #306149; }
.sp-head p { margin: 4px 0 0; color: #8a8374; font-size: 14px; }
.sp-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%;
  overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
  padding: 4px 4px 14px; -webkit-overflow-scrolling: touch;
}
.sp-item {
  margin: 0; background: #fff; border: 1px solid #f0e6d2; border-radius: 16px;
  scroll-snap-align: center; overflow: hidden;
  box-shadow: 0 4px 14px rgba(150,110,40,.08);
}
.sp-item img { width: 100%; aspect-ratio: 1/1; object-fit: contain; padding: 10px; background: #fffbf2; }
.sp-item figcaption { padding: 0 14px 14px; text-align: center; }
.sp-item strong { display: block; font-size: 15px; color: #26221a; }
.sp-item span { display: block; font-size: 13px; color: #8a8374; margin-top: 3px; }
@media (min-width: 700px) {
  .sp-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; gap: 14px; }
  .sp-item img { aspect-ratio: 16/9; padding: 4px; }
  .sp-item figcaption { padding: 0 10px 10px; }
  .sp-item strong { font-size: 13.5px; }
  .sp-item span { font-size: 11.5px; margin-top: 2px; }
}

/* ---- bottom open/closed sign (cream background, below map card) ---- */
.box-sign {
  display: block; width: 66%; max-width: 386px;
  margin: -26px auto 12px;  /* chains tuck behind card edge, no gap */
}
.findus { position: relative; }
.mapline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 18px; font-size: 14px; color: #4a4335; text-align: center;
  margin: 14px 0 2px;
}
.mapline a { color: #306149; font-weight: 700; text-decoration: none; }
.mapline .maplink { color: #6e6858; font-weight: 600; }
.mapline .maplink:hover { color: #306149; }
/* v47: review us link — forest green, subtle star emphasis */
.mapline .reviewlink { color: #306149; font-weight: 700; }
.mapline .reviewlink:hover { color: #234c38; text-decoration: underline; }

.nowait-chip.closed::before {
  animation: none;
  background: #a89e8a;
  box-shadow: none;
}
.dockbar.closed-hours .dock#dock-wait { opacity: .45; pointer-events: none; }

/* ---- map ---- */
.findus .mapwrap { margin: -26px -22px 0; border: 0; border-radius: 18px 18px 0 0; overflow: hidden; }
@media (max-width: 480px) {
  .findus .mapwrap { margin: -26px -16px 0; }
}

/* ---- facts strip ---- */
.strip {
  max-width: 980px; margin: 14px auto 0; padding: 0 16px; position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px;
}
.fact {
  background: #fff; border: 1px solid #e9e1cd; border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 10px 26px rgba(96,78,40,.14); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 2px;
}
.fact .k { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .8px; color: #b07200; }
.fact .v { font-size: 15px; font-weight: 600; color: #26221a; }
.fact:hover { border-color: #f1d34b; }

/* ---- cards ---- */
main { padding: 10px 16px 30px; }
.card {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px; margin: 22px auto 0; background: #ffffff; border: 1px solid #e9e1cd;
  border-radius: 18px; padding: 26px 22px; box-shadow: none;
}
.logo { width: 96px; display: block; margin: 0 auto 10px; }
h1 { font-size: 24px; text-align: center; margin: 0 0 4px; }
h2 { font-size: 19px; margin: 0 0 8px; font-family: 'Josefin Sans', 'Brandon Grotesque', sans-serif; color: #3b3c40; }
.tagline { text-align: center; color: #6e6858; margin: 0 0 20px; font-size: 15px; }

.actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn {
  display: block; width: 100%; padding: 14px 16px; border-radius: 12px;
  text-align: center; text-decoration: none; font-weight: 750; font-size: 17px;
  border: 1.5px solid #d9cfb6; color: #26221a; background: #fffdf7;
}
.btn.primary { background: #f1d34b; border-color: #f1d34b; color: #2b2a1d; }
.btn:active { transform: translateY(1px); }

.info { border-top: 1px solid #e9e1cd; padding-top: 14px; font-size: 15px; }
.row { display: flex; gap: 12px; margin: 6px 0; }
.row .k { flex: 0 0 76px; color: #6e6858; font-weight: 650; }
.row a { color: #26221a; text-decoration: underline; text-underline-offset: 2px; }
.waitline { margin: 10px 0 0; font-weight: 700; color: #b07200; font-size: 14.5px; }

.catering { max-width: 640px; }
.catering .btn { margin: 2px 0 16px; }
.blurb.ask { margin: 0 0 16px; font-size: 14px; }
.blurb { color: #4a4436; font-size: 14.5px; margin: 0 0 16px; }
form label { display: block; font-size: 14px; font-weight: 650; color: #6e6858; margin-bottom: 12px; }
.opt { font-weight: 400; color: #a49d8b; }
/* ---- controls: styled feel, native behavior ---- */
input:not([type=checkbox]):not([type=radio]), select, textarea {
  appearance: none; -webkit-appearance: none; -moz-appearance: textfield;
  width: 100%; margin-top: 5px; padding: 12px; font-size: 16px; color: #26221a;
  background: #fffdf7; border: 1px solid #d9cfb6; border-radius: 10px;
  box-sizing: border-box; min-height: 48px; height: 48px;
}
textarea { height: auto; min-height: 108px; }
select::-ms-expand { display: none; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
input:focus, select:focus, textarea:focus { outline: 2px solid #e4c23d; border-color: #e4c23d; }
.pair { display: flex; gap: 12px; }
.pair label, .pair .date-field { flex: 1; min-width: 0; }
.pair .date-field > label { margin-bottom: 0; }
.date-field { position: relative; }
.date-trigger {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; margin-top: 5px; padding: 0 12px; text-align: left;
  font-size: 16px; font-weight: 400; background: #fffdf7; color: #26221a;
  border: 1px solid #d9cfb6; border-radius: 10px;
}
.date-trigger:focus-visible, .date-popover button:focus-visible { outline: 2px solid #e4c23d; outline-offset: 2px; }
.date-trigger .date-icon { color: #6e6858; flex: none; }
.date-popover {
  position: absolute; z-index: 45; top: calc(100% + 6px); left: 0;
  width: min(340px, calc(100vw - 56px)); padding: 10px;
  background: #fffdf7; border: 1px solid #d9cfb6; border-radius: 12px;
  box-shadow: 0 8px 26px rgba(38, 30, 14, .16);
}
.date-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.date-nav strong { color: #26221a; font-size: 16px; }
.date-nav button { width: 44px; height: 44px; padding: 0; margin: 0; background: transparent; font-size: 25px; font-weight: 400; }
.date-weekdays, .date-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.date-weekdays { padding: 8px 0 4px; color: #6e6858; font-size: 12px; }
.date-days button { width: 100%; min-height: 42px; padding: 0; margin: 0; background: transparent; font-size: 14px; font-weight: 500; border-radius: 8px; }
.date-days button:hover:not(:disabled), .date-days button[aria-current=date] { background: #f7edc7; }
.date-days button[aria-pressed=true] { background: #f1d34b; font-weight: 800; }
.date-days button:disabled { color: #a49d8b; opacity: .5; cursor: default; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.err { color: #b3341f; font-weight: 650; font-size: 14px; }
button {
  width: 100%; padding: 15px; margin-top: 6px; font-size: 17px; font-weight: 800;
  background: #f1d34b; color: #2b2a1d; border: 0; border-radius: 12px; cursor: pointer;
}
button:disabled { opacity: .55; }
.done h2 { color: #1a6b3c; }

footer { max-width: 460px; width: 100%; margin-top: 22px; text-align: center; color: #6e6858; font-size: 13.5px; }
footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }
footer a { color: #6e6858; }

/* ---- find us ---- */
.findus { max-width: 640px; }
.mapwrap {
  border: 0; border-radius: 0; overflow: hidden; margin-top: 0;
}
.mapwrap iframe { display: block; width: 100%; height: 300px; border: 0; }
/* ---- footer ---- */
footer { max-width: 640px; width: 100%; margin: 26px auto 0; padding: 0 16px; text-align: center; color: #6e6858; font-size: 13.5px; }
footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }
footer a { color: #6e6858; }

@media (max-width: 480px) {
  .strip { margin-top: 12px; grid-template-columns: 1fr; }
  .fact .v { overflow-wrap: anywhere; }
  .hero { min-height: 86vh; }
  .mapwrap iframe { height: 240px; }
  .mapline { flex-direction: column; gap: 4px; }
}

/* ---- sticky mobile action bar ---- */
.dockbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255, 253, 247, .92); backdrop-filter: blur(8px);
  border-top: 1px solid #e9e1cd; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
}
.dock {
  flex: 1; text-align: center; padding: 12px 0; border-radius: 12px;
  font-weight: 800; font-size: 15px; text-decoration: none; color: #26221a;
  border: 1px solid #d9cfb6; background: #fff;
  -webkit-tap-highlight-color: transparent;
}
.dock.primary { background: #f1d34b; border-color: #f1d34b; color: #2b2a1d; box-shadow: 0 4px 14px rgba(241,211,75,.4); }
.dock:active { transform: translateY(1px); }
.dockbar.has-wait .dock#dock-wait,
.dockbar.has-wait #dock-wait { background: #1a6b3c; border-color: #1a6b3c; color: #fff; }
footer { padding-bottom: 74px; }  /* keep footer links clear of the dock */
footer { text-align: center; }
.foot-logo { width: 132px; opacity: .9; margin: 0 auto 8px; display: block; }

/* ---- catering page ---- */
body.cat-page { background: #fdf9f0; }
.cat-hero { text-align: center; padding: 34px 20px 8px; position: relative; }
.cat-hero .back {
  position: absolute; top: 18px; left: 16px; text-decoration: none; color: #6e6858;
  font-weight: 700; font-size: 16px; line-height: 1; background: #fff; border: 1px solid #e9e1cd;
  padding: 10px 14px 12px; border-radius: 999px; box-shadow: 0 2px 10px rgba(96,78,40,.08);
}
.cat-logo { width: 210px; max-width: 60vw; }
.cat-hero h1 { margin: 2px 0 6px; font-size: 26px; font-family: 'Josefin Sans', 'Brandon Grotesque', sans-serif; color: #3b3c40; }
.cat-sub { color: #6e6858; font-size: 15px; margin: 0 auto; max-width: 420px; }
.cat-order .btn { margin: 2px 0 14px; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px;
}
.g-item { margin: 0; }
.g-item img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px;
  border: 1px solid #e9e1cd; display: block;
}
.g-item figcaption { font-size: 13px; color: #6e6858; margin-top: 4px; text-align: center; }
.cat-form { padding-bottom: 26px; }
.cat-page footer { padding-bottom: 20px; }

/* ---- jobs page ---- */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.job h3 { margin: 0 0 4px; font-size: 16px; }
.job .blurb { margin: 0; }
.jobs-note { font-style: italic; color: #8a6d3b; margin: 10px 0 0; }
/* file input styled in the jobs availability block below */

/* ---- join modal ---- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(38,30,14,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: #fff; border-radius: 18px; padding: 22px 20px; width: 100%; max-width: 420px;
  max-height: 90vh; overflow-y: auto; position: relative;
  box-shadow: 0 18px 50px rgba(38,30,14,.35);
}
.modal-x {
  position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: #f3ecdc; color: #6e6858; font-size: 20px; line-height: 1; cursor: pointer;
  padding: 0; margin: 0; flex: 0 0 auto;   /* kill the global button padding/width bleed */
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.modal-x:active { transform: scale(.94); }
.joinsub { color: #b07200; font-weight: 700; font-size: 14px; margin: -2px 0 14px; }
/* v138: live estimate inside the join modal */
.jest { color: #1e7a44; font-weight: 700; font-size: 14px; margin: -6px 0 14px; display: flex; align-items: center; gap: 7px; }
.jest .pdot { width: 8px; height: 8px; border-radius: 50%; background: #2fae66; animation: wpulse 1.6s ease-in-out infinite; flex: 0 0 auto; }
label.optin {
  display: flex; gap: 9px; align-items: flex-start; font-weight: 400; font-size: 13px;
  color: #4a4436; line-height: 1.45;
}
label.optin input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }

/* ---- mobile form fixes ---- */
@media (max-width: 480px) {
  .date-popover { position: static; width: 100%; margin-top: 6px; }
  .dockbar { display: flex; }
  .pair { display: block; }
  .pair label + label { margin-top: 0; }
  .card { padding: 22px 16px; }
  input, select, textarea { font-size: 16px; }  /* 16px stops iOS zoom-on-focus */
}
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e6858' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}

/* ---- catering learn-more drawer ---- */
.cat-more { margin-top: 4px; }
.cat-more summary {
  cursor: pointer; font-weight: 700; color: #306149; font-size: 14.5px;
  padding: 6px 2px; list-style: none; display: flex; align-items: center; gap: 7px;
}
.cat-more summary::-webkit-details-marker { display: none; }
.cat-more summary::after {
  content: ""; width: 9px; height: 9px; margin-left: 2px;
  border-right: 2px solid #306149; border-bottom: 2px solid #306149;
  transform: rotate(45deg); transition: transform .15s ease; margin-top: -3px;
}
.cat-more[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.cat-more[open] summary { margin-bottom: 6px; }

/* ---- dedicated desktop layout (>= 1000px) ---- */
.cat-call { margin: 10px auto 0; font-size: 13.5px; color: #8a8374; text-align: center; }
.cat-call a { color: #306149; font-weight: 700; text-decoration: none; }

@media (min-width: 1000px) {
  main { max-width: 1180px; margin: 0 auto; padding: 16px 32px 60px; }
  .card { max-width: none; }

  /* specials: full-width row, leaner cards */
  .specials { max-width: 1180px; margin: 0 auto; padding: 44px 32px 12px; }
  .sp-row { grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 6px; }
  .sp-item img { aspect-ratio: 16/9; padding: 6px; }
  .sp-item strong { font-size: 15px; }
  .sp-item span { font-size: 12.5px; }

  /* catering + find us side by side — grid keeps both cards the same height */
  .duo { display: grid; grid-template-columns: 46fr 54fr; gap: 0 2%; align-items: stretch; margin: 26px 0 0; }
  .catering { width: auto; margin: 0; min-height: 0; display: flex; flex-direction: column; }
  .catering h2 { margin-top: 0; }
  .catering .cat-more { display: flex; flex-direction: column; flex: 1; }
  .catering .btn-row { display: flex; gap: 10px; flex-wrap: nowrap; margin-top: auto; }
  .catering .btn-row .btn { flex: 1 1 0; min-width: 0; white-space: nowrap; padding-left: 8px; padding-right: 8px; font-size: 15.5px; }
  .findus { width: auto; margin: 0; }
  .mapwrap iframe { height: 340px; }
  .catering .btn { width: auto; display: inline-block; margin: 4px 6px 0 0; }

  /* desktop: show the full catering pitch, no drawer (JS keeps it open) */
  .cat-more summary { display: none; }
  .cat-more .blurb { margin: 6px 0 2px; }

  /* sign + footer below the pair */
  .box-sign { margin: -18px auto 10px; width: 24%; max-width: 340px; }
  footer { padding-top: 26px; }
}

/* ---- jobs: smart availability ---- */
.avail { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.av-head { font-size: 13.5px; font-weight: 700; color: #3b3c40; }
.av-mode { display: flex; gap: 18px; flex-wrap: wrap; padding: 2px 0; }
.av-radio { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; color: #3b3c40; font-weight: 400; }
.av-radio input { accent-color: #5e7360; width: 17px; height: 17px; margin: 0; }
#av_days { display: grid; gap: 8px; }
.day-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.day-row .day-sel, .day-row .day-txt { min-width: 0; }
#av_days .day-sel, #av_days .day-txt, #av_same .day-sel, #av_same .day-txt { margin-top: 0; }
.day-name { font-size: 14px; color: #3b3c40; }
@media (max-width: 560px) {
  .day-row { grid-template-columns: minmax(0, 1fr); }
  .day-row .day-name { grid-column: 1; }
  .day-row .day-txt:not([hidden]) { grid-column: 1; margin-top: 8px; }
}
/* file input: custom row, native input stretched invisible on top (works in every browser) */
.file-row {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 48px; margin-top: 5px; padding: 0 12px; overflow: hidden;
  background: #fffdf7; border: 1px solid #d9cfb6; border-radius: 10px; box-sizing: border-box;
}
.file-row .file-btn {
  flex: 0 0 auto; font-weight: 700; font-size: 14px; border: 1px solid #d9cfb6;
  background: #fff; color: #26221a; border-radius: 8px; padding: 7px 12px;
}
.file-row .file-name { flex: 1 1 auto; font-size: 14px; color: #6e6858; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row input[type=file] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; padding: 0; margin: 0; border: 0;
}
.file-row.hasfile .file-name { color: #26221a; }

/* jobs: yes/no question grid */
.yesno-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 16px; margin: 0 0 14px; }
.yesno-grid .yn { margin-bottom: 0; }
@media (max-width: 560px) {
  .yesno-grid { grid-template-columns: 1fr; }
}

/* jobs: work history, one resume-style card per job */
.hist-block { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.hist-title { padding: 0; margin: 0 0 6px; font-size: 14px; font-weight: 650; color: #6e6858; }
.hist-note { margin: 0 0 12px; font-size: 13.5px; color: #6e6858; }
#j_hist { display: grid; gap: 12px; }
.job-card { padding: 12px; background: #fffdf7; border: 1px solid #d9cfb6; border-radius: 12px; }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.job-num { font-size: 15px; font-weight: 700; color: #3b3c40; }
.hist-remove, .hist-add {
  width: auto; flex: 0 0 auto; height: 48px; min-height: 48px; margin: 0; padding: 0 14px;
  font-size: 14px; font-weight: 700; color: #26221a;
  background: #fff; border: 1px solid #d9cfb6; border-radius: 10px; cursor: pointer;
}
.hist-add { margin-top: 10px; }
