/* Redesign phase 4 (5 Dec 2026): polish, presentation only. Loaded last on every page.
   Width rules: the app's pages line up with the header (80rem, 20px sides); the two standalone reading pages (the supplier's page and the
   public judges' guide) stay at 60rem. */
main,main.wide,main:has(.si-grid){max-width:80rem;padding:16px 20px}
main.supplier-page,main.guide{max-width:60rem}
@media (max-width:600px){main,main.wide{padding:12px}}

/* the same chip, button and card everywhere */
.badge,.synthetic{border-radius:999px;font-weight:600;line-height:1.5}
section.card,form.card{border-radius:12px;border:1px solid var(--rule);background:var(--surface)}
button.secondary{background:var(--surface);color:var(--navy);border-color:var(--navy)}
button.secondary:hover:not(:disabled){background:var(--infobg)}
button:disabled{cursor:not-allowed}

/* keyboard: every control shows where the focus is */
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--navy);outline-offset:2px}
.top :where(a,button):focus-visible{outline-color:#fff}
/* a date-and-time field puts the focus on its inner parts: the field itself shows the ring */
input[type=datetime-local]:focus-within,input[type=date]:focus-within{outline:3px solid var(--navy);outline-offset:2px}
.scroll[tabindex]:focus-visible{outline:3px solid var(--navy);outline-offset:2px}

/* reduced motion: nothing moves for a person who asked the system for less motion */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* ---- sign-in: a navy band with the mark, the about text as a calm left column, the form on the right ---- */
.signed-out .top-row{min-height:132px}
.signed-out .top .brand{font-size:2.2rem;gap:16px}
.signed-out .top .brand-mark{width:56px;height:56px}
.signed-out #main{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(18rem,1fr);gap:40px;align-items:start;margin-top:12px}
.signin-about{border:0;background:none;padding:4px 0;color:var(--ink);max-width:44rem}
.signin-about h2{font-size:1.35rem;font-weight:800;margin:0 0 .6rem}
.signin-about h3{font-size:1rem;margin:1rem 0 .3rem}
.signin-about p,.signin-about li{line-height:1.55}
.signin-about ul{margin:.2rem 0 .6rem;padding-inline-start:1.2rem}
.signin-about .judges-start{border-top:1px solid var(--rule);padding-top:.8rem;margin-top:1rem}
.signin-about [dir=rtl]{text-align:right;font-size:.95rem;color:var(--ink-muted)}
.signin-form{padding:22px 24px;box-shadow:0 2px 6px rgba(20,33,61,.06),0 10px 24px rgba(20,33,61,.07)}
.signin-form h1{font-size:1.6rem;margin:0 0 .6rem}
.signin-form button[type=submit]{width:100%;min-height:44px;margin-top:.4rem}
@media (max-width:860px){
  .signed-out #main{grid-template-columns:minmax(0,1fr);gap:16px}
  .signed-out .top-row{min-height:96px}
  .signed-out .top .brand{font-size:1.7rem;gap:12px}
  .signed-out .top .brand-mark{width:40px;height:40px}
}

/* ---- Today: "Start something new" as one tidy section ---- */
.start-new{margin:28px 0 14px;border-top:1px solid var(--rule);padding-top:8px}
.start-new .start-title{margin:14px 0 12px}
.start-forms{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr));gap:14px;align-items:stretch}
.start-forms>#new-quote-request{grid-column:1 / -1;order:1}
.start-form{margin:0;padding:18px}
.start-form .form-title{font-size:1.08rem;font-weight:700;margin:0 0 .15rem;color:var(--ink)}
.start-form .form-intro{margin:0 0 .6rem;color:var(--ink-muted);font-size:.9rem}
.start-form .fields{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:flex-end}
.start-form .field{min-width:0;flex:1 1 10rem}
.start-form .field label{color:var(--ink-muted);font-weight:600;font-size:.86rem}
.start-form .w-wide{flex:2 1 16rem}
.start-form .w-mid{flex:1.4 1 12rem}
.start-form .w-short{flex:0 1 11rem}
.start-form .w-date{flex:0 1 15rem}
.start-form .w-num{flex:0 1 20rem}.start-form .w-num input{max-width:7rem;width:100%}
.start-form input[type=datetime-local]{width:100%;padding:7px 10px;border:1px solid var(--field-line);border-radius:8px;background:var(--surface);color:var(--ink)}
.start-form input[type=number]{padding:7px 10px;border:1px solid var(--field-line);border-radius:8px;background:var(--surface);color:var(--ink)}
.start-form label.check{display:flex;gap:8px;align-items:flex-start;color:var(--ink);font-size:.92rem;margin:.7rem 0 .2rem}
.start-form label.check input{margin-top:.25rem;flex:0 0 auto}
.start-form button[type=submit]{min-height:44px;padding:8px 18px}
@media (max-width:600px){.start-form .w-short,.start-form .w-date,.start-form .w-num{flex:1 1 100%}}
