/* File: /advertise/css/portal.css | Version: 1.14.0 | 2026-11-24: full-size dashboard advertising previews */
/* Advertiser workspace. Sections: 1 palette and type, 2 fonts, 3 base, 4 frame (header, staff bar, navigation,
   footer), 5 controls and cards, 6 overview (summary, ads list, pills, help), 7 page choices, 8 phones,
   9 page search (Choose pages search and chips), 10 ad editor and staff review, 11 results, 12 help and account,
   13 ad preview, 14 staff advertising pages (tabs, the Ads dashboard), 15 the advertiser dashboard and an ad's page,
   16 enhanced listings (the list, the details and special forms, the closed and opened row preview), 17 create an
   advertiser account (steps, error summary, code field).
   The portal does not load site.css, so section 1 repeats the site's tokens under the site's own names and values
   (site.css :root: --color-*, --fs-h1 to --fs-h3, --fs-meta); a change to one of them is made in both. The --ap-*
   names are the portal's own roles, which the public pages do not have. Widths: the site's breakpoints only. */

/* 1. Palette and type */
:root {
  --color-text: #171717; /* text, headings (site.css --color-text) */
  --color-text-muted: #4d4d4d; /* notes, meta lines (site.css --color-text-muted, 8.5:1) */
  --color-surface: #fff; /* cards, header (site.css --color-surface) */
  --ap-ground: #f5f6f8; /* the page behind the cards */
  --color-rule: #d9d9d9; /* card, field and row borders (site.css --color-rule) */
  --color-rule-strong: #8a8a8a; /* field borders (site.css --color-rule-strong) */
  --color-accent: #1754b5; /* links, buttons, current navigation item, Yacht (site.css --color-accent, 7.0:1) */
  --color-on-dark: #fff; /* text on a blue button (site.css --color-on-dark) */
  --ap-tint: #edf3fc; /* selected ad row, checked choice, notices */
  --color-highlight: #c2410c; /* the kicker over a page title, the clicks line (site.css --color-highlight, 5.2:1) */
  --color-brand: #1a1a1a; /* THE and REPORTER of the wordmark (site.css --color-brand) */
  --ap-live: #17663e; /* Live pill (7.0:1) */
  --ap-live-paper: #e9f5ee; /* Live pill ground */
  --ap-wait: #8a4b00; /* Scheduled, Waiting for review, No pages chosen, Needs your attention (6.3:1) */
  --ap-wait-paper: #fdf3e3; /* their ground */
  --ap-off: #4d4d4d; /* Draft, Paused, Ended, Archived */
  --ap-off-paper: #f0f0f0; /* their ground */
  --ap-staff: #3b2a00; /* staff bar text */
  --ap-staff-paper: #ffe9a8; /* staff bar ground */
  --ap-error: #8b2121; /* an alert notice */
  --ap-error-paper: #fff2f2; /* its ground */
  --ap-radius: .5rem;
  --ap-gap: 1.5rem;
  --ap-tap: 44px;
  --ap-body: 1.0625rem;
  --fs-meta: .9375rem; /* notes and meta lines, 15px (site.css --fs-meta) */
  --fs-h1: clamp(2.25rem, 1.6rem + 1vw, 2.4rem); /* page title: 36px on phones and iPads, 38px on desktops (site.css) */
  --fs-h2: clamp(1.75rem, 1.2rem + 1vw, 2rem); /* section head: 28px to 32px (site.css) */
  --fs-h3: clamp(1.25rem, 1rem + .5vw, 1.375rem); /* card and row titles: 20px to 22px (site.css) */
  --ap-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --ap-sans: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --ap-nav-w: 13rem;
}

/* 2. Fonts (the site's own files, /font/) */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/font/newsreader/latin-v26.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/font/newsreader/latin-ext-v26.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/font/sourcesans3/latin-v20.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/font/sourcesans3/latin-ext-v20.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* 3. Base */
* { box-sizing: border-box; }
body { margin: 0; color: var(--color-text); background: var(--ap-ground); font: var(--ap-body)/1.55 var(--ap-sans); }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--ap-serif); font-weight: 600; color: var(--color-text); text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: var(--fs-h1); line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: var(--fs-h2); line-height: 1.25; margin: 0 0 1rem; }
h3 { font-size: var(--fs-h3); line-height: 1.3; margin: 0; }
p { margin: 0 0 1rem; }
.ap-muted { color: var(--color-text-muted); }
.ap-srOnly { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ap-skip { position: absolute; top: -100px; left: 1rem; z-index: 2; padding: .75rem; background: var(--color-surface); }
.ap-skip:focus { top: 0; }

/* 4. Frame */
.ap-header { background: var(--color-surface); border-bottom: 1px solid var(--color-rule); }
.ap-header-inner, .ap-footer-inner { display: block; max-width: 1200px; margin-inline: auto; padding-inline: var(--ap-gap); }
.ap-header > .ap-header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; padding-block: .9rem; }
.ap-brand-line { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; row-gap: 0; width: 100%; min-width: 0; padding-bottom: .6rem; border-bottom: 1px solid var(--color-text); }
.ap-mast-brand { --ap-wordmark-w: min(clamp(15rem, 28vw + 8rem, 32rem), 100vw - 3rem); grid-column: 2; grid-row: 1; width: var(--ap-wordmark-w); max-width: 100%; }
.ap-publication-label { grid-column: 1; grid-row: 1; margin: 0; color: var(--color-highlight); font: 700 1.125rem/1.2 var(--ap-sans); letter-spacing: .16em; text-transform: uppercase; }
.ap-mast-folio { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; margin-top: .25rem; font: 400 var(--fs-meta)/1.3 var(--ap-serif); }
.ap-mast-folio p { margin: 0; }
.ap-mast-counts { margin-inline-start: auto; text-align: end; }
.ap-mast-sep { font-size: 1.6em; line-height: 0; vertical-align: -.08em; }
.ap-date-short { display: none; }
.ap-brand { display: block; line-height: 0; }
.ap-brand .ytr-wordmark__svg { display: block; width: var(--ap-wordmark-w); max-width: 100%; height: auto; fill-rule: evenodd; }
.ap-brand .ytr-wordmark__the, .ap-brand .ytr-wordmark__reporter { fill: var(--color-brand); }
.ap-brand .ytr-wordmark__yacht { fill: var(--color-accent); }
.ap-brand-sub { margin: calc(var(--ap-wordmark-w) * -.043) 0 0 20.5%; color: var(--color-highlight); font: 700 calc(var(--ap-wordmark-w) * .043)/1 var(--ap-sans); letter-spacing: .1em; text-transform: uppercase; }
.ap-account { margin-inline-start: auto; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; min-width: 0; }
.ap-account-name { font-weight: 600; overflow-wrap: anywhere; }
.ap-account form { margin: 0; }
.ap-switch { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.ap-switch select { width: auto; max-width: 16rem; min-width: 0; }
.ap-staffbar { margin: 0; background: var(--ap-staff-paper); color: var(--ap-staff); font-weight: 600; padding-block: .55rem; }
.ap-shell { display: grid; grid-template-columns: var(--ap-nav-w) minmax(0, 1fr); gap: 2rem; max-width: 1200px; margin-inline: auto; padding-inline: var(--ap-gap); }
.ap-nav { padding-block: 2rem; }
.ap-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; position: sticky; top: 1rem; }
.ap-nav a { display: flex; align-items: center; min-height: var(--ap-tap); padding: .5rem .9rem; border-radius: .375rem; color: var(--color-text); font-weight: 600; }
.ap-nav a:hover { background: var(--color-surface); text-decoration: none; }
.ap-nav a[aria-current="page"] { background: var(--color-surface); color: var(--color-accent); box-shadow: inset 3px 0 0 var(--color-accent); }
.ap-main { min-width: 0; padding-block: 2rem 3rem; min-height: 60vh; }
.ap-header + .ap-main { max-width: 1120px; margin-inline: auto; padding-inline: var(--ap-gap); padding-block: 2.5rem; }
.ap-footer { border-top: 1px solid var(--color-rule); background: var(--color-surface); }
.ap-footer-inner { display: flex; flex-wrap: wrap; gap: .25rem var(--ap-gap); padding-block: .75rem; }
.ap-footer a { display: inline-flex; align-items: center; min-height: var(--ap-tap); }

/* 5. Controls and cards */
.ap-kicker { margin: 0 0 .25rem; font: 700 .8125rem/1.3 var(--ap-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--color-highlight); }
.ap-pagehead h1 { margin-bottom: 1.5rem; }
.ap-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: var(--ap-gap); }
.ap-toolbar form { margin: 0; }
.ap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ap-gap); }
.ap-card { min-width: 0; background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--ap-radius); padding: var(--ap-gap); overflow-wrap: anywhere; }
.ap-card + .ap-card, .ap-section { margin-top: var(--ap-gap); }
.ap-grid > .ap-card { margin: 0; }
.ap-cardhead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.ap-notice { padding: 1rem; background: var(--ap-tint); border: 1px solid var(--color-rule); border-radius: var(--ap-radius); margin-bottom: var(--ap-gap); }
.ap-notice[role="alert"] { color: var(--ap-error); background: var(--ap-error-paper); }
label { display: block; font-weight: 600; margin-bottom: .4rem; }
input:not([type="checkbox"]):not([type="hidden"]) { display: block; width: 100%; min-height: var(--ap-tap); border: 1px solid var(--color-rule-strong); border-radius: .3rem; padding: .7rem; color: var(--color-text); background: var(--color-surface); font: inherit; }
button, .ap-button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--ap-tap); padding: .6rem 1.1rem; border: 1px solid var(--color-accent); border-radius: .375rem; color: var(--color-on-dark); background: var(--color-accent); font: 600 var(--ap-body)/1.3 var(--ap-sans); cursor: pointer; text-align: center; white-space: nowrap; }
.ap-button:hover, button:hover { text-decoration: underline; }
.ap-secondary { color: var(--color-accent); background: var(--color-surface); }

/* 6. Overview */
.ap-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ap-stat { display: grid; gap: .1rem; background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--ap-radius); padding: 1rem 1.25rem; min-width: 0; }
.ap-stat-label { font-weight: 600; }
.ap-stat-value { font: 600 2.25rem/1.1 var(--ap-serif); font-variant-numeric: tabular-nums; }
.ap-stat-note { color: var(--color-text-muted); font-size: var(--fs-meta); }
.ap-ad-thumb { display: block; width: 96px; height: 64px; border-radius: .3rem; object-fit: cover; background: var(--ap-ground); }
.ap-ad-thumb--none { border: 1px dashed var(--color-rule-strong); }
.ap-ad-copy { min-width: 0; }
.ap-ad-name { margin: .15rem 0 0; color: var(--color-text-muted); font-size: var(--fs-meta); }
.ap-ad-meta { display: flex; flex-wrap: wrap; gap: .1rem 1rem; margin: .35rem 0 0; font-size: var(--fs-meta); color: var(--color-text-muted); }
.ap-pill { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .875rem; font-weight: 700; white-space: nowrap; color: var(--ap-off); background: var(--ap-off-paper); }
.ap-pill--live { color: var(--ap-live); background: var(--ap-live-paper); }
.ap-pill--scheduled, .ap-pill--pending, .ap-pill--nopages { color: var(--ap-wait); background: var(--ap-wait-paper); }
.ap-archive { margin: 1rem 0 0; }
.ap-empty { display: grid; justify-items: start; gap: .25rem; }
.ap-empty p { margin: 0; }
.ap-empty .ap-button { margin-top: .75rem; }
.ap-help { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 1.5rem; background: var(--color-surface); border: 1px solid var(--color-rule); border-left: 4px solid var(--color-accent); border-radius: var(--ap-radius); padding: 1.25rem var(--ap-gap); }
.ap-help h2 { font-size: var(--fs-h3); margin: 0 0 .25rem; }
.ap-help p { margin: 0; }
.ap-help > div { min-width: 0; flex: 1 1 18rem; }

/* 7. Page choices */
details { border: 1px solid var(--color-rule); border-radius: var(--ap-radius); margin-block: .75rem; background: var(--color-surface); }
summary { cursor: pointer; font-weight: 600; min-height: var(--ap-tap); padding: .8rem 1rem; overflow-wrap: anywhere; }
details > p, details > .ap-choices { margin: 0; padding: .5rem 1rem 1rem; }
.ap-choice { display: flex; align-items: flex-start; gap: .75rem; min-height: var(--ap-tap); padding: .65rem; border-radius: .3rem; margin: 0; font-weight: 400; overflow-wrap: anywhere; }
.ap-choice:has(input:checked) { background: var(--ap-tint); }
.ap-choice input { width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; flex-shrink: 0; accent-color: var(--color-accent); }
.ap-choice:has(input:disabled) { color: var(--color-text-muted); }
.ap-save { border-top: 1px solid var(--color-rule); padding-top: var(--ap-gap); margin-top: var(--ap-gap); }

/* iPad upright: the navigation becomes a row above the page */
@media (max-width:1099px) {
  .ap-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ap-nav { padding-block: 1rem 0; }
  .ap-nav ul { display: flex; flex-wrap: wrap; position: static; gap: .25rem .5rem; }
  .ap-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--color-accent); }
  .ap-main { padding-block: 1.5rem 3rem; }
}

/* 8. Phones */
@media (max-width:699px) {
  .ap-header-inner, .ap-footer-inner, .ap-shell { padding-inline: 1rem; }
  .ap-header + .ap-main { padding-inline: 1rem; padding-block: 1.5rem; }
  .ap-card { padding: 1rem; }
  .ap-grid, .ap-stats { grid-template-columns: minmax(0, 1fr); }
  .ap-stats { gap: .75rem; }
  .ap-stat { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1rem; }
  .ap-stat-value { grid-row: 1 / span 2; grid-column: 2; font-size: 1.875rem; }
  .ap-ad-thumb { width: 72px; height: 48px; }
  .ap-toolbar { align-items: flex-start; flex-wrap: wrap; }
}

/* 9. Page search (Choose pages, /advertise/js/page-search.js): chosen-page chips, the search box and its results.
   Only this section is the page search; it styles nothing outside .ap-ps and the Browse by region heading.
   Its buttons wrap their text (white-space: normal): a chip or result can hold a long harbor and region name. */
.ap-ps[hidden], .ap-ps [hidden] { display: none; }
.ap-ps { margin-bottom: var(--ap-gap); }
.ap-ps-h { margin: 0 0 .5rem; }
.ap-ps button { white-space: normal; }
.ap-ps-chosen { margin-bottom: 1rem; }
.ap-ps-empty { margin: 0; }
.ap-ps-chips { list-style: none; margin: 0; padding: .5rem; display: flex; flex-wrap: wrap; gap: .5rem; max-height: 17rem; overflow-y: auto; border: 1px solid var(--color-rule); border-radius: var(--ap-radius); }
.ap-ps-chips li { min-width: 0; max-width: 100%; }
.ap-ps-chip { gap: .5rem; max-width: 100%; padding: .4rem .5rem .4rem .85rem; border-color: var(--color-accent); border-radius: 999px; color: var(--color-text); background: var(--ap-tint); font-weight: 400; text-align: left; }
.ap-ps-chip > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ap-ps-chip:hover > span:first-child { text-decoration: underline; }
.ap-ps-chip:focus-visible { outline-offset: 2px; }
.ap-ps-x { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 1.6rem; height: 1.6rem; border-radius: 50%; color: var(--color-on-dark); background: var(--color-accent); }
.ap-ps-x::before { content: "\00d7"; font-size: 1.2rem; line-height: 1; }
.ap-ps-hint { margin-bottom: .5rem; }
.ap-ps-status { min-height: 1.55em; margin: .5rem 0 0; color: var(--color-text-muted); }
.ap-ps-results { list-style: none; margin: .5rem 0 0; padding: 0; border: 1px solid var(--color-rule); border-radius: var(--ap-radius); }
.ap-ps-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .35rem; min-width: 0; }
.ap-ps-row + .ap-ps-row { border-top: 1px solid var(--color-rule); }
.ap-ps-pick { flex: 1 1 18rem; min-width: 0; flex-wrap: wrap; justify-content: flex-start; gap: .15rem .75rem; border-color: transparent; color: var(--color-text); background: var(--color-surface); font-weight: 400; text-align: left; }
.ap-ps-pick:hover .ap-ps-name { text-decoration: underline; }
.ap-ps-pick[aria-pressed="true"] { border-color: var(--color-accent); background: var(--ap-tint); }
.ap-ps-pick:disabled { color: var(--color-text-muted); background: var(--ap-ground); cursor: not-allowed; }
.ap-ps-name { font-weight: 600; overflow-wrap: anywhere; }
.ap-ps-where { color: var(--color-text-muted); overflow-wrap: anywhere; }
.ap-ps-state { margin-left: auto; color: var(--color-accent); font-weight: 600; }
.ap-ps-pick[aria-pressed="true"] .ap-ps-state::before { content: "\2713\00a0"; }
.ap-ps-pick:disabled .ap-ps-state { color: var(--color-text-muted); font-weight: 400; }
.ap-ps-more { flex: 0 1 auto; color: var(--color-accent); background: var(--color-surface); }
.ap-ps-more:disabled { color: var(--color-text-muted); border-color: var(--color-rule); cursor: default; }
@media (max-width:699px) {
  .ap-ps-more { flex-basis: 100%; }
}

/* 10. Ad editor (/advertise/ad-edit.asp) and staff review (/admin/ad-review.asp) */
.ap-kicker a { color: inherit; }
.ap-hint { display: block; margin-top: .3rem; color: var(--color-text-muted); font-size: var(--fs-meta); font-weight: 400; }
textarea { display: block; width: 100%; min-height: 6rem; border: 1px solid var(--color-rule-strong); border-radius: .3rem; padding: .7rem; color: var(--color-text); background: var(--color-surface); font: inherit; resize: vertical; }
.ap-ad-flag { margin: .4rem 0 0; font-size: var(--fs-meta); font-weight: 600; color: var(--ap-wait); }
.ap-ad-flag--returned { color: var(--ap-error); }
.ap-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--ap-gap); align-items: start; }
.ap-adform > p { margin-bottom: 1.25rem; }
.ap-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; }
.ap-dates legend { padding: 0; margin-bottom: .5rem; font-weight: 600; }
.ap-dates legend .ap-hint { display: inline; }
.ap-dates p { margin: 0; }
.ap-dates-hint { grid-column: 1 / -1; }
.ap-formactions { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .5rem; }
.ap-previewcard { position: sticky; top: 1rem; }
.ap-manage { display: flex; flex-wrap: wrap; gap: .75rem; }
.ap-manage form { margin: 0; }
.ap-review-note { white-space: pre-line; margin: 0; }
.ap-review h3 { margin-bottom: 1rem; }
.ap-scroll { overflow-x: auto; margin-bottom: 1rem; }
.ap-compare { width: 100%; border-collapse: collapse; font-size: var(--fs-meta); }
.ap-compare th, .ap-compare td { text-align: left; vertical-align: top; padding: .5rem .6rem; border-bottom: 1px solid var(--color-rule); overflow-wrap: anywhere; }
.ap-compare thead th { font-weight: 700; }
.ap-changed td { background: var(--ap-wait-paper); }
@media (max-width:1099px) {
  .ap-editor { grid-template-columns: minmax(0, 1fr); }
  .ap-previewcard { position: static; }
}
@media (max-width:699px) {
  .ap-dates { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}

/* 11. Results (/advertise/results.asp) and the overview's results line */
.ap-trend { display: block; width: 100%; height: 8rem; border-bottom: 1px solid var(--color-rule); }
.ap-trend-line { fill: none; stroke: var(--color-accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ap-trend-axis { display: flex; justify-content: space-between; margin: .4rem 0 0; color: var(--color-text-muted); font-size: var(--fs-meta); }
.ap-results { width: 100%; border-collapse: collapse; }
.ap-results th, .ap-results td { text-align: left; vertical-align: top; padding: .65rem .6rem; border-bottom: 1px solid var(--color-rule); }
.ap-results thead th { font-size: var(--fs-meta); }
.ap-results tbody th { font-weight: 400; min-width: 12rem; }
.ap-results-head { display: block; font-weight: 600; overflow-wrap: anywhere; }
.ap-results .ap-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-hint.ap-inline { display: inline; margin: 0; }
.ap-howcounted ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
/* Phones: each ad is a block, its numbers in a row of three under its name, then its top pages. */
@media (max-width:699px) {
  .ap-results thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ap-results, .ap-results tbody { display: block; }
  .ap-results tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem .75rem; padding: .85rem 0; border-bottom: 1px solid var(--color-rule); }
  .ap-results th, .ap-results td { display: block; padding: 0; border: 0; min-width: 0; }
  .ap-results tbody th { grid-column: 1 / -1; min-width: 0; }
  .ap-results .ap-num { text-align: left; }
  .ap-results td::before { content: attr(data-label); display: block; color: var(--color-text-muted); font-size: var(--fs-meta); }
  .ap-results .ap-toppages { grid-column: 1 / -1; }
}

/* 12. Help (/advertise/help.asp) and Account (/advertise/account.asp) */
select { display: block; width: 100%; min-height: var(--ap-tap); border: 1px solid var(--color-rule-strong); border-radius: .3rem; padding: .6rem .7rem; color: var(--color-text); background: var(--color-surface); font: inherit; }
.ap-helpgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--ap-gap); align-items: start; }
.ap-faq-item { margin: 0; border-width: 0 0 1px; border-radius: 0; }
.ap-faq-item:first-of-type { border-top-width: 1px; }
.ap-faq-item summary { padding-inline: 0; }
.ap-faq-item p { margin: 0; padding: 0 0 1rem; }
.ap-helpform > p, .ap-addperson > p { margin-bottom: 1.25rem; }
.ap-label { display: block; font-weight: 600; }
.ap-value { display: block; font-size: 1.125rem; overflow-wrap: anywhere; }
.ap-everywhere { margin-top: var(--ap-gap); padding-top: var(--ap-gap); border-top: 1px solid var(--color-rule); }
.ap-everywhere h3, .ap-addperson h3 { margin-bottom: .5rem; }
.ap-people { list-style: none; margin: 0; padding: 0; }
.ap-person { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding: .75rem 0; border-bottom: 1px solid var(--color-rule); }
.ap-person > div { min-width: 0; overflow-wrap: anywhere; }
.ap-person form { margin: 0; }
.ap-addperson { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; margin-top: var(--ap-gap); }
.ap-addperson h3, .ap-addperson-hint, .ap-addperson button { grid-column: 1 / -1; }
.ap-addperson button { justify-self: start; }
@media (max-width:1099px) {
  .ap-helpgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width:699px) {
  .ap-addperson { grid-template-columns: minmax(0, 1fr); }
}

/* 13. Ad preview (/advertise/ad-preview.asp): each placement a bordered frame holding a page drawn at its real width,
   scaled to fit by /advertise/js/ad-preview.js; without the script the frame scrolls sideways. */
.ap-place { margin-top: var(--ap-gap); padding: 1rem var(--ap-gap) var(--ap-gap); background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--ap-radius); }
.ap-place h2 { font-size: var(--fs-h3); margin: 0 0 .25rem; }
.ap-place .ap-hint { margin: 0 0 1rem; }
.ap-place__frame { position: relative; overflow-x: auto; border: 1px solid var(--color-rule-strong); border-radius: .3rem; background: var(--color-surface); }
.ap-place__frame--fitted { overflow: hidden; }
.ap-place__frame iframe { display: block; border: 0; transform-origin: 0 0; background: var(--color-surface); }
.ap-place:last-of-type .ap-place__frame { max-width: 390px; }

/* 14. Staff advertising pages (/admin/ads.asp, ad-review.asp, advertiser-access.asp, advertiser-logins.asp): the tabs
   (AP_StaffTabs), the Ads page's title row with its period choice, the linked tile, and the two-line trend. */
.ap-stafftabs ul { list-style: none; margin: 0 0 var(--ap-gap); padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--color-rule); }
.ap-stafftabs a { display: inline-flex; align-items: center; gap: .4rem; min-height: var(--ap-tap); padding: .5rem .9rem; margin-bottom: -1px; color: var(--color-text); font-weight: 600; border-bottom: 3px solid transparent; }
.ap-stafftabs a[aria-current="page"] { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.ap-count { display: inline-block; min-width: 1.5rem; padding: 0 .45rem; border-radius: 999px; color: var(--ap-wait); background: var(--ap-wait-paper); font-size: .875rem; text-align: center; }
.ap-headrow { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.ap-headrow hgroup { min-width: 0; }
.ap-headrow h1 { margin: 0; }
.ap-period { display: flex; gap: .25rem; padding: .25rem; background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: 999px; }
.ap-period a { display: inline-flex; align-items: center; min-height: var(--ap-tap); padding: 0 1rem; border-radius: 999px; color: var(--color-text); font-weight: 600; white-space: nowrap; }
.ap-period a[aria-current="page"] { color: var(--color-on-dark); background: var(--color-accent); }
.ap-stats + .ap-stats, .ap-stats + .ap-section { margin-top: 1rem; }
.ap-stat--link { color: var(--color-text); border-color: var(--ap-wait); background: var(--ap-wait-paper); }
.ap-stat--link .ap-stat-label { color: var(--color-accent); }
.ap-legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0 0 .5rem; color: var(--color-text-muted); font-size: var(--fs-meta); }
.ap-key { color: var(--color-text); }
.ap-key::before { content: ""; display: inline-block; width: 1rem; height: 3px; margin-right: .4rem; vertical-align: middle; background: var(--color-accent); }
.ap-key--clicks::before { background: var(--color-highlight); }
.ap-trend-line--clicks { stroke: var(--color-highlight); }
.ap-rowaction { text-align: right; }
.ap-rowaction form { margin: 0; }
@media (max-width:699px) {
  .ap-period { width: 100%; justify-content: space-between; }
  .ap-results .ap-rowaction { grid-column: 1 / -1; text-align: left; }
  .ap-results .ap-rowaction::before { content: none; }
}

/* 15. The advertiser dashboard (/advertise/dashboard.asp) and an ad's own page (/advertise/ad.asp): the six tiles,
   Needs your attention, the ads table (each ad's picture, name, schedule and action line, then its numbers), the
   action line (links and the Pause / Resume buttons drawn as links). */
.ap-stats--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ap-headrow + .ap-stats--six { margin-top: 0; }
@media (min-width:1280px) {
  .ap-stats.ap-stats--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ap-stats--six .ap-stat { padding-inline: 1rem; }
  .ap-stats--six .ap-stat-value { font-size: 1.875rem; white-space: nowrap; }
}
.ap-attention { padding: 1rem var(--ap-gap); background: var(--ap-wait-paper); border: 1px solid var(--ap-wait); border-radius: var(--ap-radius); }
.ap-attention h2 { font-size: var(--fs-h3); margin: 0 0 .5rem; color: var(--ap-wait); }
.ap-attention ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.ap-attention a { white-space: nowrap; }
.ap-adtable tbody th { font-weight: 400; }
.ap-adtable td, .ap-adtable th { vertical-align: top; }
.ap-adcell { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: .9rem; align-items: start; min-width: 0; }
.ap-adcell .ap-ad-name { display: block; }
.ap-adcell .ap-ad-flag { display: block; margin: .25rem 0 0; }
.ap-archive-body { padding: 0 1rem 1rem; }
.ap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; margin-top: .35rem; }
.ap-actions a, .ap-linkbutton { display: inline-flex; align-items: center; min-height: var(--ap-tap); font: 600 var(--fs-meta)/1.2 var(--ap-sans); }
.ap-actions form { margin: 0; }
.ap-linkbutton { padding: 0; border: 0; color: var(--color-accent); background: none; }
.ap-linkbutton:hover { text-decoration: underline; }
.ap-pagehead .ap-ad-meta { align-items: center; margin-top: -.75rem; }
.ap-pagehead .ap-actions { margin-top: .5rem; }
@media (max-width:699px) {
  .ap-stats.ap-stats--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-stats--six .ap-stat { grid-template-columns: minmax(0, 1fr); }
  .ap-stats--six .ap-stat-value { grid-row: auto; grid-column: auto; font-size: 1.75rem; }
  .ap-adcell { grid-template-columns: 64px minmax(0, 1fr); gap: .75rem; }
  .ap-adcell .ap-ad-thumb { width: 64px; height: 43px; }
  .ap-attention a { white-space: normal; }
  .ap-results.ap-adtable tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ap-results.ap-adtable td:first-of-type { grid-column: 1 / -1; }
  .ap-results.ap-adtable td:first-of-type::before { content: none; }
}

/* 16. Enhanced listings (/advertise/listings.asp, listing-edit.asp, special-edit.asp): the list's numbers on phones,
   the headline count, and the preview of the listing's closed row (name, the firecracker mark, the SPECIAL line on
   up to two lines of about 60 characters) and its opened card. The preview stands in for the public row in site.css;
   it shows the layout, not its exact look. */
.ap-listingtable .ap-ad-name, .ap-listingtable .ap-ad-flag { display: block; }
.ap-listingtable .ap-ad-flag { margin-top: .25rem; }
.ap-lp h3 { margin: 1.25rem 0 .25rem; }
.ap-lp .ap-hint { margin: 0 0 .5rem; }
.ap-lp-row, .ap-lp-card { padding: .9rem 1rem; border: 1px solid var(--color-rule); border-radius: var(--ap-radius); background: var(--color-surface); font-family: var(--ap-serif); }
.ap-lp-row p, .ap-lp-card p { margin: 0 0 .5rem; overflow-wrap: anywhere; }
.ap-lp-row p:last-child, .ap-lp-card p:last-child { margin-bottom: 0; }
.ap-lp-name { font-weight: 600; font-size: var(--fs-h3); line-height: 1.3; }
.ap-lp-mark { font-size: 1rem; }
.ap-lp-special { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; max-width: 62ch; }
.ap-lp-tag { font: 700 var(--fs-meta)/1.3 var(--ap-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--color-highlight); }
.ap-lp-where, .ap-lp-sponsored { font: var(--fs-meta)/1.4 var(--ap-sans); color: var(--color-text-muted); }
.ap-lp-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-family: var(--ap-sans); }
.ap-lp-specialbox { margin: .75rem 0; padding: .75rem 1rem; background: var(--ap-tint); border: 1px solid var(--color-rule); border-radius: var(--ap-radius); }
.ap-lp-specialbox p { margin: 0 0 .5rem; }
.ap-lp-specialbox p:last-child { margin-bottom: 0; }
.ap-lp-head { font-weight: 600; }
.ap-lp-code { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.ap-lp-code code { font: 700 1.0625rem/1.3 var(--ap-sans); letter-spacing: .06em; overflow-wrap: anywhere; }
.ap-lp-count { margin-top: .15rem; }
@media (max-width:699px) {
  .ap-results.ap-listingtable tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 17. Create an advertiser account (/advertise/create-account.asp) and the sign-in code field: one narrow column of
   steps, the error summary (its links in the alert colour, underlined), a field's own message under it, the 6-digit
   code field, and the step's actions on one wrapping line. */
.ap-step { max-width: 34rem; margin-inline: auto; }
.ap-step h1:focus, .ap-errors:focus { outline: none; }
.ap-step .ap-kicker { font-size: var(--fs-meta); }
.ap-errors p { margin: 0; font-weight: 700; }
.ap-errors ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.ap-errors a { color: var(--ap-error); text-decoration: underline; }
.ap-field { margin: 0 0 1.25rem; }
.ap-field .ap-hint { margin: 0 0 .4rem; }
.ap-field-error { display: block; margin-top: .4rem; color: var(--ap-error); font-weight: 600; }
input[aria-invalid="true"] { border: 2px solid var(--ap-error); }
.ap-code { max-width: 12rem; font-size: 1.375rem; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.ap-stepactions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.25rem; }
.ap-stepactions form { margin: 0; }
.ap-stepaside { margin-top: 1.5rem; }

/* Signup presentation is scoped to its own page; existing portal cards and sign-in keep their layout. */
.ap-signup { max-width: 38rem; }
.ap-signup-back, .ap-signup-cancel { display: inline-flex; align-items: center; min-height: var(--ap-tap); }
.ap-signup-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0 0 var(--ap-gap); padding: 0; font-size: var(--fs-meta); }
.ap-signup-progress-item { display: grid; grid-template-rows: 2rem auto; align-content: start; justify-items: start; gap: .5rem; min-width: 0; color: var(--color-text-muted); }
.ap-signup-progress-item[aria-current="step"] { color: var(--color-text); font-weight: 700; }
.ap-signup-number { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--color-rule-strong); border-radius: 50%; font-weight: 600; }
.ap-signup-complete .ap-signup-number { color: var(--ap-live); border-color: var(--ap-live); background: var(--ap-live-paper); }
.ap-signup-panel { padding: clamp(1.25rem, 4vw, 2rem); }
.ap-signup-panel h1 { margin-bottom: 1rem; }
.ap-signup-intro { margin-bottom: .25rem; }
.ap-signup-recipient { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin-bottom: var(--ap-gap); }
.ap-signup-recipient strong { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.ap-signup-recipient a { display: inline-flex; align-items: center; min-height: var(--ap-tap); }
.ap-signup-form { margin: 0; }
.ap-signup-actions button { width: 100%; white-space: normal; }
.ap-signup-next { margin: 1rem 0 0; }
.ap-signup-recovery { border-top: 1px solid var(--color-rule); padding-top: var(--ap-gap); margin-top: var(--ap-gap); }
.ap-signup-recovery p { margin-bottom: .5rem; }
.ap-signup-recovery form { margin-top: 1rem; }
.ap-signup-support { margin-top: var(--ap-gap); text-align: center; }
.ap-signup-support p { margin-bottom: 0; }
.ap-signup-support p > a { display: inline-flex; align-items: center; min-height: var(--ap-tap); }
.ap-signup-legal { font-size: var(--fs-meta); }

@media (max-width: 1099px) {
  .ap-brand-line { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .ap-publication-label { grid-column: 1; grid-row: 1; justify-self: center; font-size: var(--fs-meta); }
  .ap-mast-brand { grid-column: 1; grid-row: 2; justify-self: center; }
  .ap-mast-folio { grid-row: 3; }
  .ap-date-long { display: none; }
  .ap-date-short { display: inline; }
}

/* 18. Advertising-first dashboard: public styles stay isolated in fixed 1280px preview frames. */
.ap-ad-panel { min-width: 0; padding-block: 1rem; }
.ap-ad-panel + .ap-ad-panel { border-top: 1px solid var(--color-rule); margin-top: 1rem; }
.ap-ad-panel h3 { margin: 0; font-size: var(--fs-h3); overflow-wrap: anywhere; }
.ap-native-pair { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem; margin-top: 1rem; }
.ap-native-unit { min-width: 0; max-width: 100%; }
.ap-native-unit:first-child { flex: 1 1 1216px; }
.ap-native-label { font-weight: 600; margin: 0 0 .4rem; }
.ap-native-pan { max-width: 100%; overflow-x: auto; overflow-y: hidden; padding-bottom: .5rem; }
.ap-native-crop { position: relative; overflow: hidden; background: var(--color-surface); }
.ap-native-crop--display { width: 1216px; height: 180px; }
.ap-native-crop--rail { width: 298px; height: 480px; }
.ap-native-crop--listing { width: 592px; height: 180px; }
.ap-native-crop iframe { position: absolute; left: 0; top: 0; width: 1280px; max-width: none; height: 1600px; border: 0; }
.ap-panel-results { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--color-rule); }
.ap-panel-results strong { font-size: 1.15em; }
.ap-shell:has([data-dashboard-preview]) { max-width: 1900px; }
