@import url("fonts.css");

/* ==========================================================================
   Chalkidiki Pearl - design system

   The site is organised like an architect's document set rather than a
   brochure: hairline rules, tabular figures, and a section drawing doing the
   work a hero photograph would normally do. The palette is taken from the
   renders themselves - chalk, graphite, and the green-blue of the Toroneos
   gulf - and the page commits to that single daylight world deliberately, so
   every colour below is stated outright rather than inherited from the host.
   ========================================================================== */

:root {
    /* Ground and surfaces */
    --bone: #f3f2ee;
    --paper: #ffffff;
    --shade: #e9e8e2;

    /* Ink */
    --graphite: #191c1d;
    --slate: #626b6d;
    --line: #cfcec8;
    --line-soft: #e2e1db;

    /* The gulf */
    --sea: #1d5c68;
    --sea-deep: #143f48;
    --sea-tint: #e3ecee;

    /* Type */
    --display: "Commissioner", "Helvetica Neue", Arial, sans-serif;
    --body: "Literata", Georgia, "Times New Roman", serif;

    /* A 1.25 scale, rounded to whole pixels where it matters */
    --t-xs: 0.8125rem;
    --t-sm: 0.9375rem;
    --t-base: 1.1875rem;
    --t-md: 1.4375rem;
    --t-lg: 1.625rem;
    --t-xl: 2.25rem;
    --t-2xl: 3.25rem;
    --t-3xl: 4.75rem;

    /* Rhythm */
    --s1: 0.5rem;
    --s2: 1rem;
    --s3: 1.5rem;
    --s4: 2.5rem;
    --s5: 4rem;
    --s6: 6rem;
    --s7: 9rem;

    --gutter: clamp(1.25rem, 5vw, 5rem);
    --measure: 66ch;
    --rail-h: 4.25rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

body {
    margin: 0;
    background: var(--bone);
    color: var(--graphite);
    font-family: var(--body);
    font-size: var(--t-base);
    line-height: 1.68;
    font-synthesis-weight: none;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--sea);
    text-underline-offset: 0.18em;
    text-decoration-thickness: from-font;
}

a:hover {
    color: var(--sea-deep);
}

:focus-visible {
    outline: 2px solid var(--sea);
    outline-offset: 3px;
}

/* --------------------------------------------------------------- headings */

h1,
h2,
h3,
h4 {
    font-family: var(--display);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin: 0;
}

h1 {
    font-size: clamp(2.75rem, 7vw, var(--t-3xl));
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(1.875rem, 4vw, var(--t-2xl));
    letter-spacing: -0.03em;
}

h3 {
    font-size: var(--t-lg);
}

p {
    margin: 0 0 1em;
}

/* Small letterspaced labels carry the document-set feel throughout. */
.eyebrow {
    font-family: var(--display);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--slate);
    margin: 0;
}

.eyebrow--sea {
    color: var(--sea);
}

.lede {
    font-size: var(--t-md);
    line-height: 1.5;
    color: var(--graphite);
    max-width: 54ch;
}

.prose {
    max-width: var(--measure);
}

.prose p + p {
    margin-top: 0;
}

/* ------------------------------------------------------------------ layout */

.wrap {
    padding-inline: var(--gutter);
    margin-inline: auto;
    max-width: 90rem;
}

.section {
    padding-block: clamp(3.5rem, 6.5vw, 6.5rem);
    border-top: 1px solid var(--line);
}

.section--flush {
    border-top: 0;
}

.section__head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2) var(--s4);
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--s4);
}

/* -------------------------------------------------------------------- rail */

.rail {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(243, 242, 238, 0.93);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.rail__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
    height: var(--rail-h);
}

.rail__mark {
    font-family: var(--display);
    font-weight: 600;
    font-size: var(--t-sm);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--graphite);
    text-decoration: none;
    white-space: nowrap;
}

.rail__nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.25rem);
}

/* Only the plain nav links, which are direct children of the bar. Written as
   `.rail__nav a` this outranked both `.rail__cta` and `.lang__opt--on` - class
   plus element beats a single class - and painted their white text grey. */
.rail__nav > a:not(.rail__cta) {
    font-family: var(--display);
    font-size: var(--t-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
    text-decoration: none;
}

.rail__nav > a:not(.rail__cta):hover,
.rail__nav > a:not(.rail__cta)[aria-current="page"] {
    color: var(--graphite);
}

.rail__cta {
    font-family: var(--display);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--paper);
    background: var(--sea);
    padding: 0.7em 1.2em;
    text-decoration: none;
    white-space: nowrap;
}

.rail__cta:hover {
    background: var(--sea-deep);
    color: var(--paper);
}

/* On a phone the section links fold away, but the language switch and the
   enquiry button stay - hence the child combinator, which leaves the options
   inside .lang alone. */
@media (max-width: 52rem) {
    .rail__nav > a:not(.rail__cta) {
        display: none;
    }
}

/* -------------------------------------------------------------------- hero */

/* The title stands on its own, so it gets the whole measure and real air
   around it rather than sharing the fold with the drawing. */
.hero {
    padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 7vw, 5.5rem);
}

.hero__title {
    margin-block: var(--s2) var(--s3);
    max-width: 18ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
    margin-top: var(--s3);
}

.btn {
    font-family: var(--display);
    font-size: var(--t-sm);
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.85em 1.5em;
    text-decoration: none;
    border: 1px solid var(--sea);
    display: inline-block;
}

.btn--solid {
    background: var(--sea);
    color: var(--paper);
}

.btn--solid:hover {
    background: var(--sea-deep);
    border-color: var(--sea-deep);
    color: var(--paper);
}

.btn--ghost {
    background: transparent;
    color: var(--sea);
}

.btn--ghost:hover {
    background: var(--sea-tint);
    color: var(--sea-deep);
}

/* ------------------------------------------------------- section  drawing */

/* The centrepiece: each residence spans two levels, and the volumes are
   offset by one level because they step down the slope. The grid rows are
   the building's levels, so the silhouette is a consequence of the data
   rather than decoration. */

.sections {
    display: grid;
    gap: var(--s4);
    grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
    .sections {
        grid-template-columns: auto auto;
        justify-content: start;
        gap: clamp(2rem, 6vw, 5.5rem);
    }
}

.svol {
    position: relative;
}

.svol__label {
    display: flex;
    align-items: baseline;
    gap: 0.6em;
    margin-bottom: var(--s2);
}

.svol__label .n {
    font-family: var(--display);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--graphite);
}

.svol__label .c {
    font-family: var(--display);
    font-size: var(--t-xs);
    color: var(--slate);
    font-variant-numeric: tabular-nums;
}

.svol__body {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

/* Level ruler down the left edge, like a section drawing's datum marks. */
.levels {
    display: grid;
    gap: 2px;
    padding-right: 0.5rem;
    border-right: 1px solid var(--line);
}

.levels span {
    font-family: var(--display);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--slate);
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: var(--lvl-h);
}

.svol__body {
    --lvl-h: 4.25rem;
}

.plots {
    display: grid;
    gap: 2px;
    grid-template-columns: repeat(var(--cols), clamp(6rem, 12vw, 10.5rem));
    grid-template-rows: repeat(var(--levels), var(--lvl-h));
    /* Level lines continue across the empty cells, so the stepped silhouette
       of the volumes reads against a datum instead of floating. */
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0 var(--lvl-h),
        var(--line-soft) var(--lvl-h) calc(var(--lvl-h) + 2px)
    );
}

.levels {
    grid-template-rows: repeat(var(--levels), var(--lvl-h));
}

.unit {
    grid-column: var(--col);
    grid-row: var(--row-start) / span 2;
    background: var(--paper);
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--graphite);
    padding: 0.7rem 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.unit:hover,
.unit:focus-visible {
    background: var(--sea-tint);
    border-color: var(--sea);
    color: var(--graphite);
    transform: translateY(-2px);
}

.unit__n {
    font-family: var(--display);
    font-size: var(--t-lg);
    font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.unit__m {
    font-family: var(--display);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--slate);
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

.unit__pool {
    display: inline-block;
    margin-top: 0.15rem;
    font-family: var(--display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sea);
}

.drawing-note {
    font-family: var(--display);
    font-size: var(--t-sm);
    color: var(--slate);
    margin-top: var(--s3);
    max-width: 56ch;
    line-height: 1.6;
}

/* ------------------------------------------------------------------ facts */

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.facts div {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: var(--s3) var(--s2);
}

.facts dt,
.facts .k {
    font-family: var(--display);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 0.4rem;
}

.facts dd,
.facts .v {
    margin: 0;
    font-family: var(--display);
    font-size: var(--t-xl);
    font-weight: 500;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.facts .u {
    font-size: var(--t-sm);
    color: var(--slate);
    letter-spacing: 0;
}

/* ------------------------------------------------------------------ plate */

/* The one indulgent moment: a render at full bleed, no text on top of it. */
.plate {
    margin: 0;
}

.plate img {
    width: 100%;
    height: clamp(20rem, 62vh, 40rem);
    object-fit: cover;
}

.plate figcaption {
    font-family: var(--display);
    font-size: var(--t-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate);
    padding-top: 0.8rem;
}

/* ------------------------------------------------------------------ table */

.units-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--display);
    font-variant-numeric: tabular-nums;
}

.table-scroll {
    overflow-x: auto;
}

.units-table th {
    text-align: left;
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    padding: 0 1rem 0.75rem 0;
    border-bottom: 1px solid var(--graphite);
    white-space: nowrap;
}

.units-table td {
    padding: 1.15rem 1rem 1.15rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: var(--t-base);
    white-space: nowrap;
}

.units-table tbody tr:hover {
    background: var(--shade);
}

.units-table .num {
    font-weight: 600;
    font-size: var(--t-base);
}

.units-table .area {
    font-weight: 500;
}

.units-table .dash {
    color: var(--line);
}

/* Pin the plans link to the right edge so the row reads as a schedule line
   rather than leaving a stranded column of whitespace. */
.units-table th:last-child,
.units-table td:last-child {
    text-align: right;
    padding-right: 0;
}

.units-table a {
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
}

.units-table a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------- gallery */

/* Six images, so hold an exact 3 x 2 rather than letting auto-fit strand a
   short final row. */
.strip {
    display: grid;
    gap: 2px;
    grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
    .strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 64rem) {
    .strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

.strip img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* ---------------------------------------------------------------- contact */

.contact {
    background: var(--sea);
    color: var(--paper);
}

.contact h2 {
    color: var(--paper);
}

.contact .eyebrow {
    color: var(--sea-tint);
}

.contact__lines {
    display: grid;
    gap: var(--s3);
    margin-top: var(--s4);
}

@media (min-width: 45rem) {
    .contact__lines {
        grid-template-columns: repeat(2, minmax(0, max-content));
        gap: var(--s5);
    }
}

.contact__lines a {
    font-family: var(--display);
    font-size: clamp(1.25rem, 3vw, var(--t-xl));
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--paper);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 0.15em;
    display: inline-block;
}

.contact__lines a:hover {
    color: var(--paper);
    border-bottom-color: var(--paper);
}

.contact__lines .k {
    font-family: var(--display);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sea-tint);
    margin-bottom: 0.6rem;
}

/* ----------------------------------------------------------------- footer */

.foot {
    border-top: 1px solid var(--line);
    padding-block: var(--s4);
    font-family: var(--display);
    font-size: var(--t-xs);
    color: var(--slate);
}

.foot__inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2) var(--s4);
    justify-content: space-between;
    align-items: center;
}

.foot a {
    color: var(--slate);
    text-decoration: none;
}

.foot a:hover {
    color: var(--graphite);
}

/* ------------------------------------------------------------- utilities */

.split {
    display: grid;
    gap: var(--s4);
    grid-template-columns: 1fr;
}

@media (min-width: 58rem) {
    .split {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: clamp(2.5rem, 6vw, 5rem);
    }
}

.stack > * + * {
    margin-top: var(--s3);
}

.bleed {
    margin-inline: calc(var(--gutter) * -1);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.datalist {
    border-top: 1px solid var(--line);
}

.datalist div {
    display: flex;
    justify-content: space-between;
    gap: var(--s2);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.datalist dt {
    font-family: var(--display);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
}

.datalist dd {
    margin: 0;
    font-family: var(--display);
    font-size: var(--t-sm);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* ---------------------------------------------------------------- gallery */

.grid-tiles {
    display: grid;
    gap: 2px;
    grid-template-columns: 1fr;
}

@media (min-width: 38rem) {
    .grid-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 62rem) {
    .grid-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tile {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--shade);
}

.tile img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 320ms ease, opacity 220ms ease;
}

.tile:hover img,
.tile:focus-visible img {
    transform: scale(1.03);
    opacity: 0.94;
}

/* ------------------------------------------------------------- lightbox */

.lightbox {
    border: 0;
    padding: 0;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 23, 24, 0.96);
    color: var(--paper);
}

.lightbox::backdrop {
    background: rgba(20, 23, 24, 0.9);
}

.lightbox img {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: min(94vw, 100rem);
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox__cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.5rem;
    margin: 0;
    text-align: center;
    font-family: var(--display);
    font-size: var(--t-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    z-index: 2;
    background: transparent;
    border: 0;
    color: var(--paper);
    font-family: var(--display);
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem 1rem;
}

.lightbox__close {
    top: 1rem;
    right: 1.25rem;
    font-size: 2.25rem;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

.lightbox__nav--prev {
    left: 0.5rem;
}

.lightbox__nav--next {
    right: 0.5rem;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    color: var(--sea-tint);
}

/* ------------------------------------------------- residence page pieces */

/* On a residence page the drawing doubles as a "you are here": the current
   home is filled in the accent, the rest stay available to jump to. */
.unit--current {
    background: var(--sea);
    border-color: var(--sea);
    color: var(--paper);
}

.unit--current:hover,
.unit--current:focus-visible {
    background: var(--sea-deep);
    border-color: var(--sea-deep);
    color: var(--paper);
    transform: none;
}

.unit--current .unit__m,
.unit--current .unit__pool {
    color: rgba(255, 255, 255, 0.82);
}

.hero--tight {
    padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

/* Drawings are documents, not pictures: give them a white page and room to
   breathe rather than cropping them to a uniform tile. */
.grid-sheets {
    display: grid;
    gap: var(--s3);
    grid-template-columns: 1fr;
}

@media (min-width: 50rem) {
    .grid-sheets {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-sheets .tile {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: var(--s2);
}

.grid-sheets .tile img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.grid-sheets .tile:hover img,
.grid-sheets .tile:focus-visible img {
    transform: none;
    opacity: 0.9;
}

/* ----------------------------------------------------------------- pager */

.pager {
    display: grid;
    gap: 2px;
    grid-template-columns: 1fr;
    padding-block: var(--s5);
    border-top: 1px solid var(--line);
}

@media (min-width: 40rem) {
    .pager {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pager__side {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: var(--s3);
    background: var(--paper);
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--graphite);
}

.pager__side:hover {
    background: var(--sea-tint);
    border-color: var(--sea);
    color: var(--graphite);
}

.pager__side--next {
    text-align: right;
}

.pager__k {
    font-family: var(--display);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--slate);
}

.pager__v {
    font-family: var(--display);
    font-size: var(--t-md);
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* ------------------------------------------------------------ image hero */

/* The opening screen carries a photograph again, but the type keeps its left
   alignment rather than floating in the middle of the picture. A scrim rising
   from the bottom-left holds the contrast where the words are and leaves the
   pool and the gulf clear on the right. */
/* Layer order is stated positively - photograph, then scrim, then words - so
   nothing depends on how a negative z-index interacts with the section's own
   background. */
.hero--image {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(30rem, 82vh, 48rem);
    padding-block: clamp(3rem, 8vw, 6rem);
    background: var(--graphite);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero--image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(12, 22, 25, 0.86) 0%, rgba(12, 22, 25, 0.45) 38%, rgba(12, 22, 25, 0) 68%),
        linear-gradient(to right, rgba(12, 22, 25, 0.62) 0%, rgba(12, 22, 25, 0.18) 45%, rgba(12, 22, 25, 0) 72%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero--image .hero__title {
    color: var(--paper);
    max-width: 16ch;
}

.eyebrow--ondark {
    color: #a7c9ce;
}

.lede--ondark {
    color: rgba(255, 255, 255, 0.9);
}

.btn--ondark {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.65);
    color: var(--paper);
}

.btn--ondark:hover {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--graphite);
}

/* Over a photograph the rail should not sit on an opaque bar. */
.rail {
    background: rgba(243, 242, 238, 0.92);
}

/* A whole schedule line is a bigger, easier target than the word at its end.
   The link inside stays the keyboard and screen-reader path; this is purely a
   pointer affordance, so it is styled but never replaces the anchor. */
.units-table tbody tr[data-href] {
    cursor: pointer;
}

.units-table tbody tr[data-href]:hover {
    background: var(--sea-tint);
}

.units-table tbody tr[data-href]:hover a {
    color: var(--sea-deep);
    text-decoration: underline;
}

/* Keep the row visibly active when the link inside it has keyboard focus. */
.units-table tbody tr:focus-within {
    background: var(--sea-tint);
}

/* -------------------------------------------------------- language switch */

/* Three short codes rather than flags: a flag stands for a country, and these
   stand for languages read in several of them. */
.lang {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding-inline: 0.35rem;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.lang__opt {
    font-family: var(--display);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--slate);
    text-decoration: none;
    padding: 0.35em 0.5em;
    line-height: 1;
}

.lang__opt:hover {
    color: var(--graphite);
}

.lang__opt--on {
    color: var(--paper);
    background: var(--sea);
}

.lang__opt--on:hover {
    color: var(--paper);
    background: var(--sea-deep);
}

/* The language switch is the one nav item that must survive on a phone. */
@media (max-width: 52rem) {
    .rail__nav .lang {
        display: flex;
    }
}
