/* Public website (Claude Design "Public Website v8").

   The design's markup carries its own inline styles and is reproduced as-is;
   this file holds only what inline styles cannot express:
     - the design's <helmet> base rules,
     - hover states the design runtime applied through style-hover,
     - focus outlines,
     - which layout shows at which width.

   Layouts. The design has two artboards: a desktop page and a phone page.
   Both are in the DOM; width decides which one shows.
     >= 1180px  desktop page exactly as designed, desktop navigation
     900-1179   desktop page, two-up rows stacked, compact header
     < 900      the phone page
   Inline styles outrank classes, so the overrides below need !important. */

/* ---- design base (helmet) ---- */
html, body { margin: 0; }
body { background: #ffffff; font-family: 'Poppins', sans-serif; color: #1f2a44; -webkit-font-smoothing: antialiased; }
a { color: #1b317d; text-decoration: none; }
a:hover { color: #c8642a; }
h1, h2, h3 { font-family: 'Gilroy', 'Poppins', sans-serif; }
input, textarea, select, button { font-family: 'Poppins', sans-serif; }
img { max-width: 100%; }

/* the hidden attribute must beat the inline display of overlays and lists */
[hidden] { display: none !important; }

/* ---- hover states (style-hover in the design) ---- */
.pw-lift { transition: transform .15s, box-shadow .15s, border-color .15s; }
.pw-lift:hover { transform: translateY(-3px) !important; box-shadow: 0 14px 34px rgba(31, 42, 68, 0.14) !important; border-color: #b9c6ea !important; }
.pw-kpae { transition: box-shadow .15s, border-color .15s; }
.pw-kpae:hover { box-shadow: 0 18px 44px rgba(31, 42, 68, 0.2) !important; border-color: #1b317d !important; }
/* links styled as buttons keep their own colours on hover */
a.pw-btn:hover { filter: brightness(1.08); }
a.pw-btn-ghost:hover { background: #f4f6fd !important; }

/* ---- focus ---- */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #c8642a; outline-offset: 2px;
}

/* ---- overlay / sheet ---- */
html.pw-lock, html.pw-lock body { overflow: hidden; }
.pw-sheet { position: fixed; inset: 0; z-index: 9000; background: #eef0fb; overflow: auto; -webkit-overflow-scrolling: touch; }

/* ---- layout switching ---- */
.pw-m, .pw-nav-m { display: none; }

@media (max-width: 1179px) {
  .pw-nav-d, .pw-subnav { display: none !important; }
  .pw-nav-m { display: flex !important; }

  /* two-up rows with a fixed column stack into one column */
  .pw-split { grid-template-columns: minmax(0, 1fr) !important; }
  .pw-split > * { justify-self: stretch !important; max-width: none !important; }
  .pw-roles { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

  /* demonstration overlay: rail above the tables */
  .pw-ov-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .pw-ov-grid > :first-child { border-right: 0 !important; border-bottom: 1px solid #eef1f8; }
  .pw-ov-scroll { overflow-x: auto; }
}

@media (max-width: 899px) {
  .pw-d { display: none !important; }
  .pw-m { display: block !important; }
  .pw-m-wrap { max-width: 600px; margin: 0 auto; }
}

/* ---- phone menu ---- */
.pw-menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: #ffffff; border-bottom: 1px solid #e4e9f7; box-shadow: 0 12px 28px rgba(31, 42, 68, 0.12); padding: 6px 16px 14px 16px; }
.pw-menu a { display: block; padding: 12px 4px; border-top: 1px solid #eef1f8; font-size: 15px; font-weight: 600; color: #1f2a44; }
.pw-menu a:first-child { border-top: 0; }

/* ---- request form ---- */
.pw-field:focus { border-color: #1b317d !important; }
.pw-opt-m { display: none; }
@media (max-width: 899px) {
  .pw-q-page { padding: 20px 16px !important; }
  .pw-q-page > .pw-split { gap: 0 !important; }
  .pw-q-h1 { font-size: 22px !important; line-height: 1.2 !important; margin-top: 8px !important; }
  #rq-form { padding: 16px !important; margin-top: 16px; }
  #rq-sent { padding: 26px 18px !important; margin-top: 16px; }
  #rq-form [data-type] { flex: 1; font-size: 12px !important; padding: 8px 0 !important; }
  #rq-form [role="group"][aria-label="Request type"] { width: 100% !important; }
  #rq-form [data-interest] { font-size: 12px !important; }
  #rq-submit { width: 100%; padding: 13px 0 !important; font-size: 14px !important; }
  .pw-q-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
  .pw-q-opt { display: none !important; }
  .pw-opt-m { display: block; }
  .pw-q-long { display: none; }
  .pw-q-short { display: inline !important; }
}
.pw-q-short { display: none; }

@media (prefers-reduced-motion: reduce) {
  .pw-lift, .pw-kpae { transition: none; }
  .pw-lift:hover { transform: none !important; }
}

/* ---- pages with no phone artboard (Guardian, Technology, Accuracy, Quick
   Tools, About): the desktop layout is stacked down instead ---- */
.pw-hscroll { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
@media (max-width: 1179px) {
  .pw-g5 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 899px) {
  .pw-sec { padding-left: 16px !important; padding-right: 16px !important; }
  .pw-sec-y { padding-top: 36px !important; padding-bottom: 36px !important; }
  .pw-g2, .pw-g3 { grid-template-columns: minmax(0, 1fr) !important; }
  .pw-g4, .pw-g5 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pw-wrap { flex-wrap: wrap !important; }
  .pw-h1 { font-size: 28px !important; line-height: 1.2 !important; }
  .pw-h2 { font-size: 22px !important; }
  .pw-free { margin-left: 0 !important; }
  .pw-col { flex-direction: column !important; align-items: stretch !important; }
  .pw-col > * { margin-left: 0 !important; }
  .pw-none { display: none !important; }
}

/* Spec section 12: 44 px touch targets on phones. The design's phone chips
   and toggles are ~30 px tall; this lifts every control to 44 px without
   changing its look otherwise. Inline text links inside sentences are exempt. */
@media (max-width: 899px) {
  [data-scen], [data-t-view], [data-g-filter], [data-g-step], [data-explain], [data-explain-close],
  [data-f-sample], [data-f-search], [data-f-included], [data-type], [data-interest], [data-g-ack], [data-g-assign],
  [data-g-resolve], [data-g-viewflight], [data-close], [data-toggle], [data-dep], [data-arr], #rq-submit {
    min-height: 44px; box-sizing: border-box;
  }
  [data-menu] { width: 44px !important; height: 44px !important; }
  [data-t-view], [data-g-step] { display: inline-flex !important; align-items: center; }
  [data-f-query] { min-height: 46px; }
  footer a { display: inline-flex; align-items: center; min-height: 44px; }
  footer { row-gap: 0 !important; }
}
@media (max-width: 899px) {
  a.pw-btn, a.pw-btn-ghost { min-height: 44px; box-sizing: border-box; }
  .pw-nav-m a.pw-btn { display: inline-flex; align-items: center; }
}
