/* Preceptor Digital Solutions editorial theme, adapted from website/assets/site.css and
   editorial-paper.css. Layout and interaction rules remain in each page. */
:root {
  --paper: #fbf8f1;
  --paper-card: #fffdf8;
  --paper-shadow: #e6e0cf;
  --sky: #b9dff6;
  --bg: var(--paper);
  --panel: var(--paper-card);
  --panel2: #f2f3ec;
  --field: var(--paper-card);
  --line: #d8d9cc;
  --line2: #b7bcae;
  --text: #163650;
  --muted: #415c70;
  --accent: #047857;
  --accent2: #065f46;
  --accent-deep: #065f46;
  --accent-soft: #e7f0e8;
  --good: #047857;
  --good-soft: #e7f0e8;
  --warn: #8a4b08;
  --warn-soft: #fff1db;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --radius: 2px;
  --shadow: 3px 3px 0 var(--paper-shadow);
  --shadow-lg: 5px 7px 0 var(--paper-shadow);
  --grad: linear-gradient(var(--accent), var(--accent));
  --font-display: 'Arial Black', 'Franklin Gothic Heavy', Impact, sans-serif;
  --font-body: Georgia, 'Times New Roman', serif;
  --font-ui: Arial, Helvetica, sans-serif;
  --paper-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.74' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23163650' opacity='.025' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
body, body.request-page {
  background: var(--paper-grain) var(--paper);
  color: var(--text);
  font-family: var(--font-ui);
}
h1, h2, h3, .card h1, .card h2, main h2, .svc h3, .plan h3, .modal-card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.12;
  text-wrap: balance;
}
p.sub, .lead, .signin-lede, .svc .d, .plan .d, details.art .b {
  font-family: var(--font-body);
  line-height: 1.65;
}
main p.sub { font-size: 16px; }
main h2 { font-size: clamp(27px, 2.6vw, 38px); margin-bottom: 12px; }
input, select, textarea {
  font-family: var(--font-ui);
  background: var(--field);
  border: 1px solid var(--line2);
  border-bottom-color: var(--text);
  border-radius: 2px;
}
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 2px var(--accent-soft); }
label { color: var(--text); font-family: var(--font-ui); }
button { font-family: var(--font-ui); }
.btn, .request-page .btn {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--text);
  font-family: var(--font-ui);
  font-weight: 700;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover, .request-page .btn:hover {
  filter: none;
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--text);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--text); }
.btn:disabled, .btn[disabled] { transform: none; box-shadow: none; cursor: default; }
.btn-ghost, .request-page .ghost {
  background: transparent;
  border: 1px solid var(--line2);
  border-radius: 2px;
  color: var(--text);
}
.btn-ghost:hover, .request-page .ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
a:not(.btn):focus-visible { border-radius: 1px; }
::selection { background: var(--sky); color: var(--text); }
::-webkit-scrollbar-thumb { background: #bdc3b6; }
.eyebrow {
  color: var(--accent);
  font: 700 10px/1.5 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin: 0 0 24px;
}
.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font: 800 27px/1 var(--font-ui);
  letter-spacing: -1.2px;
  text-decoration: none;
  white-space: nowrap;
}
.portal-brand:hover { color: var(--text); }
.portal-brand img { display: block; width: 228px; max-width: 100%; height: auto; }
.website-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font: 600 12px/1.5 var(--font-ui);
  color: var(--muted);
  text-decoration: none;
}
.website-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.website-link > span { font-size: 18px; }

/* The sign-in page uses the same masthead, type and paper form as the website. */
#signin {
  min-height: 100dvh;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0 clamp(22px, 5vw, 80px);
  background: transparent;
  overflow: visible;
}
.signin-header, .signin-footer, .signin-layout { width: 100%; max-width: 1180px; margin-inline: auto; }
.signin-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--text); }
.signin-layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(40px, 7vw, 100px); align-items: center; padding-block: 64px; }
.signin-story h1 { font-size: clamp(44px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.055em; margin: 0 0 25px; }
.signin-story h1 em { font-style: normal; color: var(--accent); }
.signin-lede { max-width: 440px; color: var(--muted); font-size: 19px; margin: 0 0 36px; }
.signin-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 19px; border-top: 2px solid var(--text); font: 12px/1.6 var(--font-ui); }
.signin-index b { display: block; color: var(--accent); font-size: 10px; letter-spacing: .1em; margin-bottom: 9px; }
#signin .card { max-width: none; padding: 36px; background: var(--paper-card); border: 1px solid var(--text); border-radius: 2px; box-shadow: var(--shadow-lg); }
.card-kicker { padding-bottom: 15px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
#signin .card h2 { font-size: 31px; margin: 0 0 10px; }
#signin .card p.sub { font-size: 16px; margin-bottom: 26px; }
#signin .card input { min-height: 46px; background: var(--paper); }
#signin .card .btn, #signin .card .btn-ghost { min-height: 46px; }
#signin .foot { border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; line-height: 1.7; }
#signin .foot a { text-decoration: underline; text-underline-offset: 3px; }
.signin-footer { border-top: 1px solid var(--text); padding-block: 23px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font: 11px/1.6 var(--font-ui); }

/* App navigation stays compact; editorial styling supplies the hierarchy. */
#app.ready { grid-template-columns: 238px minmax(0, 1fr); }
aside { background: var(--paper); border-color: var(--line2); backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: 28px; }
aside .logo.portal-brand { gap: 8px; margin-bottom: 24px; padding: 0 8px 24px; border-bottom: 2px solid var(--text); }
aside .portal-brand img { width: 196px; }
aside .logo small { display: block; margin-top: 7px; color: var(--muted); font: 10px/1 var(--font-ui); letter-spacing: .13em; text-transform: uppercase; }
.nav { border-radius: 2px; font-family: var(--font-ui); }
.nav.on { box-shadow: inset 3px 0 0 var(--accent); background: var(--accent-soft); }
.who, .who:hover { border-radius: 2px; }
.who .ava, .pfPhoto { box-shadow: none; }
.portal-content { min-width: 0; }
.portal-masthead { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 38px; padding: 26px 0 22px; max-width: 1100px; border-bottom: 1px solid var(--text); color: var(--muted); font: 700 10px/1.5 var(--font-ui); letter-spacing: .09em; text-transform: uppercase; }
.portal-masthead b { color: var(--accent); padding-inline: 8px; }
.portal-heading { display: inline-flex; align-items: center; gap: 10px; }
.portal-heading img { display: block; width: 32px; height: 32px; }
.portal-masthead .website-link { font-size: 11px; letter-spacing: 0; text-transform: none; }
main { padding-top: 36px; max-width: 1176px; }
main > h2:first-child { padding-bottom: 4px; }
.panel, .svc, .plan, .modal-card, details.art, .col { border-radius: 2px; background: var(--panel); }
.panel { border-top-color: var(--line2); }
.svc:hover { transform: none; }
.svc h3, .plan h3 { font-size: 21px; }
.svc .d, .plan .d { font-size: 15px; }
.plan.hot { border-color: var(--accent); box-shadow: 4px 4px 0 var(--accent-soft); }
.plan .ribbon, .tag { border-radius: 2px; }
.col { background: var(--panel2); box-shadow: none; }
.modal-card { border: 1px solid var(--text); box-shadow: 6px 6px 0 rgba(22, 54, 80, .2); }
.modal-card h3 { font-size: 23px; }
th { background: var(--panel2); border-bottom-color: var(--text); color: var(--text); }
table tr:hover td, #qItems tr:last-child td { background: var(--panel2); }
.msgs { background: var(--panel2); border-radius: 2px 2px 0 0; }
.msg { background: var(--panel); border-radius: 2px 12px 12px 12px; box-shadow: none; }
.msg.mine { border-radius: 12px 2px 12px 12px; box-shadow: none; }
.chatin { background: var(--panel); border-radius: 0 0 2px 2px; }
.thread { background: var(--panel); border-width: 1px; border-radius: 3px; }
.chatin .btn { box-shadow: none; }
#moreSheet .sheet { background: var(--paper-card); border-top: 2px solid var(--text); border-radius: 4px 4px 0 0; }
#moreSheet .nav { border-radius: 2px; }
.dashboard-cards { border-top: 2px solid var(--text); margin-top: 32px; gap: 0; }
.dashboard-cards .panel { padding: 26px 24px 28px; border: 0; border-right: 1px solid var(--line2); border-radius: 0; background: transparent; box-shadow: none; }
.dashboard-cards .panel:first-child { padding-left: 0; }
.dashboard-cards .panel:last-child { border-right: 0; }
.dashboard-cards .eyebrow { margin-bottom: 22px; }
.dashboard-cards h3 { font-size: 25px; margin: 0; }

/* Public project request, including verification and success states. */
.request-page .wrap { max-width: 830px; padding-top: 0; }
.request-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; border-bottom: 1px solid var(--text); margin-bottom: 42px; }
.request-page h1 { font-size: clamp(34px, 5vw, 52px); color: var(--text); margin-bottom: 16px; }
.request-page .lead { font-size: 18px; max-width: 700px; margin-bottom: 30px; }
.request-page .card { background: var(--paper-card); padding: 32px; border: 1px solid var(--text); border-radius: 2px; box-shadow: var(--shadow-lg); }
.request-page .card input, .request-page .card textarea { background: var(--paper); }
.request-page .steps { margin-bottom: 32px; gap: 9px; }
.request-page .steps span { border-radius: 0; height: 3px; }
.request-page .drop, .request-page .file, .request-page .code input { border-radius: 2px; }
.request-page .drop { background: var(--paper); }
.request-page .foot { font-family: var(--font-ui); border-top: 1px solid var(--line); }
.request-page .row { gap: 20px; }
.request-page .f { margin-bottom: 20px; }
.request-page .code { gap: 6px; }
.request-page .code input { min-width: 0; }

@media (max-width: 1000px) and (min-width: 821px) {
  .signin-layout { gap: 36px; grid-template-columns: minmax(0, 1fr) minmax(310px, .95fr); }
  #signin .card { padding: 28px; }
}
@media (max-width: 820px) {
  #signin { padding-inline: 22px; }
  .signin-header { min-height: 80px; }
  .signin-layout { grid-template-columns: 1fr; gap: 32px; padding-block: 36px 44px; max-width: 570px; }
  .signin-story h1 { font-size: clamp(40px, 8vw, 60px); }
  .signin-lede { max-width: none; font-size: 17px; margin-bottom: 22px; }
  .signin-index { gap: 12px; padding-top: 14px; }
  #signin .card { padding: 28px; }
  .signin-footer { flex-direction: column; gap: 3px; }
  #app.ready { grid-template-columns: minmax(0, 1fr); }
  aside { padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--text); background: var(--paper-card); box-shadow: none; }
  aside .logo.portal-brand { display: none; }
  .nav.on { box-shadow: inset 0 -2px 0 var(--accent); }
  .portal-masthead { margin-inline: 18px; padding-block: 19px; letter-spacing: .035em; }
  .portal-masthead b { padding-inline: 3px; }
  main { padding: 25px 18px calc(100px + env(safe-area-inset-bottom)); }
  main h2 { font-size: 28px; }
  .dashboard-cards { grid-template-columns: 1fr; margin-top: 26px; }
  .dashboard-cards .panel, .dashboard-cards .panel:first-child { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); margin-bottom: 0; }
  .dashboard-cards .eyebrow { margin-bottom: 12px; }
  .request-page .card { padding: 24px; }
}
@media (max-width: 480px) {
  .signin-header, .request-header { flex-wrap: wrap; padding-block: 18px; gap: 14px; }
  .portal-masthead { flex-wrap: wrap; }
  .portal-brand { font-size: 23px; gap: 7px; }
  .portal-brand img { width: 196px; }
  .website-link { font-size: 11px; gap: 7px; }
  #signin .card { padding: 24px 20px; }
  #signin .card h2 { font-size: 28px; }
  .signin-story .eyebrow { margin-bottom: 14px; }
  .signin-story h1 { font-size: 38px; margin-bottom: 0; }
  .signin-lede, .signin-index { display: none; }
  .request-page .wrap { padding-inline: 18px; }
  .request-header { margin-bottom: 30px; }
  .request-page .card { padding: 22px 16px; }
  .request-page .code input { width: 36px; height: 50px; }
  .portal-masthead .website-link { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  body, body.request-page { background: white; }
  .panel, .card, .svc, .plan { box-shadow: none; }
  .portal-masthead, aside { display: none; }
  #app.ready { display: block; }
}
