/* ENSOL location pages. Tokens follow the ENSOL brand kit: ink, paper, red, hairlines. */
:root {
  --ink: #0f172a;
  --paper: #ffffff;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --line: #cfd5dd;
  --muted: #475569;
  --wrap: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 1em; max-width: 68ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.mark { font-weight: 700; font-size: 1.35rem; letter-spacing: 0.02em; text-decoration: none; color: var(--ink); margin: 0; }
.mark span { font-weight: 500; font-size: 0.8rem; color: var(--red); letter-spacing: 0; }
.mark-light { color: var(--paper); }
.top nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.95rem; }
.top nav a:not(.btn) { text-decoration: none; }
@media (max-width: 860px) { .top nav a:not(.btn) { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem;
  font: 600 1rem/1 inherit; font-family: inherit; text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer;
}
.btn-sm { min-height: 2.4rem; padding: 0 1rem; font-size: 0.9rem; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* hero */
.hero { padding: 2.5rem 0 3rem; }
.hero-in { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 700; max-width: 18ch; margin-bottom: 1rem; }
.hero-plain h1 { max-width: 24ch; }
.lede { font-size: 1.2rem; color: var(--muted); }
.hero-img { margin: 0; border: 1px solid var(--ink); }
.hero-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; gap: 1.5rem; } }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.5rem; }
.call { font-size: 0.95rem; color: var(--muted); flex-basis: 100%; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0 0 1.25rem; font-size: 0.875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--line); }

/* title block: modelled on a fabrication drawing title block */
.tb-wrap { padding-bottom: 3rem; }
.titleblock {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0;
  border: 1.5px solid var(--ink); border-left: 8px solid var(--red);
}
.titleblock > div { padding: 0.85rem 1rem 1rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); min-width: 0; }
.titleblock > div:nth-child(4n) { border-right: 0; }
.titleblock > div:nth-last-child(-n + 4) { border-bottom: 0; }
.titleblock dt { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; }
.titleblock dd { margin: 0; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock > div { border-right: 1px solid var(--ink) !important; border-bottom: 1px solid var(--ink) !important; }
  .titleblock > div:nth-child(2n) { border-right: 0 !important; }
  .titleblock > div:nth-last-child(-n + 2) { border-bottom: 0 !important; }
}

/* content sections */
.sec { border-top: 1px solid var(--line); }
.sec-in { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.sec h2 { font-size: 1.5rem; font-weight: 700; }
@media (max-width: 860px) { .sec-in { grid-template-columns: 1fr; gap: 1rem; } }

.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.spec th { width: 36%; font-weight: 500; color: var(--muted); padding-right: 1rem; }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 0.6rem 0 0.6rem 1.4rem; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 0.55rem; height: 0.55rem; background: var(--red); }

details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 0.9rem 0; font-weight: 600; list-style-position: outside; }
details p { color: var(--muted); }

.links { list-style: none; padding: 0; margin: 0 0 1rem; columns: 2 16rem; column-gap: 2rem; }
.links li { break-inside: avoid; padding: 0.35rem 0; }
.region { margin-bottom: 1.75rem; }
.region h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.more { font-weight: 600; }

/* quote */
.quote { background: var(--ink); color: #e2e8f0; }
.quote-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.quote h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.quote a { color: #fff; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; color: #cbd5e1; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #fff; border-radius: 0; padding: 0.7rem 0.75rem; width: 100%;
}
.form input[type="file"] { background: transparent; color: #e2e8f0; border: 1px dashed #64748b; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .quote-in { grid-template-columns: 1fr; gap: 2rem; } .form { grid-template-columns: 1fr; } }

/* footer */
.foot { background: var(--ink); color: #94a3b8; border-top: 1px solid #1e293b; font-size: 0.92rem; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; }
.foot p { margin-bottom: 0.45rem; }
.foot a { color: #e2e8f0; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-h { color: #fff; font-weight: 600; margin-bottom: 0.8rem !important; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr; } }
