/* ============================================================
   gigaSPG prototype, styles for the content pages:
   company, news, news-article and contact.
   Loaded after site.css. It uses site.css's tokens and adds no
   colour of its own; the news tiles (.news-tiles) and the
   placeholder marker (.todo) come from there.
   ============================================================ */

/* ---------- the first section of a content page sits closer to the header ---------- */
.page-top .sec-head{ margin-bottom:var(--s6); }

/* ---------- a marked note: the .todo marker, for a sentence instead of a word ---------- */
.todo-note{
  font-family:var(--font-sans); font-size:16px; line-height:1.8; color:var(--ink-soft);
  margin:0; padding:var(--s3) var(--s4); border-radius:2px;
  border:1px dashed rgba(31,41,51,.5);
  background:repeating-linear-gradient(-45deg, transparent 0 6px, rgba(31,41,51,.05) 6px 12px);
}

/* ---------- a list of facts on paper (telephone, address) ---------- */
.facts{ margin:0; font-family:var(--font-sans); font-size:17px; }
.facts dt{ color:var(--ink-mute); font-size:15px; letter-spacing:.06em; line-height:1.7; }
.facts dd{ margin:var(--s1) 0 var(--s4); }
.facts dd:last-child{ margin-bottom:0; }

/* ================= two columns: the form, and the facts beside it (contact) ================= */
.split{ display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:var(--s6) var(--s7); align-items:start; }
@media (max-width:980px){
  .split{ grid-template-columns:minmax(0,1fr); }
}

/* ================= company profile: one sheet, a short introduction, then one fact per row ================= */
.profile .sec-title{ margin-bottom:var(--s5); }
.corp-intro{ font-size:18.5px; line-height:1.95; }
.corp-intro p + p{ margin-top:var(--s4); }
/* The facts: a table with every cell framed by the same clear line. Label and value have one font,
   size, line height and padding, and every value starts at the same distance from its label. */
.corp-table{
  --cell-line:var(--line-strong);
  width:100%; margin-top:var(--s7); border-collapse:collapse;
  font-family:var(--font-sans); font-size:17px; line-height:1.75;
}
.corp-table th,.corp-table td{
  border:1px solid var(--cell-line); padding:var(--s4) var(--s5);
  text-align:left; vertical-align:middle;
}
.corp-table th{ width:12em; background:#E4ECF3; color:var(--navy); font-weight:600; letter-spacing:.04em; white-space:nowrap; }
.corp-table td{ background:#fff; color:var(--ink); }
.corp-table a{ color:var(--blue-link); }
.corp-table ul{ list-style:none; margin:0; padding:0; }
.corp-table li + li{ margin-top:var(--s2); }
@media (max-width:560px){
  .corp-table,.corp-table tbody,.corp-table tr,.corp-table th,.corp-table td{ display:block; width:auto; }
  .corp-table tr + tr th{ border-top:0; }
  .corp-table td{ border-top:0; }
  .corp-table th{ padding-block:var(--s2); }
  .corp-table td{ padding-block:var(--s3); }
}


/* ================= news: the article (the list and its rows are in site.css) ================= */
.post-back{ margin:0 0 var(--s5); }
.post-back .news-all{ margin-top:0; }
.post-meta{ display:flex; align-items:center; gap:var(--s4); flex-wrap:wrap; margin:0 0 var(--s3); }
.post h1{ margin-bottom:var(--s6); }
.post-figure{ max-width:760px; margin:0 0 var(--s6); background:#fff; padding:12px 12px 0; border:1px solid rgba(31,41,51,.10); box-shadow:var(--shadow-card); }
.post-figure img{ width:100%; aspect-ratio:16/9; object-fit:cover; background:var(--paper-deep); }
.post-figure figcaption{ font-family:var(--font-sans); font-size:16px; color:var(--ink-mute); line-height:1.7; padding:var(--s3) var(--s2) var(--s4); }
.post-body{ font-size:18.5px; line-height:2; max-width:760px; }
.post-body .post-sub{ font-size:24px; margin:var(--s6) 0 var(--s3); }
.post-more{ margin-top:var(--s6); }
.post-gone{ font-size:18.5px; color:var(--ink-soft); margin:var(--s5) 0 var(--s6); }
.post .todo-note{ margin-top:var(--s7); }
.post-end{ margin-top:var(--s7); padding-top:var(--s4); border-top:1px solid var(--rule); }
@media (max-width:560px){ .post-more .btn{ width:100%; } }

/* ================= contact: the form ================= */
.field{ margin:0 0 var(--s5); padding:0; border:0; min-width:0; }
.field > label,.field > legend{
  display:flex; align-items:center; gap:var(--s1) var(--s3); flex-wrap:wrap; padding:0; margin-bottom:var(--s2);
  font-family:var(--font-sans); font-size:17px; font-weight:600; color:var(--navy); line-height:1.7;
}
.req,.opt{ font-family:var(--font-sans); font-size:15px; font-weight:600; line-height:1.6; padding:0 8px; border-radius:2px; white-space:nowrap; }
.req{ background:var(--navy); color:#fff; border:1px solid var(--navy); }
.opt{ color:var(--ink-mute); border:1px solid rgba(31,41,51,.3); }
.field input[type="text"],.field textarea{
  display:block; width:100%; font-family:var(--font-sans); font-size:18px; line-height:1.7; color:var(--ink);
  min-height:52px; padding:10px 14px; background:#fff; border:1px solid rgba(31,41,51,.5); border-radius:2px;
}
.field textarea{ min-height:190px; resize:vertical; }
.field input[type="text"]:focus-visible,.field textarea:focus-visible{ outline:2px solid var(--blue-link); outline-offset:1px; border-color:var(--navy); }

/* the case selector: one row per audience, the whole row takes the tap */
.cases{ border-top:1px solid var(--rule); }
.case{
  display:flex; align-items:center; gap:var(--s4); min-height:56px; padding:var(--s3) var(--s3);
  border-bottom:1px solid var(--rule); cursor:pointer; font-size:18px; line-height:1.6; color:var(--ink);
}
.case input{
  appearance:none; -webkit-appearance:none; flex:none; margin:0; width:26px; height:26px; border-radius:50%;
  border:2px solid var(--navy); background:#fff; display:grid; place-content:center; cursor:pointer;
}
.case input::before{ content:""; width:12px; height:12px; border-radius:50%; background:var(--navy); transform:scale(0); transition:transform .12s ease-out; }
.case input:checked::before{ transform:scale(1); }
.case:hover{ background:var(--paper-warm); }
.case:has(input:checked){ background:var(--paper-deep); font-weight:600; color:var(--navy-deep); }
.case:has(input:focus-visible){ outline:2px solid var(--blue-link); outline-offset:-2px; }
.case input:focus-visible{ outline:0; }

.field-err{ font-family:var(--font-sans); font-size:16px; font-weight:600; color:var(--seal); line-height:1.7; margin:var(--s2) 0 0; }
.field.has-err input[type="text"],.field.has-err textarea{ border-color:var(--seal); border-width:2px; }
.field.has-err .cases{ border-top-color:var(--seal); }

.form-end{ display:grid; gap:var(--s5); margin-top:var(--s6); padding-top:var(--s5); border-top:1px solid var(--rule); justify-items:start; }
.form-end .todo-note{ justify-self:stretch; }
.sent{ font-family:var(--font-sans); font-size:17px; line-height:1.8; font-weight:600; color:var(--navy-deep); margin:0; }
.send-failed{ font-family:var(--font-sans); font-size:17px; line-height:1.8; font-weight:600; color:var(--seal); margin:0; }
.send-failed a{ color:inherit; white-space:nowrap; }
.contact-facts{ position:sticky; top:102px; }
.contact-facts h2{ font-size:20px; margin-bottom:var(--s4); }
@media (max-width:980px){ .contact-facts{ position:static; } }
@media (max-width:560px){ .form-end .btn{ width:100%; } }

/* ---------- the privacy policy ---------- */
.privacy > .todo-note{ margin-bottom:var(--s6); }
.privacy-date{ margin-top:var(--s7); color:var(--ink-mute); }

/* ---------- the contact form's line on personal information ---------- */
.form-privacy{ font-family:var(--font-sans); font-size:16px; line-height:1.8; color:var(--ink-soft); margin:0; }

/* ---------- the 404 page ---------- */
.not-found .sec-lead{ font-size:18.5px; line-height:1.95; color:var(--ink-soft); max-width:40em; margin:0 0 var(--s6); }
.not-found-links{ display:flex; flex-wrap:wrap; gap:var(--s4); margin:0; }
