/* ==========================================================================
   allsalone.com — site styles
   Plain CSS, no build step. Mobile-first, one stylesheet.
   ========================================================================== */

:root {
    /* Palette taken from the original allsalone.com stylesheet
       (images/style.css): sky blue #77b0d4, orange #fa5a0c, navy
       #144f7c / #1d5581, grey #eceff1, borders #d8d8d8 / #e1e1e1.
       The two brand colours are decorative as-is (2.35:1 and 3.22:1 on
       white), so text uses slightly deeper shades of the same hues. */

    /* Legacy sky blue, for rules, borders and fills that carry no text. */
    --brand-blue: #77b0d4;

    --blue-900: #0d3a5e;
    --blue-800: #144f7c;   /* legacy navy, 8.9:1 on white */
    --blue-700: #1d5581;   /* legacy navy, 7.9:1 on white */
    --blue-600: #2c6f9e;   /* links and buttons, 5.4:1 on white */
    --blue-500: #77b0d4;   /* legacy sky blue */
    --blue-100: #e6f1f9;
    --blue-050: #f3f9fd;

    /* Legacy orange: decorative only at full strength. */
    --orange: #fa5a0c;
    /* White text on #b8460a is 5.36:1. */
    --orange-600: #b8460a;
    --orange-700: #a03c08;
    --orange-100: #fdece1;
    /* Legacy pale amber used for premium and hovered listings. */
    --amber-050: #fff7df;
    --amber-100: #ffe497;

    --ink: #333333;        /* legacy body colour, 12.6:1 */
    --ink-soft: #3f4952;
    --muted: #565d65;      /* legacy secondary text, 6.7:1 */
    --muted-light: #5b646c;

    --line: #e1e1e1;
    --line-strong: #d8d8d8;
    --bg: #ffffff;
    --bg-soft: #f1f4f6;    /* legacy #eceff1 strip, lifted slightly */
    --bg-softer: #f8fafb;

    --green: #16794a;
    --green-100: #e4f5ec;
    --red: #b42318;
    --red-100: #fdecea;

    --radius-sm: 3px;
    --radius: 6px;
    --radius-lg: 10px;

    --shadow-sm: 0 1px 2px rgba(20, 79, 124, .07), 0 1px 3px rgba(20, 79, 124, .05);
    --shadow: 0 4px 14px rgba(20, 79, 124, .09);
    --shadow-lg: 0 18px 40px rgba(20, 79, 124, .13);

    --container: 1200px;
    --gutter: 20px;

    /* The original site was set in Tahoma with "Trebuchet MS" italics for
       the wordmark; both are Windows fonts with sensible fallbacks. */
    --font: Tahoma, Verdana, "Segoe UI", Arial, Helvetica, sans-serif;
    --font-brand: "Trebuchet MS", Tahoma, Verdana, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 .5em;
    color: var(--blue-700);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    color: var(--blue-800);
    font-size: clamp(1.75rem, 1.25rem + 1.7vw, 2.5rem);
}

h2 {
    font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem);
}

h3 {
    font-size: 1.125rem;
}

h4 {
    color: var(--ink);
    font-size: 1rem;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--blue-600);
    text-decoration: none;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--orange-600);
    text-decoration: underline;
}

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

ul,
ol {
    margin: 0 0 1em;
    padding-left: 1.25em;
}

hr {
    height: 1px;
    margin: 2rem 0;
    border: 0;
    background: var(--line);
}

:focus-visible {
    outline: 3px solid var(--blue-600);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

::selection {
    background: var(--amber-100);
    color: var(--blue-900);
}

/* --------------------------------------------------------------------------
   2. Utilities
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--blue-700);
    color: #fff;
    font-weight: 600;
    transition: top .15s ease;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
    text-decoration: none;
}

.muted {
    color: var(--muted);
}

.eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .75rem;
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.eyebrow a {
    color: var(--muted);
}

.eyebrow a:hover {
    color: var(--blue-700);
}

.meta-country,
.meta-company {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.meta-country img {
    display: inline-block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(16, 34, 51, .08);
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--blue-100);
    color: var(--blue-800);
    font-family: inherit;
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

/* The original buttons were sky blue and turned orange on hover; these are
   the same two steps, darkened just enough for white label text. */
.btn-primary {
    background: var(--blue-600);
    color: #fff;
    box-shadow: 0 1px 2px rgba(20, 79, 124, .25);
}

.btn-primary:hover {
    background: var(--orange-600);
    color: #fff;
}

.btn-ghost {
    border-color: var(--line-strong);
    background: #fff;
    color: var(--blue-800);
}

.btn-ghost:hover {
    border-color: var(--blue-500);
    background: var(--blue-050);
    color: var(--blue-800);
}

.btn-link {
    background: transparent;
    color: var(--blue-600);
    font-weight: 700;
}

.btn-link:hover {
    background: var(--blue-050);
    color: var(--orange-600);
}

.btn-small {
    min-height: 36px;
    padding: 7px 14px;
    font-size: .875rem;
}

.btn-block {
    width: 100%;
}

.btn-search {
    background: var(--blue-600);
    color: #fff;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.btn-search:hover {
    background: var(--orange-600);
    color: #fff;
}

/* --------------------------------------------------------------------------
   4. Badges, chips, avatars
   -------------------------------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1.5;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-sale {
    background: var(--green-100);
    color: var(--green);
}

.badge-wanted {
    background: var(--orange-100);
    color: var(--orange-700);
}

.badge-offer {
    background: var(--blue-100);
    color: var(--blue-800);
}

.badge-verified {
    background: #fff;
    color: var(--blue-700);
    box-shadow: inset 0 0 0 1px rgba(11, 79, 134, .35);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

.badge-verified::before {
    content: "✓";
    font-size: .75rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chips > li > a,
.chips > li {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-softer);
    color: var(--ink-soft);
    font-size: .8125rem;
    font-weight: 500;
}

.chips > li > a:hover {
    border-color: var(--blue-500);
    background: var(--blue-050);
    color: var(--blue-800);
    text-decoration: none;
}

.chips-small > li,
.chips-small > li > a {
    padding: 3px 10px;
    font-size: .75rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-soft);
    font-size: .8125rem;
    font-weight: 500;
}

.chip:hover {
    border-color: var(--orange-600);
    color: var(--orange-600);
    background: var(--amber-050);
    text-decoration: none;
}

.avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.avatar-large {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   5. Forms
   -------------------------------------------------------------------------- */

.field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
}

.field label {
    color: var(--ink-soft);
    font-size: .8125rem;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: .9375rem;
    line-height: 1.4;
}

.field textarea {
    min-height: 160px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue-600);
    outline: 3px solid rgba(44, 111, 158, .18);
    outline-offset: 0;
}

.field-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.field-grow {
    flex: 1 1 260px;
}

.required {
    color: var(--red);
}

.form-note {
    color: var(--muted);
    font-size: .8125rem;
}

.form-note a,
.auth-switch a,
.auth-aside a:not(.btn),
.auth-message a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hp-field {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line-strong);
}

/* Original top strip: light grey band with small grey links. */
.topbar {
    background: #eceff1;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .8125rem;
}

.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    min-height: 34px;
}

.topbar-claim {
    margin: 0;
}

.topbar-nav {
    display: flex;
    gap: 1.25rem;
}

.topbar-nav a {
    color: var(--muted);
}

.topbar-nav a:hover {
    color: var(--blue-800);
    text-decoration: underline;
}

.masthead {
    padding-block: 18px;
}

.masthead-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* The 2001 logo was the word "Allsalone" in sky blue and ".com" in navy,
   both italic Trebuchet MS. Rebuilt in CSS so it stays crisp at any size. */
.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    color: var(--blue-600);
    font-family: var(--font-brand);
    font-size: 1.75rem;
    font-style: italic;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.1;
    text-decoration: none;
}

.brand:hover {
    color: var(--blue-600);
    text-decoration: none;
}

.brand-mark {
    display: none;
}

.brand-text {
    white-space: nowrap;
}

.brand-tld {
    color: var(--blue-800);
}

.site-search {
    display: flex;
    flex: 1 1 auto;
    max-width: 560px;
    margin-inline: auto;
}

.site-search input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 10px 14px;
    border: 2px solid var(--brand-blue);
    border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: .9375rem;
}

.site-search input:focus {
    border-color: var(--blue-600);
    background: #fff;
    outline: 3px solid rgba(44, 111, 158, .2);
    outline-offset: 0;
}

.account-links {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .9rem;
    font-size: .9375rem;
    font-weight: 700;
}

.link-login {
    color: var(--blue-800);
}

.link-login:hover {
    color: var(--orange-600);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    display: block;
    width: 20px;
    height: 2px;
    margin-inline: auto;
    background: var(--blue-800);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    position: relative;
}

.nav-toggle-bar::before {
    top: -6px;
}

.nav-toggle-bar::after {
    top: 4px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
    top: -2px;
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. Main navigation
   -------------------------------------------------------------------------- */

/* Original navigation: a white bar of bold grey labels separated by hairlines;
   the current section was filled with sky blue and white text. */
.mainnav {
    background: #fff;
    border-bottom: 1px solid var(--line-strong);
}

.mainnav-list {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mainnav-list > li > a {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 1.05rem;
    border-right: 1px solid var(--line);
    color: var(--muted);
    font-size: .9375rem;
    font-weight: 700;
    text-decoration: none;
}

.mainnav-list > li > a:hover {
    background: var(--blue-600);
    color: #fff;
    text-decoration: none;
}

.mainnav-list > li > a.is-active {
    background: var(--blue-600);
    color: #fff;
}

.mainnav-spacer {
    flex: 1 1 auto;
}

.mainnav-list > li > a.nav-add {
    margin-block: 7px;
    height: 34px;
    margin-left: .75rem;
    padding-inline: 16px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--orange-600);
    color: #fff;
}

.mainnav-list > li > a.nav-add:hover {
    background: var(--blue-800);
}

/* --------------------------------------------------------------------------
   8. Main / breadcrumbs
   -------------------------------------------------------------------------- */

.site-main {
    padding-block: 28px 56px;
}

.breadcrumbs {
    margin-bottom: 1.25rem;
    color: var(--muted);
    font-size: .8125rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-width: 44ch;
}

.breadcrumbs li + li::before {
    content: "/";
    color: var(--line-strong);
}

.breadcrumbs a {
    color: var(--muted);
}

.breadcrumbs a:hover {
    color: var(--blue-700);
}

.breadcrumbs span {
    overflow: hidden;
    color: var(--ink-soft);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */

.hero {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    margin-bottom: 3rem;
    padding: clamp(24px, 4vw, 48px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(900px 420px at 100% 0%, rgba(250, 90, 12, .24), transparent 60%),
        radial-gradient(760px 420px at 0% 100%, rgba(119, 176, 212, .38), transparent 65%),
        linear-gradient(135deg, var(--blue-900), var(--blue-800) 55%, var(--blue-700));
    color: #fff;
}

.hero h1 {
    margin-bottom: .6rem;
    color: #fff;
    font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.75rem);
}

.hero .eyebrow {
    color: rgba(255, 255, 255, .7);
}

.hero-lead {
    max-width: 62ch;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, .86);
    font-size: 1.0625rem;
}

.hero-search {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .5rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(4px);
}

.hero-search input {
    flex: 1 1 240px;
    min-width: 0;
    min-height: 46px;
    padding: 10px 14px;
    border: 0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: .9375rem;
}

.hero-search select {
    min-height: 46px;
    padding: 10px 12px;
    border: 0;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: .9375rem;
}

.hero-search .btn {
    min-height: 46px;
}

.popular-searches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    font-size: .8125rem;
}

.popular-label {
    color: rgba(255, 255, 255, .65);
}

.popular-searches .chip {
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.popular-searches .chip:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.hero-stats {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .18);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: 1.25rem 1.1rem;
    background: rgba(13, 58, 94, .45);
}

.stat-value {
    color: #fff;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
}

.stat-label {
    color: rgba(255, 255, 255, .72);
    font-size: .8125rem;
    letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   10. Sections and cards
   -------------------------------------------------------------------------- */

.section {
    margin-bottom: 3rem;
}

.section-head {
    max-width: 72ch;
    margin-bottom: 1.5rem;
}

.section-head h2 {
    margin-bottom: .35rem;
}

.section-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    max-width: none;
}

.section-head-row > div {
    max-width: 72ch;
}

.section-lead {
    margin: 0;
    color: var(--muted);
}

.section-link {
    flex: 0 0 auto;
    font-size: .9375rem;
    font-weight: 600;
}

.section-note {
    margin: 0;
    color: var(--muted);
    font-size: .875rem;
}

.prose-section {
    padding: clamp(20px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-softer);
}

.prose-section h2 {
    margin-bottom: .75rem;
}

.prose {
    max-width: 78ch;
    color: var(--ink-soft);
    font-size: .9688rem;
}

.prose > :first-child {
    margin-top: 0;
}

.prose > :last-child {
    margin-bottom: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    margin-top: 1.75em;
    color: var(--ink);
}

.prose h1 {
    font-size: 1.6rem;
}

.prose h2 {
    font-size: 1.3rem;
}

.prose h3 {
    font-size: 1.075rem;
}

.prose a {
    text-decoration: underline;
}

.prose ul,
.prose ol {
    padding-left: 1.35em;
}

.prose li {
    margin-bottom: .35em;
}

.prose-2col {
    max-width: none;
    columns: 2;
    column-gap: 2.5rem;
}

.prose-2col p,
.prose-2col ul,
.prose-2col ol {
    break-inside: avoid;
}

/* Industry cards ---------------------------------------------------------- */

.industry-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.industry-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-top: 2px solid var(--blue-500);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.industry-card:hover {
    border-color: var(--line-strong);
    border-top-color: var(--orange);
    background: var(--amber-050);
    box-shadow: var(--shadow);
}

.industry-card-title {
    margin-bottom: .35rem;
    font-size: 1.0625rem;
}

.industry-card-title a {
    color: var(--blue-800);
}

.industry-card-counts {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin-bottom: .85rem;
    color: var(--muted);
    font-size: .8125rem;
}

.industry-links {
    flex: 1 1 auto;
    margin: 0 0 .85rem;
    padding: 0;
    list-style: none;
    font-size: .875rem;
}

.industry-links li + li {
    margin-top: .2rem;
}

.industry-links a {
    color: var(--ink-soft);
}

.industry-links a:hover {
    color: var(--blue-700);
}

.industry-more {
    margin-top: auto;
    color: var(--orange-600);
    font-size: .8125rem;
    font-weight: 600;
}

/* Partner banners --------------------------------------------------------- */

.partners {
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.partners .section-head {
    margin-bottom: .9rem;
}

.partners h2 {
    margin-bottom: .15rem;
    font-size: 1.0625rem;
}

.partners .section-lead {
    font-size: .875rem;
}

.partner-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.partner-strip a {
    display: block;
    padding: 3px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    line-height: 0;
    transition: border-color .15s ease, background-color .15s ease;
}

.partner-strip a:hover {
    border-color: var(--brand-blue);
    background: var(--amber-050);
}

.partner-strip img {
    display: block;
    width: 120px;
    height: 60px;
}

/* Offer cards ------------------------------------------------------------- */

.offer-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.offer-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.offer-card {
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--line);
    border-top: 2px solid var(--blue-500);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.offer-card:hover {
    border-color: var(--line-strong);
    border-top-color: var(--orange);
    background: var(--amber-050);
    box-shadow: var(--shadow);
}

.offer-card-top {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .6rem;
}

.offer-card-title {
    margin-bottom: .4rem;
    font-size: 1.0625rem;
    line-height: 1.4;
}

.offer-card-title a {
    color: var(--blue-600);
    font-weight: 700;
}

.offer-card-title a:hover {
    color: var(--orange-600);
}

.offer-card-excerpt {
    flex: 1 1 auto;
    margin-bottom: .9rem;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.55;
}

.offer-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .9rem;
    margin: 0;
    padding-top: .8rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .8125rem;
}

.offer-card-meta .meta-company {
    color: var(--ink-soft);
    font-weight: 600;
}

/* Company cards ----------------------------------------------------------- */

.company-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.company-grid-wide {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.company-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-top: 2px solid var(--blue-500);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.company-card:hover {
    border-color: var(--line-strong);
    border-top-color: var(--orange);
    background: var(--amber-050);
    box-shadow: var(--shadow);
}

.company-card-head {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: .75rem;
}

.company-card-heading {
    flex: 1 1 auto;
    min-width: 0;
}

.company-card-heading h3 {
    margin-bottom: .15rem;
    font-size: 1rem;
    line-height: 1.35;
}

.company-card-heading h3 a {
    color: var(--blue-600);
    font-weight: 700;
}

.company-card-heading h3 a:hover {
    color: var(--orange-600);
}

.company-location {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin: 0;
    color: var(--muted);
    font-size: .8125rem;
}

.company-card-excerpt {
    flex: 1 1 auto;
    margin-bottom: .9rem;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.55;
}

.company-card .chips {
    margin-bottom: .9rem;
}

.company-card-link {
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid var(--line);
    color: var(--orange-600);
    font-size: .8125rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   11. Page head, catalogue overview
   -------------------------------------------------------------------------- */

.page-head {
    max-width: 76ch;
    margin-bottom: 1.75rem;
}

.page-head h1 {
    margin-bottom: .5rem;
}

.page-lead {
    margin: 0;
    color: var(--muted);
    font-size: 1.0313rem;
}

.catalogue-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    margin-bottom: 2.5rem;
}

.catalogue-block {
    padding: 1.35rem 1.4rem;
    border: 1px solid var(--line);
    border-top: 2px solid var(--blue-500);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s ease, background-color .15s ease;
}

.catalogue-block:hover {
    border-top-color: var(--orange);
    background: var(--amber-050);
}

.catalogue-block-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .35rem 1rem;
    margin-bottom: .85rem;
}

.catalogue-block-head h2 {
    margin: 0;
    font-size: 1.1875rem;
}

.catalogue-block-head h2 a {
    color: var(--blue-800);
}

.catalogue-block-count {
    margin: 0;
    color: var(--muted);
    font-size: .8125rem;
}

.catalogue-sublist {
    display: grid;
    gap: .25rem .9rem;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    font-size: .875rem;
}

.catalogue-sublist a {
    color: var(--ink-soft);
}

.catalogue-sublist a:hover {
    color: var(--blue-700);
}

.catalogue-crosslink {
    margin: 0;
    padding-top: .85rem;
    border-top: 1px solid var(--line);
    font-size: .8125rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. Category listing
   -------------------------------------------------------------------------- */

.chip-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .9rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.chip-nav-label {
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.listing-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    margin-bottom: 2.5rem;
}

.listing-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .35rem 1rem;
    margin-bottom: 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--line);
}

.listing-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
}

.listing-page,
.listing-sort {
    margin: 0;
    color: var(--muted);
    font-size: .8125rem;
}

.listing-filter {
    margin-left: .35rem;
    color: var(--muted);
    font-weight: 500;
}

.listing-main {
    min-width: 0;
}

.offer-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.offer-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 84px minmax(0, 1fr);
    padding: 1rem 1.15rem;
    border: 1px solid var(--line);
    border-top: 2px solid var(--blue-500);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.offer-row:hover {
    border-color: var(--line-strong);
    border-top-color: var(--orange);
    background: var(--amber-050);
    box-shadow: var(--shadow);
}

.offer-row-badge {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.offer-row-title {
    margin: 0 0 .3rem;
    font-size: 1.0625rem;
    line-height: 1.4;
}

/* Original listing titles were bold sky-blue links that turned orange. */
.offer-row-title a {
    color: var(--blue-600);
    font-weight: 700;
}

.offer-row-title a:hover {
    color: var(--orange-600);
}

.offer-row-excerpt {
    margin: 0 0 .6rem;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.55;
}

.offer-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem .9rem;
    margin: 0;
    color: var(--muted);
    font-size: .8125rem;
}

.offer-row-meta .meta-company {
    color: var(--ink-soft);
    font-weight: 600;
}

/* Aside ------------------------------------------------------------------- */

.listing-aside,
.company-profile-aside,
.page-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.aside-card {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.aside-card h2 {
    margin-bottom: .75rem;
    font-size: 1rem;
}

.aside-card p:last-child {
    margin-bottom: 0;
}

/* Support address: printed from data attributes so the HTML source holds no
   readable e-mail address. site.js replaces the span with a mailto link. */
.contact-direct {
    margin: 0 0 1.25rem;
    padding: .85rem 1rem;
    border-left: 3px solid var(--brand-blue);
    border-radius: var(--radius-sm);
    background: var(--blue-050);
    color: var(--ink-soft);
    font-size: .9375rem;
}

.contact-direct .contact-mail {
    color: var(--blue-700);
}

.contact-mail {
    font-weight: 600;
    word-break: break-word;
}

.contact-mail-addr::after,
.contact-mail a {
    font-weight: 600;
}

.contact-mail a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* In-text links in the aside and form notes must not rely on colour alone. */
.page-aside p a:not(.btn),
.page-content p a:not(.btn) {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-mail-addr[data-u][data-d]::after {
    content: attr(data-u) "\0040" attr(data-d);
    unicode-bidi: isolate;
}

.aside-empty {
    color: var(--muted);
    font-size: .875rem;
}

.aside-companies {
    margin: 0 0 .9rem;
    padding: 0;
    list-style: none;
    font-size: .875rem;
}

.aside-companies li {
    padding: .55rem 0;
    border-bottom: 1px solid var(--line);
}

.aside-companies li:first-child {
    padding-top: 0;
}

.aside-companies li:last-child {
    border-bottom: 0;
}

.aside-companies a {
    display: block;
    color: var(--ink-soft);
    font-weight: 600;
    line-height: 1.4;
}

.aside-companies a:hover {
    color: var(--blue-700);
}

.aside-company-country {
    color: var(--muted);
    font-size: .75rem;
}

.aside-more {
    font-size: .8125rem;
    font-weight: 600;
}

.aside-cta {
    background: var(--blue-050);
    border-color: #cfe1f0;
}

.aside-cta h2 {
    color: var(--blue-800);
}

.aside-cta p {
    color: var(--ink-soft);
    font-size: .875rem;
}

.aside-links {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .875rem;
}

.aside-links li + li {
    margin-top: .35rem;
}

/* Empty state ------------------------------------------------------------- */

.empty-state {
    padding: 2.5rem 1.5rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg-softer);
    text-align: center;
}

.empty-state-wide {
    max-width: 720px;
    margin-inline: auto;
}

.empty-state h2,
.empty-state h3 {
    margin-bottom: .5rem;
}

.empty-state p {
    max-width: 60ch;
    margin-inline: auto;
    color: var(--muted);
}

.empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   13. Offer detail
   -------------------------------------------------------------------------- */

.offer-detail {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    margin-bottom: 2.5rem;
}

.offer-detail-head {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.offer-detail-head h1 {
    margin: 0;
}

.offer-detail-body {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.offer-detail-body p {
    margin-bottom: 1em;
}

.offer-detail-meta {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.meta-list {
    display: grid;
    gap: .65rem;
    margin: 0;
    font-size: .875rem;
}

.meta-list > div {
    display: grid;
    gap: .25rem .9rem;
    grid-template-columns: 120px minmax(0, 1fr);
}

.meta-list dt {
    color: var(--muted);
    font-weight: 600;
}

.meta-list dd {
    margin: 0;
    color: var(--ink-soft);
}

.offer-detail-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 20px;
}

.company-summary-head {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: .9rem;
}

.company-summary-head h3 {
    margin: 0 0 .2rem;
    font-size: 1rem;
    line-height: 1.35;
}

.company-summary-text {
    margin-block: .9rem;
    color: var(--muted);
    font-size: .875rem;
}

.company-web {
    overflow-wrap: anywhere;
    font-size: .8125rem;
}

.contact-card p {
    color: var(--muted);
    font-size: .875rem;
}

.contact-card .btn + .btn {
    margin-top: .5rem;
}

/* --------------------------------------------------------------------------
   14. Company profile
   -------------------------------------------------------------------------- */

.company-profile {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
}

.company-profile-head {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.company-profile-heading {
    min-width: 0;
}

.company-profile-heading h1 {
    margin-bottom: .35rem;
}

.company-location-large {
    margin-bottom: .75rem;
    font-size: .9375rem;
}

.company-section {
    margin-bottom: 2rem;
}

.company-section > h2 {
    margin-bottom: .85rem;
    font-size: 1.1875rem;
}

.fact-list {
    display: grid;
    gap: .65rem;
    margin: 0;
    font-size: .875rem;
}

.fact-list > div {
    display: grid;
    gap: .15rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--line);
}

.fact-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.fact-list dt {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.fact-list dd {
    margin: 0;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   15. Search
   -------------------------------------------------------------------------- */

.search-form {
    margin-bottom: 2rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-softer);
}

.search-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .9rem;
}

.search-form-row .field {
    flex: 0 1 180px;
}

.search-form-row .field-grow {
    flex: 1 1 260px;
}

.search-hint {
    margin: .75rem 0 0;
    color: var(--muted-light);
    font-size: .8125rem;
}

.search-landing {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: start;
}

.search-sections {
    columns: 2;
    column-gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .875rem;
}

.search-sections li {
    padding: .2rem 0;
    break-inside: avoid;
}

.search-sections .depth-1 {
    padding-left: .9rem;
    color: var(--muted);
}

.search-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.search-tabs a {
    padding: .6rem 1rem;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    font-size: .9375rem;
    font-weight: 600;
}

.search-tabs a:hover {
    color: var(--blue-700);
    text-decoration: none;
}

.search-tabs a.is-active {
    border-bottom-color: var(--orange);
    color: var(--blue-800);
}

/* --------------------------------------------------------------------------
   16. Pagination
   -------------------------------------------------------------------------- */

.pagination {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.pagination-summary {
    margin-bottom: .75rem;
    color: var(--muted);
    font-size: .8125rem;
}

.pagination-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination-list a,
.pagination-list .is-current,
.pagination-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding-inline: .65rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink-soft);
    font-size: .875rem;
    font-weight: 600;
}

.pagination-list a:hover {
    border-color: var(--blue-500);
    background: var(--blue-050);
    color: var(--blue-800);
    text-decoration: none;
}

.pagination-list .is-current {
    border-color: var(--blue-700);
    background: var(--blue-700);
    color: #fff;
}

.pagination-gap {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

.pagination-prev,
.pagination-next {
    padding-inline: .9rem;
}

/* --------------------------------------------------------------------------
   17. Static pages and contact
   -------------------------------------------------------------------------- */

.page-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

.page-content {
    min-width: 0;
}

.page-content > .page-head {
    margin-bottom: 1.5rem;
}

.page-content .prose {
    max-width: 80ch;
}

.page-content .prose p {
    margin-bottom: 1.15em;
}

.page-content .prose p[align="right"] {
    color: var(--muted);
    font-size: .875rem;
}

.contact-form {
    max-width: 720px;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.contact-form .field {
    margin-bottom: 1rem;
}

.contact-form .field-row .field {
    margin-bottom: 0;
}

.contact-form .field-row {
    margin-bottom: 1rem;
}

.contact-form .btn {
    margin-top: 1.25rem;
}

/* Alerts ------------------------------------------------------------------ */

.alert {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border: 1px solid;
    border-radius: var(--radius);
    font-size: .9375rem;
}

.alert ul {
    margin: .5rem 0 0;
    padding-left: 1.2em;
}

.alert-success {
    border-color: #b7e2c8;
    background: var(--green-100);
    color: #105c39;
}

.alert-error {
    border-color: #f3c2bd;
    background: var(--red-100);
    color: #8f1d14;
}

/* --------------------------------------------------------------------------
   18. Error page
   -------------------------------------------------------------------------- */

.error-page {
    max-width: 720px;
    margin: 2rem auto;
    text-align: center;
}

.error-code {
    margin: 0;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
}

.error-message {
    color: var(--muted);
    font-size: 1.0625rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-block: 1.5rem 2rem;
}

.error-hints {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-softer);
    text-align: left;
}

.error-hints h2 {
    font-size: 1rem;
}

.error-hints ul {
    margin: 0;
    padding-left: 1.2em;
    font-size: .9375rem;
}

.error-debug {
    margin-top: 1.5rem;
    padding: 1rem;
    overflow: auto;
    border-radius: var(--radius-sm);
    background: #1b2430;
    color: #e6edf3;
    font-size: .75rem;
    text-align: left;
    white-space: pre-wrap;
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */

/* Original footer: light grey band, black links that turn orange, navy
   headings, and a slightly darker copyright strip. */
.site-footer {
    margin-top: auto;
    padding-top: 3rem;
    border-top: 1px solid var(--line-strong);
    background: #eceff1;
    color: var(--ink);
    font-size: .875rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    padding-bottom: 2.5rem;
}

.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col li + li {
    margin-top: .15rem;
}

.footer-col a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--ink);
}

.footer-col a:hover {
    color: var(--orange-600);
    text-decoration: underline;
}

.footer-title {
    margin-bottom: .6rem;
    color: var(--blue-800);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brand-footer {
    margin-bottom: .85rem;
    color: var(--blue-600);
    font-size: 1.5rem;
}

.brand-footer:hover {
    color: var(--blue-600);
}

.brand-footer .brand-tld {
    color: var(--blue-800);
}

.footer-about p {
    max-width: 34ch;
    margin: 0;
    color: var(--muted);
    font-size: .8125rem;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .35rem 1.5rem;
    padding-block: 1.25rem;
    border-top: 1px solid var(--line-strong);
    color: var(--muted);
    font-size: .75rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-note {
    color: var(--muted-light);
}

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .listing-layout,
    .offer-detail,
    .company-profile,
    .page-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .offer-detail-aside {
        position: static;
    }

    .prose-2col {
        columns: 1;
    }

    .masthead-inner {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .account-links {
        margin-left: auto;
    }

    .site-search {
        order: 3;
        max-width: none;
        flex-basis: 100%;
        margin-inline: 0;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .account-links {
        margin-left: auto;
    }

    .mainnav {
        display: none;
    }

    .mainnav.is-open {
        display: block;
    }

    .mainnav-list {
        flex-direction: column;
        gap: 0;
        padding-block: .35rem;
    }

    .mainnav-list > li > a {
        height: 46px;
        padding-inline: .75rem;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .mainnav-list > li > a.is-active {
        border-bottom-color: transparent;
        background: var(--blue-600);
        color: #fff;
    }

    .mainnav-spacer {
        display: none;
    }

    .mainnav-list > li > a.nav-add {
        margin-block: .5rem;
        margin-left: 0;
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .topbar-nav {
        display: none;
    }

    .account-links .link-login {
        display: none;
    }

    .hero {
        padding: 1.5rem 1.25rem;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-search input,
    .hero-search select,
    .hero-search .btn {
        width: 100%;
    }

    .offer-row {
        grid-template-columns: minmax(0, 1fr);
        gap: .5rem;
    }

    .offer-row-badge {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-sections {
        columns: 1;
    }

    .meta-list > div {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    :root {
        --gutter: 16px;
    }

    .brand {
        font-size: 1.25rem;
    }

    .catalogue-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .company-grid,
    .company-grid-wide,
    .offer-grid,
    .industry-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .company-profile-head {
        flex-direction: column;
    }
}

/* --------------------------------------------------------------------------
   21. Motion and print
   -------------------------------------------------------------------------- */

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

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .breadcrumbs,
    .listing-aside,
    .offer-detail-aside,
    .company-profile-aside,
    .page-aside,
    .pagination,
    .skip-link,
    .search-form {
        display: none !important;
    }

    body {
        color: #000;
        font-size: 12pt;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}

/* --------------------------------------------------------------------------
   20. Member area and authentication
   -------------------------------------------------------------------------- */

.auth-layout {
    display: grid;
    gap: 2rem;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
    padding-block: 1rem 2rem;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

.auth-layout-wide {
    max-width: 900px;
    grid-template-columns: minmax(0, 1fr);
}

.auth-card {
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.auth-card .page-head {
    margin-bottom: 1.25rem;
}

.auth-aside {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--blue-050);
    border: 1px solid var(--blue-100);
}

.auth-aside h2 {
    margin-top: 0;
    font-size: 1.0625rem;
}

.auth-aside-note {
    margin-top: 1rem;
    color: var(--muted);
    font-size: .875rem;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.auth-switch {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .9375rem;
}

/* Plan summary on the registration page. The full comparison lives on
   /pricing/; this block makes the cost visible where the account is created. */
.signup-plans {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.signup-plans h2 {
    margin: 0 0 .35rem;
    color: var(--blue-800);
    font-size: 1.05rem;
}

.signup-plans-lead {
    margin: 0 0 .85rem;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
}

.signup-plan-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: .6rem;
    margin: 0 0 .8rem;
    padding: 0;
    list-style: none;
}

.signup-plan {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .6rem .7rem;
    border: 1px solid var(--line);
    border-top: 3px solid var(--blue-500);
    border-radius: var(--radius);
    background: var(--bg-softer);
}

.signup-plan-featured {
    border-top-color: var(--orange);
    background: #fff;
}

.signup-plan-name {
    color: var(--muted);
    font-size: .78rem;
}

.signup-plan-price {
    color: var(--blue-800);
    font-size: 1.05rem;
    font-weight: 700;
}

.signup-plan-term {
    color: var(--muted);
    font-size: .75rem;
}

.signup-plans-more {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.auth-message {
    margin: 0 0 1.5rem;
    font-size: 1.0625rem;
}

.link-quiet {
    color: var(--muted);
    font-size: .9375rem;
}

.link-quiet:hover {
    color: var(--blue-700);
}

/* Form sections and choices ------------------------------------------------ */

.form-section {
    margin: 0 0 1.5rem;
    padding: 0;
    border: 0;
}

.form-section > legend {
    padding: 0;
    margin-bottom: .75rem;
    color: var(--ink);
    font-size: 1.0625rem;
    font-weight: 700;
}

.form-section > .field-row,
.form-section > .field {
    margin-bottom: .9rem;
}

.checkbox-grid {
    display: grid;
    gap: .35rem;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.checkbox,
.radio {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 36px;
    padding: .2rem .35rem;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    cursor: pointer;
}

.checkbox:hover,
.radio:hover {
    background: var(--bg-soft);
}

.checkbox input,
.radio input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--blue-700);
}

.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    margin-top: 1.5rem;
}

select[multiple] {
    min-height: 180px;
    padding: .4rem;
}

/* Member shell ------------------------------------------------------------- */

.member-shell {
    display: grid;
    gap: 2rem;
    align-items: start;
    padding-block: 1rem 2rem;
    grid-template-columns: 240px minmax(0, 1fr);
}

.member-sidebar {
    position: sticky;
    top: 1rem;
}

.member-nav ul {
    margin: 0;
    padding: .5rem;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.member-nav a {
    display: block;
    padding: .55rem .75rem;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-size: .9375rem;
    text-decoration: none;
}

.member-nav a:hover {
    background: var(--bg-soft);
    color: var(--blue-700);
}

.member-nav a.is-active {
    background: var(--blue-050);
    color: var(--blue-700);
    font-weight: 600;
}

.member-nav li:last-child a {
    margin-top: .35rem;
    border-top: 1px solid var(--line);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    color: var(--muted);
}

/* Stat cards --------------------------------------------------------------- */

.stat-grid {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-grid li {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.stat-grid .stat-value {
    color: var(--blue-800);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-grid .stat-label {
    color: var(--ink-soft);
    font-size: .875rem;
    font-weight: 600;
}

.stat-meta {
    color: var(--muted);
    font-size: .8125rem;
}

/* Panels ------------------------------------------------------------------- */

.panel {
    margin-bottom: 1.75rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.panel > :last-child {
    margin-bottom: 0;
}

.panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem 1rem;
    margin-bottom: 1rem;
}

.panel-head h2 {
    margin: 0;
    font-size: 1.125rem;
}

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

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

.member-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9375rem;
}

.member-table th,
.member-table td {
    padding: .7rem .6rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.member-table th {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.member-table tr:last-child td {
    border-bottom: 0;
}

.member-offer-title {
    font-weight: 600;
}

.badge-type {
    margin-left: .35rem;
    background: var(--blue-100);
    color: var(--blue-800);
    font-weight: 600;
}

.badge-muted {
    margin-left: .35rem;
    background: var(--bg-soft);
    color: var(--muted);
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
}

.row-actions form {
    margin: 0;
}

.btn-danger {
    border-color: #e7b6b0;
    background: #fff;
    color: var(--red);
}

.btn-danger:hover {
    border-color: var(--red);
    background: var(--red-100);
    color: #8f1d14;
}

.confirm-delete {
    position: relative;
}

.confirm-delete > summary {
    list-style: none;
}

.confirm-delete > summary::-webkit-details-marker {
    display: none;
}

.confirm-delete[open] > summary {
    margin-bottom: .4rem;
}

.confirm-delete form {
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-softer);
}

.confirm-delete p {
    margin: 0 0 .5rem;
    font-size: .8125rem;
}

/* Lists -------------------------------------------------------------------- */

.detail-list {
    display: grid;
    gap: .5rem;
    margin: 0 0 1rem;
}

.detail-list > div {
    display: grid;
    gap: .25rem 1rem;
    grid-template-columns: 160px minmax(0, 1fr);
}

.detail-list dt {
    color: var(--muted);
    font-size: .875rem;
}

.detail-list dd {
    margin: 0;
}

.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: .5rem;
    font-size: .9375rem;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.benefit-list {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.benefit-list li {
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-softer);
}

.benefit-list h2 {
    margin: 0 0 .35rem;
    font-size: 1rem;
}

.benefit-list p {
    margin: 0;
    color: var(--muted);
    font-size: .9375rem;
}

/* Pricing ------------------------------------------------------------------ */

.pricing-grid {
    display: grid;
    gap: 1.25rem;
    margin: 1.75rem 0 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
}

.price-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-top: 3px solid var(--blue-500);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.price-card-featured {
    border-top-color: var(--orange);
    box-shadow: var(--shadow);
}

.price-card-head h2 {
    margin: 0 0 .6rem;
    font-size: 1.125rem;
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    margin: 0 0 .2rem;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--blue-800);
}

.price-period {
    color: var(--muted);
    font-size: .9375rem;
}

.price-currency-note {
    margin: 0 0 .8rem;
    color: var(--muted);
    font-size: .8125rem;
}

.price-summary {
    margin: 0 0 1rem;
    color: var(--ink-soft);
    font-size: .9375rem;
}

.price-badge {
    display: inline-block;
    margin: 0 0 .8rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: var(--orange-100);
    color: var(--orange-700);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.price-list {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.price-list li {
    position: relative;
    margin-bottom: .5rem;
    padding-left: 1.5rem;
    color: var(--ink-soft);
    font-size: .9375rem;
}

.price-list li:last-child {
    margin-bottom: 0;
}

.price-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.price-action {
    margin: auto 0 0;
}

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

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9375rem;
}

.pricing-table th,
.pricing-table td {
    padding: .7rem .85rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.pricing-table thead th {
    background: var(--bg-soft);
    color: var(--muted);
    font-size: .8125rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pricing-table tbody th {
    font-weight: 600;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 900px) {
    .auth-layout,
    .member-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .member-sidebar {
        position: static;
    }

    .member-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: .25rem;
    }

    .member-nav li:last-child a {
        margin-top: 0;
        border-top: 0;
    }
}

@media (max-width: 640px) {
    .auth-card,
    .panel {
        padding: 1.15rem;
    }

    .member-table thead {
        display: none;
    }

    .member-table,
    .member-table tbody,
    .member-table tr,
    .member-table td {
        display: block;
        width: 100%;
    }

    .member-table tr {
        padding-block: .5rem;
        border-bottom: 1px solid var(--line);
    }

    .member-table td {
        display: grid;
        gap: .75rem;
        padding: .35rem 0;
        border: 0;
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .member-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: .75rem;
        font-weight: 700;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

    .detail-list > div {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Factual context and category FAQ ---------------------------------------- */

.offer-context,
.profile-summary {
    margin: 1.1rem 0 0;
    padding: .85rem 1rem;
    border-left: 3px solid var(--brand-blue);
    background: var(--bg-soft);
    color: var(--ink-soft);
    font-size: .9375rem;
    line-height: 1.65;
}

.profile-summary {
    margin: 0 0 1rem;
}

.faq-section .faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
}

.faq-item {
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.faq-item h3 {
    margin: 0 0 .35rem;
    color: var(--blue-800);
    font-size: 1rem;
}

.faq-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

@media (max-width: 760px) {
    .faq-section .faq {
        grid-template-columns: 1fr;
    }
}
