/*
 * One Task Widgets shared header and footer (the ONE place to change them).
 * The build puts the markup from site/_partials/ on every page of the website, including each widget's page.
 * Every selector starts with ".otw-" and sets its own fonts, colors and box sizing, so it can neither be changed
 * by a widget's styles nor change them. No element selectors, no :root, no global rules. Colors follow Branding/BRAND.md.
 */
.otw-header, .otw-footer, .otw-skip {
  --otw-core: #3c66f5; --otw-deep: #2146c7; --otw-text: #0f213a; --otw-muted: #4d5b6e; --otw-border: #d8dfe9;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px; font-weight: 400; line-height: 1.55; letter-spacing: normal; text-align: left;
}
.otw-header *, .otw-footer *, .otw-skip { box-sizing: border-box; }
.otw-header a:focus-visible, .otw-footer a:focus-visible, .otw-skip:focus-visible { outline: 3px solid var(--otw-deep); outline-offset: 2px; }

.otw-skip { position: absolute; left: -999px; top: 0; background: var(--otw-deep); color: #fff; padding: 8px 12px; z-index: 1000; }
.otw-skip:focus { left: 8px; top: 8px; }

.otw-container { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* Header: logo and links on a white band closed by a 4px ORIGINAL line. Links get 44px-tall tap areas. */
.otw-header { background: #fff; color: var(--otw-text); border-bottom: 4px solid var(--otw-core); }
.otw-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; padding-bottom: 16px; }
.otw-logo { display: block; line-height: 0; }
.otw-logo img { height: 48px; width: auto; display: block; }
.otw-nav { display: flex; align-items: center; gap: 12px; font-weight: 600; margin-right: -6px; } /* link text lines up with the page edge despite link padding */
.otw-nav a { color: var(--otw-deep); text-decoration: none; padding: 10px 6px; }
.otw-nav a:hover, .otw-nav a[aria-current] { text-decoration: underline; }

/* Footer: logo, links, and (on the website's own pages only) the site-wide notice. */
.otw-footer { background: #fff; color: var(--otw-muted); border-top: 1px solid var(--otw-border); padding: 20px 0; font-size: .9rem; }
.otw-footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 10px; }
.otw-footer-row:last-child { margin-bottom: 0; }
.otw-footer-logo { height: 36px; width: auto; display: block; }
.otw-footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.otw-footer a { color: var(--otw-deep); }
.otw-footer-links a { padding: 11px 0; display: inline-block; }
.otw-footer-notice { margin: 0; }

/* Inside a widget's page: compact, and lined up with the widget's 760px content column. */
.otw-widget .otw-container { max-width: 760px; }
.otw-header.otw-widget .otw-header-row { padding-top: 8px; padding-bottom: 8px; }
.otw-header.otw-widget .otw-logo img { height: 40px; }
.otw-footer.otw-widget { padding: 12px 0; }
.otw-footer.otw-widget .otw-footer-logo { height: 32px; }

@media (max-width: 480px) {
  .otw-header-row { padding-top: 12px; padding-bottom: 12px; column-gap: 8px; }
  .otw-logo img { height: 44px; }
  .otw-nav { gap: 4px; }
  .otw-nav a { padding: 10px 5px; font-size: .95rem; }
  .otw-header.otw-widget .otw-header-row { padding-top: 4px; padding-bottom: 4px; }
  .otw-header.otw-widget .otw-logo img { height: 36px; }
}
/* The very narrowest phones (320px): a smaller logo and links keep the logo and all three links on one row. */
@media (max-width: 360px) {
  .otw-logo img, .otw-header.otw-widget .otw-logo img { height: 36px; }
  .otw-nav { gap: 2px; }
  .otw-nav a { padding: 11px 4px; font-size: .85rem; }
}

/* Fonts are served from this site (/fonts/), never from a third party. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/instrument-sans-latin-700-normal.woff2') format('woff2'); }

/*
 * Navy "Launchpad" header and footer (".otw-navy", set by the build on every page; ".otw-home" adds the wide homepage container, ".otw-widget" the compact widget-page size).
 * The white versions above remain only as the base the navy variant overrides. Focus rings are amber on navy.
 */
.otw-header.otw-navy, .otw-footer.otw-navy { font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.otw-header.otw-navy a:focus-visible, .otw-footer.otw-navy a:focus-visible { outline-color: #ffb347; outline-offset: 3px; }
.otw-home .otw-container { max-width: 1240px; padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px); }

.otw-header.otw-navy { background: #0f213a; color: #fff; border-bottom: 0; }
.otw-header.otw-navy .otw-header-row { gap: 4px 8px; padding-top: clamp(14px, 2vw, 22px); padding-bottom: clamp(14px, 2vw, 22px); }
.otw-header.otw-navy .otw-logo { display: inline-flex; align-items: center; background: #fff; border-radius: 12px; padding: 6px 12px; line-height: normal; }
.otw-header.otw-navy .otw-logo img { height: clamp(36px, 4vw, 44px); width: auto; }
.otw-header.otw-navy .otw-nav { gap: 4px; margin-right: 0; }
.otw-header.otw-navy .otw-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; }
.otw-header.otw-navy .otw-nav a:hover { text-decoration: underline; }
.otw-header.otw-navy .otw-nav a[href="/account/"] { padding: 0 18px; border: 2px solid #fff; border-radius: 999px; font-weight: 700; }

.otw-footer.otw-navy { background: #0f213a; color: #fff; border-top: 0; padding: 0; margin-top: 32px; font-size: 16px; }
.otw-footer.otw-navy .otw-container {
  padding-top: 40px; padding-bottom: 40px; display: grid; align-items: start; justify-content: space-between; gap: 16px 48px;
  grid-template-columns: minmax(0, 560px) auto; grid-template-areas: "logo links" "notice links";
}
.otw-footer.otw-navy .otw-footer-row { display: contents; }
.otw-footer.otw-navy .otw-footer-row > a { grid-area: logo; justify-self: start; display: inline-flex; align-items: center; background: #fff; border-radius: 12px; padding: 8px 14px; line-height: normal; }
.otw-footer.otw-navy .otw-footer-logo { height: 40px; width: auto; }
.otw-footer.otw-navy .otw-footer-notice { grid-area: notice; margin: 0; font-size: 15px; line-height: 1.6; color: #b6c3d9; }
.otw-footer.otw-navy .otw-footer-links { grid-area: links; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px 28px; }
.otw-footer.otw-navy .otw-footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; }
@media (max-width: 820px) {
  .otw-footer.otw-navy .otw-container { grid-template-columns: minmax(0, 560px); justify-content: start; grid-template-areas: "logo" "notice" "links"; }
  .otw-footer.otw-navy .otw-footer-links { margin-top: 8px; }
}

/* Widget pages keep the navy look but stay compact and lined up with the widget's 760px column. */
.otw-header.otw-navy.otw-widget .otw-header-row { padding-top: 8px; padding-bottom: 8px; }
.otw-header.otw-navy.otw-widget .otw-logo { padding: 4px 10px; border-radius: 10px; }
.otw-header.otw-navy.otw-widget .otw-logo img { height: 32px; }
.otw-header.otw-navy.otw-widget .otw-nav a { min-height: 40px; }
.otw-footer.otw-navy.otw-widget { margin-top: 24px; font-size: 15px; }
.otw-footer.otw-navy.otw-widget .otw-footer-links a { min-height: 40px; font-size: 15px; }
.otw-footer.otw-navy.otw-widget .otw-footer-logo { height: 30px; }
.otw-footer.otw-navy.otw-widget .otw-container { padding-top: 20px; padding-bottom: 20px; row-gap: 8px; }
