/* ==========================================================
   style-wtz-blue.css
   WorldTimeZone responsive styles - blue "clean web" look:
   white cards, blue menu bar, blue links, zebra tables.
   Same class names as style-combined.css, so every page built for
   that file works here too. Only change the <link> on the page.
   ========================================================== */

:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --ink: #1f2933;
  --muted: #5b6776;
  --accent: #0b63b0;        /* links */
  --accent-ink: #ffffff;
  --hover: #08457d;         /* link hover */
  --head: #1b2a3a;          /* headings */
  --navy: #12395f;          /* footer */
  --border: #d3dce6;
  --line: #e2e8ef;          /* thin lines inside tables */
  --band: #e9f0f7;          /* table header and light blue bands */
  --stripe: #f6f9fc;        /* zebra rows */
  --row-hover: #e6f1fb;

  --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page-width: 72rem;
  --gap: 1.25rem;
}

/* ---------- Fluid type scale ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.73rem + 0.11vw, 0.8125rem);    /* 12 - 13px  small tags */
  --text-sm: clamp(0.8125rem, 0.77rem + 0.21vw, 0.9375rem);  /* 13 - 15px  captions, notes, tables, footer */
  --text-base: clamp(1rem, 0.96rem + 0.21vw, 1.125rem);      /* 16 - 18px  body text */
  --text-md: clamp(1.0625rem, 1rem + 0.31vw, 1.25rem);       /* 17 - 20px  card headings, site name */
  --text-lg: clamp(1.25rem, 1.125rem + 0.63vw, 1.625rem);    /* 20 - 26px  section headings */
  --text-title: clamp(1.375rem, 1.17rem + 1.04vw, 2rem);     /* 22 - 32px  page titles */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1620;
    --surface: #17212d;
    --ink: #e4ebf3;
    --muted: #9fb0c3;
    --accent: #6db3f2;
    --accent-ink: #0c1b2b;
    --hover: #a9d3f8;
    --head: #f0f5fa;
    --navy: #0b2540;
    --border: #2b3a4b;
    --line: #26354a;
    --band: #1f2d3d;
    --stripe: #1a2634;
    --row-hover: #203449;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.55;
}

/* Images and video scale down on small screens. Iframes (ads, embeds) are
   deliberately left alone so their own width and height are never changed. */
img,
video {
  max-width: 100%;
  height: auto;
}

/* Links: blue, no underline until hover (like timeanddate.com) */
a {
  color: var(--accent);
  text-decoration: none;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding-left: var(--gap);
  padding-right: var(--gap);
}

/* Skip link for keyboard users */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus {
  left: 0;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.site-name {
  color: var(--head);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-name:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Plain header navigation (used by pages without the blue menu) */
.site-header nav {
  flex: 1 1 100%;
  min-width: 0;
}

.site-header nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem 1.1rem;
  margin: 0;
  padding: 0 0 0.25rem;
  list-style: none;
  overflow-x: auto;
}

.site-header nav li {
  flex: none;
}

@media (min-width: 60em) {
  .site-header nav ul {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.site-header nav a {
  display: block;
  padding: 0.4rem 0;
  color: var(--ink);
  white-space: nowrap;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

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

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

/* Two columns (content + sidebar) once there is room */
@media (min-width: 60em) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 2rem;
  }
}

article,
.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.25rem;
}

@media (min-width: 40em) {
  article {
    padding: 2rem;
  }
}

/* Keep paragraph lines at a readable length */
article p,
article ul,
article ol {
  max-width: 65ch;
}

h1 {
  margin: 0 0 0.25rem;
  color: var(--head);
  font-size: var(--text-title);
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  margin: 2rem 0 0.5rem;
  color: var(--head);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
}

.meta {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

figure {
  margin: 1.25rem 0;
}

figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* ---------- Data tables (timeanddate-style: light header, zebra rows) ---------- */
/* Wrap every real data table in <div class="table-scroll">
   so wide tables scroll sideways on phones. */

.table-scroll {
  position: relative;   /* keeps hidden labels inside the scroll box */
  overflow-x: auto;
  margin: 1.25rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 30rem;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

th,
td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--band);
  color: var(--head);
  font-weight: 700;
  border-bottom-color: var(--border);
}

thead td {
  background: var(--band);
}

/* Row headings (first column) are not tinted */
tbody th[scope="row"] {
  background: transparent;
  font-weight: 600;
}

/* Zebra rows and hover highlight */
table:not(.plain) tbody tr:nth-child(even) > td,
table:not(.plain) tbody tr:nth-child(even) > th[scope="row"] {
  background: var(--stripe);
}

table:not(.plain) tbody tr:hover > td,
table:not(.plain) tbody tr:hover > th[scope="row"] {
  background: var(--row-hover);
}

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

caption {
  padding: 0.7rem 0.8rem;
  color: var(--head);
  font-size: var(--text-md);
  font-weight: 700;
  text-align: left;
}

/* ---------- Sidebar ---------- */

.sidebar h2 {
  margin-top: 0;
  font-size: var(--text-md);
}

.sidebar ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.sidebar li + li {
  margin-top: 0.35rem;
}

.sidebar-box + .sidebar-box {
  margin-top: var(--gap);
}

.sidebar a {
  display: inline-block;
  padding: 0.15rem 0;
}

.promo p {
  margin: 0;
  font-size: var(--text-sm);
}

.promo p + p {
  margin-top: 0.75rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #c7d6e8;
  font-size: var(--text-sm);
}

.site-footer .wrap {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: #cfe3f7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 0.2rem 0;
}

/* ==========================================================
   Helpers, language links, search bar
   ========================================================== */

/* Hides a label visually but keeps it for screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}

.lang a {
  display: block;
  padding: 0.4rem 0.5rem;
  color: var(--muted);
}

.lang a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.search-bar {
  background: var(--band);
  border-bottom: 1px solid var(--border);
}

.search-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.search-form {
  display: flex;
  flex: 1 1 18rem;
  gap: 0.5rem;
}

.search-form input[type="search"],
.search-form input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.search-form button {
  padding: 0.45rem 1rem;
  border: 0;
  border-radius: 3px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.search-form button:hover {
  filter: brightness(1.12);
}

/* ==========================================================
   Article photo and DST news pages
   ========================================================== */

article {
  display: flow-root;
}

figure.photo {
  margin: 1rem 0;
  max-width: 20rem;
}

figure.photo img {
  display: block;
  border: 1px solid var(--border);
}

@media (min-width: 40em) {
  figure.photo {
    float: right;
    width: 200px;
    margin: 0.25rem 0 1rem 1.5rem;
  }
}

.news-lang + .news-lang {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.news-lang h2 {
  margin-top: 0;
}

/* ==========================================================
   Map pages (home page, Pacific map)
   ========================================================== */

.ad-slot {
  max-width: 100%;
  margin: 1rem 0;
  overflow-x: auto;
}

/* Title block above the map */
.page-head {
  padding: 0.5rem 0 1rem;
  text-align: center;
}

.page-head h1 {
  font-size: var(--text-title);
}

.page-head p {
  margin: 0.35rem 0;
}

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 0.75rem;
}

.map-scroll {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
}

/* Each page can set its own map width with style="--map-w: 800px" */
.map-inner {
  width: var(--map-w, 1001px);
}

.map-inner img {
  display: block;
}

/* Maps with clickable areas keep their real size and scroll sideways */
img[usemap] {
  max-width: none;
}

/* Coloured strips of UTC offsets (above) and letter names (below) the map */
.utc-strip {
  display: flex;
  width: 1001px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.utc-strip li {
  flex: 0 0 40px;
  overflow: hidden;
  padding: 0.5rem 0;
  color: #1c2530;
  font-size: 0.65rem;
  line-height: 1.2;
  text-align: center;
}

.utc-strip li.half {
  flex-basis: 20px;
}

.utc-strip a {
  color: #1c2530;
  text-decoration: none;
}

.utc-strip a:hover {
  text-decoration: underline;
}

.utc-strip a:focus-visible {
  outline-offset: -3px;
}

.utc-strip .r { background: #fb9393; }
.utc-strip .g { background: #8af5a5; }
.utc-strip .b { background: #97d4fc; }
.utc-strip .y { background: #00cd66; }

/* Row of small linked images under the map */
.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin: 1.25rem 0;
}

.tool {
  max-width: 100%;
  font-size: var(--text-sm);
  text-align: center;
}

.tool img {
  display: block;
  margin: 0.25rem auto 0;
}

.link-list li + li {
  margin-top: 0.6rem;
}

.note {
  color: var(--muted);
  font-size: var(--text-sm);
}

/* Four 300x250 boxes (ads and shop images): two across, one on phones */
.ad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1rem;
  justify-items: center;
  margin-top: 1.5rem;
}

.ad-grid img {
  border: 1px solid var(--border);
}

.sidebar-box.ad {
  padding: 0;
  overflow-x: auto;
  text-align: center;
  background: transparent;
  border: 0;
}

.mode-note {
  color: #b3261e;
}

@media (prefers-color-scheme: dark) {
  .mode-note {
    color: #ff8a80;
  }
}

/* Text under the map */
.map-note,
.dst-note {
  max-width: 60rem;
  margin: 0.75rem auto;
  text-align: center;
}

.map-note {
  color: var(--muted);
  font-size: var(--text-sm);
}

/* ==========================================================
   Map section pages (wtz001 ... wtz020)
   ========================================================== */

/* Colours for each UTC offset (strips and small labels) */
.z8    { background: #ff3030; }
.z9    { background: #00cd66; }
.z930  { background: #d4e15b; }
.z10   { background: #5cacee; }
.z11   { background: #ff3030; }
.z1130 { background: #ff8080; }
.z12   { background: #bbf6ca; }
.z1245 { background: #99cccc; }
.z13   { background: #ffffff; }
.zm12  { background: #00cd66; }

/* Row above the map: section picker | title | regional map */
.map-head {
  display: grid;
  gap: 1rem;
  justify-items: center;
  margin-bottom: 1rem;
}

@media (min-width: 52em) {
  .map-head {
    grid-template-columns: 190px minmax(0, 1fr) 190px;
    align-items: center;
  }

  .map-head .section-picker {
    order: -1;
  }
}

.regional img {
  display: block;
}

/* Picker for the 20 map sections: 5 columns x 4 rows of small images.
   The colour picture (background) shows when you hover over the grey one. */
.section-picker ol {
  display: grid;
  grid-template-columns: repeat(5, 38px);
  grid-auto-rows: 23px;
  width: 190px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-picker a {
  display: block;
  width: 38px;
  height: 23px;
}

.section-picker img {
  display: block;
}

.section-picker a:hover img,
.section-picker a:focus-visible img {
  visibility: hidden;
}

/* Strips of UTC offsets above and below the map. Column widths are set
   on each strip with style="--cols: ..." so they line up with the map. */
.zone-strip {
  display: grid;
  grid-template-columns: var(--cols);
  margin: 0;
  padding: 0;
  list-style: none;
}

.zone-strip li {
  overflow: hidden;
  padding: 0.35rem 0;
  color: #1c2530;
  font-size: 0.65rem;
  line-height: 1.3;
  text-align: center;
}

.zone-strip li.narrow {
  overflow: visible;
}

.zone-strip a {
  color: inherit;
  text-decoration: none;
}

.zone-strip a:hover {
  text-decoration: underline;
}

.zone-strip a:focus-visible {
  outline-offset: -3px;
}

/* The map with its four arrows */
.map-frame {
  display: grid;
  grid-template-columns: 13px 773px 13px;
  grid-template-rows: 13px 485px 13px;
  grid-template-areas:
    "w n e"
    "w m e"
    "w s e";
}

.frame-w,
.frame-e,
.frame-n,
.frame-s {
  display: flex;
  align-items: center;
  justify-content: center;
}

.frame-w { grid-area: w; }
.frame-n { grid-area: n; }
.frame-e { grid-area: e; }
.frame-s { grid-area: s; }
.frame-m { grid-area: m; }

.map-frame img {
  display: block;
}

.frame-w img,
.frame-e img {
  width: 13px;
  height: auto;
}

.frame-n img,
.frame-s img {
  width: auto;
  height: 13px;
}

/* Photos grouped by UTC time zone */
.zone-photos ul,
.zone-photos p {
  max-width: none;
}

.zone {
  padding: 1rem 0;
}

.zone:first-of-type {
  padding-top: 0;
}

.zone:last-of-type {
  padding-bottom: 0;
}

.zone + .zone {
  border-top: 1px solid var(--border);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.chip {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  color: #1c2530;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.chip:hover {
  text-decoration: underline;
}

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

.thumbs a {
  display: block;
  font-size: var(--text-sm);
  line-height: 1.35;
  text-align: center;
}

.thumbs img {
  display: block;
  margin: 0 auto 0.3rem;
  border: 1px solid var(--border);
}

/* GSM coverage card */
.gsm {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-left: 4px solid #d4b4f3;
  border-radius: 4px;
}

.gsm-text {
  flex: 1 1 16rem;
}

.gsm h2 {
  margin: 0 0 0.35rem;
  font-size: var(--text-md);
}

.gsm p {
  margin: 0.25rem 0;
}

.video-embed {
  max-width: 100%;
  border: 0;
}

/* Small pictures for the 20 map sections (hover colour images) */
.wtz001 { background: url(wtz-map-190x92g_01.gif); }
.wtz002 { background: url(wtz-map-190x92g_02.gif); }
.wtz003 { background: url(wtz-map-190x92g_03.gif); }
.wtz004 { background: url(wtz-map-190x92g_04.gif); }
.wtz005 { background: url(wtz-map-190x92g_05.gif); }
.wtz006 { background: url(wtz-map-190x92g_06.gif); }
.wtz007 { background: url(wtz-map-190x92g_07.gif); }
.wtz008 { background: url(wtz-map-190x92g_08.gif); }
.wtz009 { background: url(wtz-map-190x92g_09.gif); }
.wtz010 { background: url(wtz-map-190x92g_10.gif); }
.wtz011 { background: url(wtz-map-190x92g_11.gif); }
.wtz012 { background: url(wtz-map-190x92g_12.gif); }
.wtz013 { background: url(wtz-map-190x92g_13.gif); }
.wtz014 { background: url(wtz-map-190x92g_14.gif); }
.wtz015 { background: url(wtz-map-190x92g_15.gif); }
.wtz016 { background: url(wtz-map-190x92g_16.gif); }
.wtz017 { background: url(wtz-map-190x92g_17.gif); }
.wtz018 { background: url(wtz-map-190x92g_18.gif); }
.wtz019 { background: url(wtz-map-190x92g_19.gif); }
.wtz020 { background: url(wtz-map-190x92g_20.gif); }

/* ==========================================================
   BLUE MENU (drop-down, same on every page)
   Shades of blue: bar, darker top row, lighter hover.
   ========================================================== */

.mobile-menu,
.mobile-menu ~ .search-bar {
  --menu: #1d5c9f;
  --menu-dark: #14437a;
  --menu-hover: #3a82cc;
  --menu-line: rgba(255, 255, 255, 0.14);
}

.mobile-menu {
  background: var(--menu);
  border-bottom: 1px solid var(--menu-dark);
}

.mobile-menu > details {
  max-width: var(--page-width);
  margin: 0 auto;
}

.mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu li {
  border-bottom: 1px solid var(--menu-line);
}

.mobile-menu summary,
.mobile-menu li > a {
  position: relative;
  display: block;
  padding: 0.65rem 0.75rem;
  color: #fff;
  text-decoration: none;
  transition: background 0.12s ease-in-out;
}

/* Heading rows (they open a list) get a small arrow box on the left */
.mobile-menu summary {
  padding-left: 3rem;
  list-style: none;
  cursor: pointer;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary::after {
  content: "\2193";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.85);
}

.mobile-menu details[open] > summary::after {
  content: "\2191";
}

/* The top row that opens the whole menu */
.mobile-menu > details > summary {
  background: var(--menu-dark);
  border-bottom: 1px solid var(--menu-line);
  font-weight: 600;
}

/* Hover: lighter blue row */
.mobile-menu summary:hover,
.mobile-menu li > a:hover {
  background: var(--menu-hover);
  color: #fff;
  text-decoration: none;
}

.mobile-menu > details > summary:hover {
  background: #0f3560;
}

/* The page you are on */
.mobile-menu li > a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  font-weight: 600;
}

.mobile-menu :focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
}

/* Sub-menus: darker blue */
.mobile-menu details details > ul {
  margin: 0 0.5rem;
  background: var(--menu-dark);
  border: 1px solid var(--menu-line);
  border-bottom: 0;
}

.mobile-menu details details li:last-child {
  border-bottom: 0;
}

.mobile-menu li > a img {
  display: block;
}

/* "Find time" button in the search bar under the menu */
.mobile-menu ~ .search-bar .search-form button {
  background: var(--menu);
  color: #fff;
}

.mobile-menu ~ .search-bar .search-form button:hover {
  background: var(--menu-dark);
  color: #fff;
  filter: none;
}

/* Wide screens: the top-level items sit side by side in columns */
@media (min-width: 48em) {
  .mobile-menu > details > ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    align-items: start;
  }

  .mobile-menu > details > ul > li {
    border-right: 1px solid var(--menu-line);
  }
}

/* ==========================================================
   Mobile pages: single centred column
   ========================================================== */

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  text-align: center;
}

.stack .ad-slot,
.stack .ad-grid,
.stack .widget {
  width: 100%;
  margin: 0;
}

.stack .page-head {
  padding: 0;
}

.stack h2 {
  margin: 0 0 0.5rem;
  font-size: var(--text-md);
}

.promo-card a {
  display: block;
}

.promo-card img {
  display: block;
  margin: 0 auto 0.4rem;
  border: 1px solid var(--border);
}

/* A promo card can have its own short caption under the image */
.promo-card .cap {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: var(--text-xs);
}

/* Small "New" icons inside a caption stay inline */
.promo-card .cap img {
  display: inline;
  margin: 0;
  border: 0;
}

.live-map img {
  display: block;
  margin: 0 auto;
  border: 1px solid var(--border);
}

/* Fixed-size picture with a clickable map: scrolls sideways if the screen is narrower */
.fixed-map {
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
}

.fixed-map img {
  display: block;
  margin: 0 auto;
}

/* Third-party widget (flight search) */
.widget {
  overflow-x: auto;
}

/* Row of links at the bottom of the page */
.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.link-row a {
  display: inline-block;
  padding: 0.3rem 0;
}

/* ==========================================================
   Time zone list pages (utc/...)
   ========================================================== */

/* Colours for the 25 UTC cells */
.zr { background: #ff3030; }
.zg { background: #00cd66; }
.zb { background: #5cacee; }
.zw { background: #ffffff; }

/* The 25 UTC offsets as a 5 x 5 grid: offset on top, letter name below */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: center;
}

.zone-grid li {
  color: #1c2530;
  line-height: 1.35;
}

.zone-grid a {
  display: block;
  padding: 0.5rem 0 0.1rem;
  color: inherit;
  font-size: 1.05rem;
  font-weight: 400;
  color: #00186b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.zone-grid a:hover {
  color: #000;
  text-decoration-thickness: 2px;
}

.zone-grid a:focus-visible {
  outline-offset: -3px;
}

.zone-grid span {
  display: block;
  padding-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 400;
}

/* Wide screens: the 25 UTC offsets sit in one row, as on the old page */
@media (min-width: 48em) {
  .zone-grid {
    grid-template-columns: repeat(25, 1fr);
    max-width: 100%;
  }
  .zone-grid a,
  .zone-grid span { font-size: 0.82rem; }
  .zone-grid a { padding-top: 0.6rem; }
  .zone-grid span { padding-bottom: 0.6rem; }
}

/* One time zone: its names and the regions it contains */
.zone-block {
  width: 100%;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
}

.zone-block h2 {
  margin: 0 0 0.75rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags a {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tags a:hover {
  text-decoration-thickness: 2px;
}

.region-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  text-align: left;
}

.region-list li + li {
  margin-top: 0.5rem;
}

/* Main column next to the sidebar: the layout already has its own padding */
.layout > .stack {
  padding: 0;
}

/* Full-width widget under the page */
.wrap > .widget {
  margin-bottom: 2rem;
}

/* List of links in columns (filled top to bottom, column by column) */
.map-links {
  columns: 9rem 3;
  column-gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.map-links li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
}

/* ==========================================================
   Text polish
   ========================================================== */

/* Balanced headings, tidy paragraph endings, no overflow from long words */
h1,
h2,
h3 {
  text-wrap: balance;
  overflow-wrap: break-word;
}

p,
li {
  text-wrap: pretty;
}

article,
.sidebar-box,
.zone-block {
  overflow-wrap: break-word;
}

/* Small raised text (dst, notes) that does not push lines apart */
sup,
sub {
  font-size: 0.75em;
  line-height: 0;
}

/* ==========================================================
   Photo pages
   ========================================================== */

.feature-photo {
  margin: 0 0 1.25rem;
  text-align: center;
}

.feature-photo img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border);
}

.feature-photo figcaption {
  margin-top: 0.6rem;
  text-align: left;
}

.follow-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

/* Sidebar cards that are just a labelled image (World Clock, Regional Maps) */
.sidebar-box.picker {
  text-align: center;
}

.sidebar-box.picker h2 {
  margin: 0 0 0.5rem;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: none;
}

.sidebar-box.picker img,
.sidebar-box.picker .regional img {
  margin: 0 auto;
}

/* ==========================================================
   Sponsor links
   ========================================================== */

/* Plain list of sponsor / affiliate text links (responsive version) */
.spon-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-xs);
}

.spon-list li + li {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}

/* Sponsor menu in shades of blue. One definition only. */
.spon-menu {
  width: 100%;
  max-width: 19rem;
}

.spon-menu .spon-header {
  margin-bottom: 2px;
  padding: 0.3rem 0.6rem;
  background: var(--band);
  color: var(--head);
  font: 700 var(--text-xs) var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spon-menu ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.spon-menu ul li,
.sidebar .spon-menu li + li {
  margin-top: 0;
  padding-bottom: 2px;
}

.spon-menu ul li a {
  display: block;
  padding: 0.25rem 0.5rem;
  background: var(--stripe);
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font: 400 var(--text-xs)/1.4 var(--font);
  text-decoration: none;
}

.spon-menu ul li a:hover {
  background: var(--row-hover);
  color: var(--hover);
  text-decoration: none;
}

/* ==========================================================
   LEGACY desktop classes (kept for pages that still use them),
   recoloured and set in the page font. Only class rules here.
   ========================================================== */

a.nav, a.navlg, a.navtemp, a.nnav, a.wtz, a.wtzsmall, a.wtzmar {
  font: inherit;
  color: var(--accent);
  text-decoration: none;
}

a.nav:hover, a.navlg:hover, a.navtemp:hover, a.nnav:hover,
a.wtz:hover, a.wtzsmall:hover, a.wtzmar:hover {
  color: var(--hover);
  text-decoration: underline;
}

a.white {
  font: inherit;
  color: #ffffff;
  text-decoration: none;
}

a.white:hover {
  color: #cfe3f7;
  text-decoration: underline;
}

a.wtzNavText {
  font-family: var(--font);
  font-size: var(--text-xs);
  width: 120px;
  word-wrap: break-word;
  color: var(--ink);
}

/* UTC strip links above and below the maps: black on the coloured cells, white on hover */
a.wtzutc:link, a.wtzutc:visited {
  color: #000000;
  text-decoration: underline;
  font-size: 8pt;
  font-family: var(--font);
}

a.wtzutc:hover, a.wtzutc:active {
  color: #ffffff;
  text-decoration: underline;
  font-size: 8pt;
  font-family: var(--font);
}

p.small {
  font-size: var(--text-xs);
}

.c336699, .c336699small, p.c336699, p.c336699small, font.c336699smallred {
  color: var(--ink);
  font-family: var(--font);
}

.c336699 { color: var(--accent); }
.c336699small, p.c336699small, font.c336699smallred { font-size: var(--text-xs); }
p.c336699 { font-size: var(--text-sm); }
.c336699white { color: #ffffff; font-size: var(--text-xs); font-family: var(--font); }

font.wtz, font.wwtz { color: var(--ink); font-size: var(--text-sm); font-family: var(--font); }
font.marquee { color: #b3261e; font-size: var(--text-xs); font-family: var(--font); }

.wtzUp, .wtzUpp {
  font-family: var(--font);
  font-size: var(--text-xs);
  color: var(--ink);
}

#wtzNavTextTable {
  border: 1px solid var(--border);
  width: 120px;
  padding: 3px 0;
}

#wtzNavAdsTable {
  border: 1px solid var(--border);
  width: 180px;
  padding: 3px 0;
}

.kvadrat  {border-left: solid #669999 1px; border-right: solid #669999 1px; border-bottom: solid #669999 1px;}
.kvadrat2 {border-left: solid #4d99e5 1px; border-right: solid #4d99e5 1px; border-bottom: solid #4d99e5 1px;}
.kvadrat3 {border-left: solid #FFCC66 1px; border-right: solid #FFCC66 1px; border-bottom: solid #FFCC66 1px;}
.kvadrat4 {border-bottom: solid #CCCCDD 1px; border-right: solid #CCCCDD 1px;}
.kvadrat5 {border-bottom: solid #FF6666 1px; border-left: solid #FF6666 1px;}
.kvadrat6 {border-bottom: solid #009933 1px; border-right: solid #009933 1px; border-left: solid #009933 1px;}
.kvadrat7 {border-bottom: solid #FF3333 1px; border-right: solid #FF3333 1px; border-left: solid #FF3333 1px;}
.kvadrat8 {border-left: solid #D4B4F3 1px; border-right: solid #D4B4F3 1px; border-bottom: solid #D4B4F3 1px;}

input.search-world {
  width: 118px;
  background-color: var(--surface);
  font-family: var(--font);
  font-size: var(--text-xs);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 3px;
}

input.submit {
  width: 118px;
  font-family: var(--font);
  font-size: var(--text-sm);
  background-color: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 3px;
}

/* Old horizontal menu bars (not used on pages with the blue menu).
   Widths have units and fit small screens. */
.wtz-menu,
.wtz-menu2 {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid #14437a;
  border-bottom: 1px solid #14437a;
}

.wtz-menu  { max-width: 764px; }
.wtz-menu2 { max-width: 989px; }

.wtz-menu ul,
.wtz-menu2 ul {
  margin: 0;
  padding: 0;
  font: var(--text-sm) var(--font);
  list-style-type: none;
}

.wtz-menu li,
.wtz-menu2 li {
  display: inline;
  margin: 0;
}

.wtz-menu li a,
.wtz-menu2 li a {
  float: left;
  display: block;
  margin: 0;
  padding: 3px 8px;
  border-right: 1px solid #14437a;
  background: #1d5c9f;
  color: #ffffff;
  text-decoration: none;
}

.wtz-menu li a:hover,
.wtz-menu li.selected a,
.wtz-menu2 li a:hover,
.wtz-menu2 li.selected a {
  background: #3a82cc;
  color: #ffffff;
  text-decoration: none;
}

#borderTableWTZ  { padding: 3px 4px; border: 1px solid #33CC66; }
#borderTableWTZ2 { padding: 3px 2px; border: 1px solid #0066CC; }
#borderTableWTZ3 { padding: 0 2px;   border: 1px solid #FF0000; }

/* ==========================================================
   Section picker (20 small map pictures) used inside the sidebar:
   undo the sidebar list/link spacing so the 5 x 4 grid stays exact
   ========================================================== */

.sidebar .section-picker ol {
  margin: 0 auto;
}

.sidebar .section-picker li + li {
  margin-top: 0;
}

.sidebar .section-picker a {
  padding: 0;
}

/* ==========================================================
   Daylight Saving Time page (daylight.html)
   ========================================================== */

/* Title line with the two colour boxes */
.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.swatch {
  display: inline-block;
  flex: none;
  width: 1.75rem;
  height: 1.1rem;
  border: 1px solid var(--border);
}

.swatch.summer { background: #FFFF99; }
.swatch.stime  { background: #CCFFCC; }

/* DST tables: fixed column widths so the three tables line up */
table.dst {
  min-width: 42rem;
  table-layout: fixed;
}

table.dst col:nth-child(1) { width: 28%; }
table.dst col:nth-child(6) { width: 17%; }

table.dst th,
table.dst td {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Dates stay on one line (29-Mar 01:00h); reference links may break */
table.dst td:not(:first-child):not(:last-child):not([colspan]) {
  white-space: nowrap;
}

table.dst td:last-child {
  overflow-wrap: anywhere;
}

/* Title bars keep the colours of the map legend (yellow, green, blue) */
table.dst caption {
  padding: 0.5rem 0.8rem;
  color: #2b3440;
  font-size: var(--text-base);
  text-align: center;
}

table.dst caption.summer { background: #FFFF99; }
table.dst caption.stime  { background: #CCFFCC; }
table.dst caption.change { background: #A9C8F0; }

table.dst thead th {
  text-align: center;
}

table.dst thead th.start { color: #2e7d32; }
table.dst thead th.end   { color: #c62828; }
table.dst thead th.tz    { color: #2f6fb3; }

table.dst tbody td {
  vertical-align: top;
}

/* Region rows (EUROPE, ASIA, ...) */
table.dst tr.region th {
  background: #d9e5f2;
  color: #12395f;
  text-align: left;
}

table.dst tr.region.south th {
  background: #e1e5ea;
}

/* Spacing between the tables */
.table-scroll + .table-scroll {
  margin-top: 1.5rem;
}

/* ==========================================================
   Database pages: city page, search results, world clock lists,
   call planner (files wtz_inc_*.php)
   ========================================================== */

/* Small tables do not need the wide minimum */
table.facts,
table.results,
table.clock,
table.plan,
table.cal {
  min-width: 0;
}

/* Card in the middle of the page (city page) */
.card {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: var(--text-md);
  text-align: center;
}

.card .table-scroll {
  margin: 1rem 0;
}

.card p {
  margin: 0.5rem 0;
  text-align: center;
}

.card .note {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

/* The big clock on the city page */
.big-time {
  margin: 0.25rem 0 1rem;
  color: var(--accent);
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

table.facts th[scope="row"] {
  width: 45%;
}

.dst-state {
  color: var(--accent);
}

.loc-map {
  margin: 1rem 0 0;
  text-align: center;
}

.loc-map img {
  display: block;
  margin: 0 auto;
  border: 1px solid var(--border);
}

/* Lists of cities: numbered, in columns on wide screens */
.city-list {
  columns: 14rem 3;
  column-gap: 2rem;
  max-width: none;
  margin: 1rem 0 2rem;
  padding-left: 2rem;
  text-align: left;
}

.city-list li {
  break-inside: avoid;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--line);
}

/* Search results */
.results-title {
  margin-top: 0;
  text-align: center;
}

.results-title + .table-scroll,
.table-scroll + .table-scroll {
  margin-top: 1rem;
}

.no-results {
  max-width: 40rem;
  margin: 1rem auto;
  padding: 1rem 1.25rem;
  background: #fff8cc;
  border: 1px solid #e6d98a;
  border-radius: 3px;
  color: #2b3440;
}

.no-results p {
  margin: 0 0 0.5rem;
}

.no-results ul {
  margin: 0;
  padding-left: 1.25rem;
}

/* World clock lists: 3 (or 2) side-by-side tables that stack on phones */
.clock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 1rem;
  align-items: start;
  margin: 1rem 0 2rem;
}

.clock-grid .table-scroll {
  margin: 0;
}

table.clock td:last-child {
  width: 7.5rem;
  text-align: right;
  white-space: nowrap;
}

/* Call planner result table: cells keep the colours chosen by the script */
table.plan th,
table.plan td {
  white-space: nowrap;
}

table.plan td {
  color: #1c2530;
}

table.plan th.ref {
  background: #FF6666;
  color: #1c2530;
}

/* Call planner form */
.planner-form {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  margin: 1rem auto 2rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
}

.planner-form .field {
  display: grid;
  gap: 0.3rem;
}

.planner-form .field.ref {
  padding-left: 0.75rem;
  border-left: 4px solid #FF6666;
}

.planner-form label {
  color: var(--head);
  font-weight: 600;
}

.planner-form label small {
  color: var(--muted);
  font-weight: 400;
}

.planner-form select,
.planner-form input[type="text"] {
  width: 100%;
  max-width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.planner-form button {
  justify-self: start;
  padding: 0.55rem 1.25rem;
  border: 0;
  border-radius: 3px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.planner-form button:hover {
  filter: brightness(1.12);
}

/* Small month calendar (mk_drawCalendar) */
.calendar {
  display: inline-block;
  max-width: 100%;
  margin: 1rem 0;
}

table.cal {
  width: auto;
}

table.cal caption {
  padding: 0.5rem;
  text-align: center;
  white-space: nowrap;
}

table.cal th,
table.cal td {
  padding: 0.35rem 0.5rem;
  text-align: center;
}

table.cal a {
  display: block;
}

/* ==========================================================
   Interactive time map and events map
   (files interactive-time-map.php, events-map.php and their wtz_inc_ files)
   ========================================================== */

:root {
  --now: #e3f6ec;        /* "current time" columns */
  --now-alt: #d3f0e0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --now: #183a2c;
    --now-alt: #1d4634;
  }
}

/* "You have selected: city, date, time" */
.selected {
  margin: 1rem 0 0.5rem;
  font-size: var(--text-md);
  font-weight: 600;
  text-align: center;
}

h2.selected {
  margin-top: 0;
  color: var(--head);
}

.sel-city {
  color: var(--accent);
}

.sel-date {
  color: #b3261e;
}

@media (prefers-color-scheme: dark) {
  .sel-date { color: #ff8a80; }
}

/* Date, hour and minute side by side (wrap on phones) */
.planner-form .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.planner-form .row .field {
  flex: 1 1 9rem;
}

/* The big table of time zones: two highlighted "current time" columns */
table.zones {
  min-width: 36rem;
}

table.zones td:first-child,
table.zones td:nth-child(4) {
  white-space: nowrap;
}

table.zones tbody tr:nth-child(even) > td {
  background: var(--stripe);
}

table.zones tbody tr > td.now {
  background: var(--now);
}

table.zones tbody tr:nth-child(even) > td.now {
  background: var(--now-alt);
}

table.zones tbody tr:hover > td:not(.now) {
  background: var(--row-hover);
}

table.zones thead th.now {
  background: var(--now-alt);
}

/* ---- static pages: About, Advertise, Shop, Travel ---- */
.donate{text-align:center;margin:1.2rem auto;padding:1rem;border:1px solid var(--line,#d5dde6);border-radius:6px;background:#f5f8fc;max-width:32rem}
.donate p{margin:0 0 .6rem}
.donate input[type=image]{max-width:100%;height:auto}
.supporters{color:var(--accent,#0b63b0)}
.lead{font-size:1.05em;line-height:1.55}
table.ads{width:100%;border-collapse:collapse}
table.ads th,table.ads td{padding:.55rem .7rem;border:1px solid var(--line,#d5dde6);text-align:left;vertical-align:top}
table.ads th{background:#eef3f9}
.avail{color:#1a7f37;font-weight:600}
form.product{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;margin:1.5rem 0;padding:1rem;border:1px solid var(--line,#d5dde6);border-radius:6px;background:#fff}
@media (min-width:48em){form.product{grid-template-columns:minmax(0,22rem) minmax(0,1fr);align-items:start}}
.product-img img{display:block;width:100%;height:auto;border-radius:4px}
.product-info h2{margin-top:0}
.product-info p{margin:.4rem 0}
.price{font-size:1.1em}
.reg{color:#666}
.sale{color:#c0392b}
.buy{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.buy input[type=text]{width:3.5rem;padding:.3rem;border:1px solid #9fb3c8;border-radius:4px;font:inherit}
.amz{font-size:.92em}
.reviews blockquote{margin:1rem 0;padding:.6rem 1rem;border-left:4px solid var(--accent,#0b63b0);background:#f5f8fc}
.reviews blockquote footer{margin-top:.4rem;font-size:.9em;color:#555}
.video-wrap{position:relative;width:100%;aspect-ratio:16/9;margin:1rem 0 .5rem;background:#000}
.video-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* ---- Stock markets and Forex pages ---- */
.status-legend{list-style:none;margin:.5rem 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem 1.2rem}
.status-legend img{vertical-align:middle}
.market-map{margin:1rem 0;text-align:center}
.market-map > img{max-width:100%;height:auto;border:1px solid var(--line,#d5dde6)}
.affil{position:relative;max-width:600px;margin:1.2rem auto;border:4px solid #339933;background:#D7EBD7;line-height:0}
.affil img{display:block;width:100%;height:auto}
.affil a{position:absolute;top:0;width:25%;height:100%}
.affil a:focus-visible{outline:3px solid #0b63b0;outline-offset:-3px}
table.sessions{width:100%;min-width:0;border-collapse:collapse}
table.sessions th,table.sessions td{padding:.45rem .7rem;border:1px solid #fff;text-align:left;vertical-align:middle}
table.sessions thead th{background:#3399CC;color:#fff;text-align:center}
table.sessions.stocks tbody tr > td,table.sessions.stocks tbody tr:nth-child(even) > td{background:#DFEFF7}
table.sessions.zones-tz tbody tr > td,table.sessions.zones-tz tbody tr:nth-child(even) > td{background:#E1DEE2}
table.sessions.zones-tz thead th{background:#649A9C}
table.sessions td.hrs,table.sessions td.zone{white-space:nowrap}
table.sessions.forex tbody th{font-weight:600}
table.sessions.forex tr.asia > *,table.sessions.forex tr.asia:nth-child(even) > *{background:#ffcc66}
table.sessions.forex tr.europe > *,table.sessions.forex tr.europe:nth-child(even) > *{background:#99ff99}
table.sessions.forex tr.americas > *,table.sessions.forex tr.americas:nth-child(even) > *{background:#cc99ff}
table.sessions tbody tr:hover > *{filter:brightness(.97)}
.about-map p{margin:0 0 1rem}
@media (max-width:40em){
  table.sessions th,table.sessions td{padding:.35rem .4rem;font-size:.9rem}
  table.sessions td.hrs,table.sessions td.zone{white-space:normal}
  table.sessions.forex tbody th{width:5.5rem}
}

/* ==========================================================
   Map sections wtz001 ... wtz010 (fluid map, scaled strips)
   Added after the earlier fixed-width rules so these win.
   ========================================================== */

.sec-head .page-head h1 {
  font-size: 1.25rem;
}

.sec-map {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 1rem;
}

/* Coloured UTC strips: each cell grows in proportion to its map columns */
.sec-strip {
  display: flex;
  margin: 0 13px;
  padding: 0;
  list-style: none;
}

.sec-strip li {
  flex-basis: 0;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  padding: 0.3rem 0;
  font-size: clamp(0.5rem, 1.9vw, 0.7rem);
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.sec-strip a,
.sec-strip a:link,
.sec-strip a:visited {
  color: #000;
  font-size: inherit;
  text-decoration: none;
}

.sec-strip a:hover,
.sec-strip a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* Map picture with its four arrows */
.sec-frame {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr) 13px;
  grid-template-areas:
    ". n ."
    "w m e"
    ". s .";
}

.sec-frame .frame-n,
.sec-frame .frame-s {
  height: 13px;
}

.sec-frame .frame-n img,
.sec-frame .frame-s img {
  width: 100%;
  height: 13px;
  object-fit: contain;
}

.sec-frame .frame-w,
.sec-frame .frame-e {
  min-height: 0;
  overflow: hidden;
}

.sec-frame .frame-w img,
.sec-frame .frame-e img {
  width: 13px;
  height: 100%;
  object-fit: contain;
}

.sec-frame .frame-m > a {
  display: block;
}

.sec-frame .frame-m img {
  display: block;
  width: 100%;
  height: auto;
}

/* GSM block */
.gsm-block {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  max-width: 640px;
  margin: 1.5rem auto;
}

.gsm-block h2 {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.6rem;
  background: #d4b4f3;
  font-size: var(--text-sm);
}

.gsm-block .gsm-list {
  margin-left: 1rem;
  font-weight: 400;
}

.gsm-block .gsm-text {
  flex: 1 1 18rem;
  border-top: 3px solid #d4b4f3;
}

.gsm-block p {
  margin: 0.5rem 0 0;
  font-size: var(--text-sm);
}

/* Video, 300x250 ad and two towel pictures */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  justify-items: center;
  max-width: 660px;
  margin: 1.5rem auto;
}

.media-grid > div {
  max-width: 100%;
  overflow-x: auto;
}

.media-grid img,
.media-grid iframe {
  max-width: 100%;
  height: auto;
}

.media-grid iframe {
  aspect-ratio: 300 / 169;
}

/* Photos in the sidebar, grouped under a coloured UTC label */
.utc-photos {
  text-align: center;
}

.utc-group + .utc-group {
  margin-top: 1rem;
}

.utc-chip,
.utc-chip:link,
.utc-chip:visited {
  display: block;
  width: 125px;
  margin: 0 auto 0.5rem;
  padding: 0.25rem 0;
  color: #000;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.utc-photos ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.utc-photos li {
  width: 125px;
}

.utc-photos li a {
  display: block;
  font-size: var(--text-xs);
  line-height: 1.3;
}

.utc-photos li img {
  display: block;
  margin: 0 auto 0.2rem;
  max-width: 100%;
  height: auto;
}

.utc-photos li span {
  display: block;
}

/* Search boxes in the header must never be wider than the screen (320px phones) */
.search-form {
  min-width: 0;
  max-width: 100%;
  flex-basis: min(18rem, 100%);
}

.search-form button {
  flex-shrink: 0;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* ==========================================================
   DST news list (dst_news.php)
   ========================================================== */

.dst-news {
  background: #f7f7f7;
}

.dst-news .news-list,
.dst-news .news-back {
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dst-news .news-list > li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.dst-news .news-list > li:first-child {
  padding-top: 0;
  border-top: 0;
}

.dst-news p {
  max-width: 70ch;
  margin: 0.15rem 0;
}

.news-head {
  font-size: var(--text-sm);
}

.news-date {
  font-weight: 600;
}

.news-head img {
  vertical-align: baseline;
}

.news-title a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.news-src {
  color: var(--muted);
  font-size: var(--text-sm);
}

.dst-news .news-sum {
  color: var(--ink);
  font-weight: 600;
}

.dst-news .news-sum em {
  font-weight: 400;
}

.dst-news .news-note p {
  font-size: var(--text-sm);
  font-weight: 600;
}

.dst-news .news-back {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  columns: 2 12rem;
  font-size: var(--text-sm);
}

.dst-news .news-back li {
  break-inside: avoid;
  padding: 0.15rem 0;
}

/* Photo column in the sidebar (160px photos with a caption) */
.photo-stack ul {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.photo-stack li {
  width: 160px;
  max-width: 100%;
  background: #e9e9e9;
}

.photo-stack li a {
  display: block;
  font-size: var(--text-xs);
  line-height: 1.3;
}

.photo-stack li img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-stack li span {
  display: block;
  padding: 0.25rem 0.35rem 0.4rem;
}

@media (prefers-color-scheme: dark) {
  .dst-news { background: var(--surface); }
  .photo-stack li { background: var(--band); }
}

/* ==========================================================
   Slide pages: map history, date line, standard time zone charts
   ========================================================== */

.utc-strip .w { background: #fff; }

/* Longitude row (180, 150w ...) above or below a map */
.utc-strip.deg li {
  padding: 0.25rem 0;
  color: #1c2530;
  font-size: 0.65rem;
  white-space: nowrap;
}

.slider {
  margin: 0 auto 1rem;
}

.slider-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 62rem;
  margin: 0 auto 0.75rem;
}

.slider-cap {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: var(--text-sm);
  text-align: center;
  overflow-wrap: anywhere;
}

.slider-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.slider-btn {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 3px;
  background: var(--navy);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.slider-btn:hover { background: var(--hover); }
.slider-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Without JavaScript every map is shown, one under the other */
.slides { position: relative; }

.slide {
  position: relative;
  width: 1001px;
  margin: 0;
}

.slide[hidden] { display: none; }

.slide img {
  display: block;
  width: 1001px;
  max-width: none;
  height: auto;
}

.slide .year {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.2rem 0.5rem;
  background: #000;
  color: #fff;
  font-size: var(--text-sm);
}

.slide figcaption {
  padding: 0.35rem 0.5rem;
  font-size: var(--text-sm);
}

/* With JavaScript the caption moves up next to the buttons */
.slider-on .slide figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.slider:not(.slider-on) .slider-bar { display: none; }

/* Military time zones: letters and offsets */
.mil-scroll {
  overflow-x: auto;
}

.mil-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(9.5rem, 1fr));
  gap: 1rem 1.5rem;
}

@media (min-width: 40em) {
  .mil-grid { grid-template-columns: repeat(3, minmax(9.5rem, 1fr)); }
}

@media (min-width: 64em) {
  .mil-grid { grid-template-columns: repeat(6, minmax(8rem, 1fr)); }
}

.mil-grid ul {
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mil-grid li {
  display: flex;
  gap: 0.6rem;
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}

.mil-grid li:nth-child(odd) { background: var(--stripe); }

.mil-grid li b {
  flex: 0 0 2rem;
  color: var(--head);
}

.odd { color: #c62828; }

/* Lists of years and "Back to" links */
.year-links h2 {
  margin: 0 0 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #ffff00;
  color: #1c2530;
  font-size: var(--text-base);
  text-align: center;
}

.year-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  max-width: none;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.back-links {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: #f6f4f4;
  color: #1c2530;
}

.back-links a { color: #0b4f8a; }
.back-links p { margin: 0.4rem 0; max-width: none; }

.map-notes p { max-width: none; }

/* Timeline of date line changes and standard time zone charts */
table.history {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

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

table.history thead th {
  background: var(--band);
  color: var(--head);
}

table.history tbody th {
  width: 7rem;
  white-space: nowrap;
  color: var(--head);
}

table.history tr.dl th { border-left: 4px solid #97d4fc; }
table.history tr.std th { border-left: 4px solid #8af5a5; }
table.history tr.std { background: var(--stripe); }

table.history td > a { font-weight: 600; }

table.history td p,
table.history td ul {
  max-width: none;
  margin: 0.25rem 0 0;
  color: var(--muted);
}

table.history td ul { padding-left: 1.1rem; }

@media (max-width: 36em) {
  table.history tbody th { width: 5rem; white-space: normal; }
}

/* ==========================================================
   Contact form (index_email.php)
   ========================================================== */

.contact-form {
  max-width: 46rem;
  margin: 0 auto 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

@media (min-width: 40em) {
  .contact-form { padding: 2rem; }
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem 1.25rem;
}

@media (min-width: 40em) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .wide { grid-column: 1 / -1; }
}

.contact-form label,
.contact-form .label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--head);
  font-size: var(--text-sm);
  font-weight: 600;
}

.contact-form .opt {
  color: var(--muted);
  font-weight: 400;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #9fb3c8;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;           /* 16px: phones do not zoom in on focus */
}

.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(11, 99, 176, 0.25);
  outline-offset: 0;
}

.counter {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
  text-align: right;
}

.captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.captcha-row img {
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}

.captcha-input {
  flex: 1 1 12rem;
}

.link-btn {
  display: block;
  margin-top: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: var(--text-sm);
  text-decoration: underline;
  cursor: pointer;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
  min-height: 2.75rem;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  flex: 1 1 10rem;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover { background: var(--hover); border-color: var(--hover); }

.btn-secondary {
  border: 1px solid #9fb3c8;
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover { background: var(--band); }

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.link-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.form-errors {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid #c62828;
  border-left-width: 5px;
  border-radius: 4px;
  background: #fdecea;
  color: #7f1d1d;
}

.form-errors ul {
  max-width: none;
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

@media (prefers-color-scheme: dark) {
  .odd { color: #ff8a80; }
  .form-errors { background: #3a1a1a; color: #ffd2cc; border-color: #ff8a80; }
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form select,
  .contact-form textarea { border-color: var(--border); }
  .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
}

/* ==========================================================
   UTC zone pages and time zone names (utc_*.php, timezonenames.php)
   ========================================================== */

/* Narrow strip: cell width is set on the list, e.g. style="--cell:27px" */
.strip-scroll {
  max-width: 100%;
  margin: 0 auto 1rem;
  overflow-x: auto;
}

.strip-scroll .utc-strip.compact {
  margin: 0 auto;
}

.utc-strip.compact {
  width: calc(var(--cell, 27px) * 25);
}

.utc-strip.compact li {
  flex: 0 0 var(--cell, 27px);
  padding: 0.3rem 0;
  font-size: 0.65rem;
  white-space: nowrap;
}

.utc-strip .lg { background: #ccffcc; }
.utc-strip .lb { background: #9fdbfb; }
.utc-strip .lr { background: #f99d9d; }
.utc-strip .dg { background: #00cd66; }
.utc-strip .db { background: #5cacee; }
.utc-strip .dr { background: #ff3030; }

/* "TIME ZONE | UTC+05 | E(Echo) | USZ4 ..." rows */
.tz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: none;
  margin: 1rem 0 0.5rem;
}

.tz-label,
.tz-chip {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: var(--text-sm);
  font-weight: 700;
}

.tz-label { color: #1c2530; }
.tz-chip { background: #fff; }

.utc-zone .region-links {
  max-width: none;
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.utc-zone .region-links li + li { margin-top: 0.35rem; }

.map-links-box {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #ececf1;
  color: #1c2530;
  border-radius: 3px;
}

.map-links-box h2 {
  margin: 0 0 0.75rem;
  font-size: var(--text-base);
  text-align: center;
}

.map-links-box a { color: #0b4f8a; }

.photo-promo img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 0.35rem;
}

/* Time zone abbreviations: letter groups in columns */
.abbr h2 {
  margin-top: 0;
  text-align: center;
}

.abbr-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  max-width: none;
  margin: 0 0 1.25rem;
}

.abbr-nav a {
  min-width: 2.1rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--band);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.abbr-cols {
  columns: 10rem 4;
  column-gap: 1.25rem;
}

.abbr-group {
  margin: 0 0 1rem;
  break-inside: avoid;
}

.abbr-group h3 {
  margin: 0 0 0.3rem;
  padding: 0.25rem 0.5rem;
  color: #4b4848;
  font-size: var(--text-base);
  text-align: center;
  break-after: avoid;
  scroll-margin-top: 1rem;
}

.abbr-group h3 a { color: inherit; text-decoration: none; }
.abbr-group h3 span { font-weight: 400; font-size: var(--text-sm); }
.abbr-group.red h3   { background: #ffcccc; }
.abbr-group.blue h3  { background: #e5f6ff; }
.abbr-group.green h3 { background: #ccffcc; }

.abbr-group ul {
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.abbr-group li {
  padding: 0.12rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}

.abbr-notes {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
}

.abbr-notes ul { max-width: none; margin: 0; padding-left: 1.25rem; }
.abbr-notes li + li { margin-top: 0.35rem; }

@media (prefers-color-scheme: dark) {
  .abbr-group h3 { color: #1c2530; }
}

/* Colour boxes and zone blocks: breathing room */
.zone-grid { margin-bottom: 0.75rem; }
.zone-block + .zone-block { margin-top: 0.75rem; }

/* Notes block without a heading (date line explanation) */
.zone-notes .region-list { margin-top: 0; }

/* Abbreviation page: all names and letter headings read as links */
.abbr-group h3 a {
  color: #00186b;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.abbr-group li a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.abbr-group h3 a:hover,
.abbr-group li a:hover { text-decoration-thickness: 2px; }
.abbr-nav a { text-decoration: underline; text-underline-offset: 2px; }

/* Colour key under a country map: colour box + text */
.color-key {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: 0.6rem 1.25rem;
  max-width: 60rem;
  margin: 1rem auto;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}

.color-key li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.color-key .swatch {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
}

.color-key a { text-decoration: underline; }

/* Text blocks with a picture beside them (articles on the language home pages) */
.media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin: 1rem 0;
}

.media-row img { max-width: 100%; height: auto; }
.media-row p { flex: 1 1 16rem; margin: 0; }

.towel-promo { margin: 0 0 1.5rem; text-align: center; }
.towel-promo .towel-head { color: #b3261e; }
.towel-promo .tools img { max-width: 100%; height: auto; }
