/* The complaints procedure as a designed page (Kyle, 9 November 2026): src/views/Complaints.astro.
   Chalk, with the contact details on a navy card beside how to complain, what we do as a plain list, the times that
   apply as four figures, the rest of the procedure as the legal pages set it, and the Ombudsman on navy to close. */

.cp h2 { font-family: var(--serif); --serif-size: clamp(1.875rem, calc(3vw * var(--ts, 1)), 2.5rem); --serif-ls: -.012em; --serif-ws: -.02em; font-size: var(--serif-fit); line-height: 1.04; letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); color: var(--navy); text-wrap: balance; }
.cp .pg-lede { max-width: 60ch; }

/* how to complain, and who to contact */
.cp-top { padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.cp-top-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cp-how { display: grid; gap: 1.125rem; max-width: 42rem; }
.cp-how p { font-size: var(--t-body); line-height: 1.65; color: var(--ink); }
.cp-card { background: var(--navy); color: var(--chalk); border-radius: var(--r-card); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1.25rem; }
.cp .cp-card-h { font: 600 .75rem var(--sans); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; color: var(--brick-accent); }
.cp-rows { margin: 0; display: grid; }
.cp-rows > div { display: grid; grid-template-columns: 8.25rem minmax(0, 1fr); gap: .25rem 1rem; padding: .875rem 0; border-top: 1px solid var(--navy-line); }
.cp-rows > div:last-child { border-bottom: 1px solid var(--navy-line); }
.cp-rows dt { font-size: .9375rem; color: var(--sand); }
.cp-rows dd { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--chalk); overflow-wrap: break-word; }
.cp-rows a { color: var(--chalk); text-decoration: underline; text-decoration-color: var(--brick-accent); text-underline-offset: 3px; transition: color var(--fill, .5s), text-decoration-color var(--fill, .5s); }
.cp-rows a:hover { color: var(--brick-accent); }

/* the five steps */
.cp-proc { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.cp-intro { margin-top: 1.125rem; max-width: 46rem; font-size: var(--t-body); line-height: 1.65; color: var(--ink); }
.cp-list { list-style: none; margin: 1.125rem 0 0; padding: 0; display: grid; gap: .625rem; max-width: 46rem; }
.cp-list li { position: relative; padding-left: 1.375rem; font-size: var(--t-body); line-height: 1.6; color: var(--ink); }
.cp-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--brick-accent); }
.cp-after { margin-top: 1.5rem; display: grid; gap: 1rem; max-width: 46rem; }
.cp-after p { font-size: var(--t-body); line-height: 1.65; color: var(--ink); }

/* the times that apply */
.cp-times { padding-block: 0 clamp(2.5rem, 5vw, 4rem); }
.cp-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--navy); }
.cp-tl li + li { border-left: 1px solid var(--rule); }
.cp-tl a { display: grid; gap: .5rem; padding: 1.5rem 1.5rem 1.25rem; color: var(--ink); text-decoration: none; height: 100%; box-sizing: border-box; transition: background-color var(--fill, .5s); }
.cp-tl li:first-child a { padding-left: 0; }
.cp-tl a:hover { background-color: var(--stone); }
.cp-tl li:first-child a:hover { padding-left: 1.5rem; }
.cp-fig { font-family: var(--serif); --serif-size: clamp(1.875rem, 3vw, 2.5rem); font-size: var(--serif-fit); line-height: 1; color: var(--navy); }
.cp-fig b { font-weight: 400; color: var(--brick-word); }
.cp-tlabel { font-size: .9375rem; line-height: 1.45; color: var(--ink); max-width: 24ch; }

/* the rest of the procedure, as the legal pages set it */
.cp-body { border-top: 1px solid var(--rule); }
.cp-body .prose h2 { scroll-margin-top: calc(var(--rh, 34px) + var(--hh, 72px) + 1.5rem); }
.cp-body .prose h2:not(:first-child) { margin-top: 2.75rem; }
.cp .prose ol.cp-num { list-style: none; padding-left: 0; display: grid; gap: .75rem; }
.cp .prose ol.cp-num li { position: relative; padding-left: 2.5rem; }
.cp .prose ol.cp-num li::before { content: attr(data-n); position: absolute; left: 0; top: 0; font-weight: 600; color: var(--brick-word); font-variant-numeric: tabular-nums; }
#our-procedures, #how-to-complain, #financial-ombudsman-service { scroll-margin-top: calc(var(--rh, 34px) + var(--hh, 72px) + 1rem); }

/* the Financial Ombudsman Service */
.cp-fos { background: var(--navy); color: var(--chalk); padding-block: clamp(3rem, 6vw, 5rem); }
.cp-fos-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cp-fos h2 { color: var(--chalk); }
.cp-fos-l { display: grid; gap: 1.125rem; }
.cp-fos-l p { font-size: var(--t-body); line-height: 1.65; color: var(--chalk); max-width: 40rem; }
.cp-fos-r { display: grid; gap: 1rem; }
.cp-fos-addr { font-size: var(--t-body); line-height: 1.5; color: var(--chalk); }
.cp-fos .cp-fos-more { color: var(--sand); font-size: 1rem; line-height: 1.6; }
.cp-tel > span { color: var(--sand); font-size: .9375rem; }
.cp-tel a { font-size: 1rem; }
.cp-tel { display: grid; gap: .125rem; }
.cp-tel + .cp-tel { margin-top: .625rem; }
.cp-tel small { font-size: .875rem; color: var(--sand); }

@media (max-width: 900px) {
  .cp-top-in, .cp-fos-in { grid-template-columns: minmax(0, 1fr); }
  /* on a phone the contact details come first, as in the document, so "the above contact information" is above */
  .cp-card { order: -1; }
  .cp-tl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-tl li:nth-child(3) { border-left: 0; }
  .cp-tl li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .cp-tl li:nth-child(3) a { padding-left: 0; }
}
@media (max-width: 640px) {
  .cp-rows > div { grid-template-columns: minmax(0, 1fr); }
  .cp-tl a { padding: 1.25rem 1rem 1.125rem; }
}
/* every link a full fingertip's height on a phone */
@media (max-width: 760px) { .cp-rows a { display: inline-flex; align-items: center; min-height: 44px; } .cp-tel { gap: 0; } .cp-tel + .cp-tel { margin-top: .25rem; } }
