/* Replaces former inline style="" attributes (the CSP forbids inline styles). */
.is-hidden { display: none !important; }
.nearby-wrap { margin-top: 5px; margin-bottom: -5px; padding-left: 0; }
.forecast .temp_deg { top: 0; }
.wi.wi-wind { display: inline-block; }
.home-top-list.spaced { margin-bottom: 40px; }
.home-top-list .col-spaced { margin-top: 10px; }
.embed-tall { min-height: 500px; }
.img-round { border-radius: 10px; }
.img-round-lg { border-radius: 25px; }
.jamfu-side { float: left; }
.small-top { margin-top: 3px; }
.text-center-offset { margin-left: -77px; }
.widget-demo { position: relative; }
.widget-demo iframe { height: 250px; min-width: 215px; width: 100%; max-width: 100%; border: 0; }
.widget-demo.is-small iframe { height: 80px; }
.widget-demo .widget-credit { font-size: 11px; color: #777; position: absolute; left: 20px; margin-top: 66px; }
.generator-frame { width: 320px; height: 480px; border: 0; }
.typeahead.dropdown-menu.is-open { display: block; }

/* The search suggestions must float above the page content, not behind it. Only the city-page header needs
   positioning for that; the home hero stays unpositioned so the "smile" curve below it (#smile-section) paints over it. */
#search.city-pages { position: relative; z-index: 1030; }
#search .typeahead.dropdown-menu { z-index: 1031; max-height: 70vh; overflow-y: auto; }

/* No gap between the YR/SMHI tabs and the first day's forecast card. */
#weather-hourly-container > #left-content { margin-bottom: 0; }

/* Widget info page */
.widget-side { margin-top: 25px; }
.jamfu-promo { width: 295px; margin-top: 10px; }

/* Drag-to-scroll hourly tables: show a grab cursor only when the table is wider than its container. */
.detaljerad-prognos.table-responsive.is-draggable { cursor: grab; }
.detaljerad-prognos.table-responsive.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }

/* Footer language switcher: on the logo row, right-aligned. Opens upwards because the footer is at the page bottom. */
footer .logo-container { position: relative; }
#copy-burger .lang-switch { position: relative; z-index: 20; }
footer #copy-burger .lang-switch > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 18px; border: 1px solid var(--color-gray-medium);
  background: var(--color-surface); color: var(--color-details); font-size: 15px; line-height: 1.2;
  box-shadow: 0 1px 3px var(--shadow-default); user-select: none; -webkit-user-select: none;
}
#copy-burger .lang-switch > summary::-webkit-details-marker { display: none; }
#copy-burger .lang-switch > summary:hover, #copy-burger .lang-switch[open] > summary { border-color: var(--color-primary); }
#copy-burger .lang-switch > summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
#copy-burger .lang-switch .mi-language { color: var(--color-primary); }
#copy-burger .lang-switch .lang-caret { margin-left: 2px; transition: transform .15s; }
#copy-burger .lang-switch[open] .lang-caret { transform: rotate(180deg); }
#copy-burger .lang-switch .lang-menu {
  list-style: none; margin: 0; padding: 6px; position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 170px;
  background: var(--color-surface); border: 1px solid var(--color-gray-medium); border-radius: 18px;
  box-shadow: 0 8px 24px var(--shadow-default);
}
#copy-burger .lang-switch .lang-menu li { display: block !important; float: none; width: 100%; margin: 0; padding: 0; line-height: 1.3 !important; }
#copy-burger .lang-switch .lang-menu li::before { content: none; }
/* The theme forces footer links to white with !important; the menu has its own surface, so it needs its own colours. */
footer #copy-burger .lang-switch .lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 14px; border-radius: 12px;
  color: var(--color-details) !important; text-decoration: none; border: 0; font-size: 15px;
}
footer #copy-burger .lang-switch .lang-menu a:hover, footer #copy-burger .lang-switch .lang-menu a:focus-visible {
  background: var(--color-gray-light); color: var(--color-primary) !important;
}
footer #copy-burger .lang-switch .lang-menu a[aria-current="true"] { font-weight: 700; }
#copy-burger .lang-switch .lang-menu .mi-check { color: var(--color-primary); }

/* The theme ships a trimmed FontAwesome; these two glyphs (globe, check) exist in the font but had no class. */

/* Breadcrumbs on place and hub pages (outside Swedish): links in the strong text colour, the current page in gray. */
.breadcrumbs {
  font-size: 13px;
  margin: 12px 0 0;
  color: var(--color-gray-dark);
}
.breadcrumbs a { color: var(--color-details); text-decoration: none; border: 0; }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .crumb-sep { margin: 0 8px; opacity: .6; }
.breadcrumbs .crumb-current { color: var(--color-gray-dark); }
.hub-count { opacity: .6; font-size: .85em; }

/* Current temperature, right-aligned in the place pills. Added after load, so it never shifts the layout (floats). */
/* The name stays on one line; a long name slides behind the temperature and fades out in the pill's own colour. */
.home-top-list li a, .weather-nearby-cities-footer li a { position: relative; overflow: hidden; white-space: nowrap; }
.home-top-list li a .pill-temp, .weather-nearby-cities-footer li a .pill-temp {
  position: absolute; top: 0; right: 0; bottom: 0; display: flex; align-items: center; padding: 0 15px 0 28px;
  background: linear-gradient(to right, transparent, var(--color-surface) 24px); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.home-top-list li a .pill-temp > * { opacity: .9; }

/* Neutral weather icon in front of the pill temperature: follows the text colour, so light in dark mode and dark in light mode. */
.pill-temp .pill-icon { color: inherit; margin-right: 8px; font-size: 1.05em; vertical-align: -1px; }

/* Footer tools on the logo row, right-aligned: [Install app] [sun/moon switch] [language] */
#copy-burger .footer-tools { position: absolute; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; z-index: 20; }
#copy-burger .install-app, #copy-burger .theme-switch, #copy-burger .time-switch {
  border: 1px solid var(--color-gray-medium); background: var(--color-surface); color: var(--color-details);
  border-radius: 18px; box-shadow: 0 1px 3px var(--shadow-default); cursor: pointer; font-size: 15px; line-height: 1.2;
}
#copy-burger .install-app { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; }
#copy-burger .install-app[hidden] { display: none; }
#copy-burger .install-app .mi-download { color: var(--color-primary); }
#copy-burger .install-app:hover, #copy-burger .theme-switch:hover, #copy-burger .time-switch:hover { border-color: var(--color-primary); }
#copy-burger .install-app:focus-visible, #copy-burger .theme-switch:focus-visible, #copy-burger .time-switch:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Sun / moon switch: the knob slides under the icon of the active theme. */
#copy-burger .theme-switch, #copy-burger .time-switch { position: relative; width: 72px; height: 38px; padding: 0; display: inline-block; }
#copy-burger .theme-switch .knob, #copy-burger .time-switch .knob { position: absolute; top: 3px; left: 3px; width: 30px; height: 30px; border-radius: 50%; background: var(--color-primary); transition: transform .2s ease; }
html.dark-mode #copy-burger .theme-switch .knob, html.t12 #copy-burger .time-switch .knob { transform: translateX(34px); }
#copy-burger .theme-switch .mi, #copy-burger .time-switch .tl { position: absolute; top: 50%; margin-top: -9px; width: 18px; height: 18px; text-align: center; font-size: 18px; color: var(--color-gray-dark); transition: color .2s; }
#copy-burger .theme-switch .mi-light_mode, #copy-burger .time-switch .tl-24 { left: 9px; color: var(--color-surface); }
#copy-burger .theme-switch .mi-dark_mode, #copy-burger .time-switch .tl-12 { right: 9px; }
html.dark-mode #copy-burger .theme-switch .mi-light_mode, html.t12 #copy-burger .time-switch .tl-24 { color: var(--color-gray-dark); }
html.dark-mode #copy-burger .theme-switch .mi-dark_mode, html.t12 #copy-burger .time-switch .tl-12 { color: var(--color-surface); }

/* iOS has no install prompt: a small hint card explains Add to Home Screen. */
#copy-burger .install-hint { position: absolute; right: 0; bottom: calc(100% + 8px); width: 260px; padding: 14px 16px; border-radius: 18px; background: var(--color-surface); color: var(--color-details); border: 1px solid var(--color-gray-medium); box-shadow: 0 8px 24px var(--shadow-default); z-index: 30; }
#copy-burger .install-hint[hidden] { display: none; }
#copy-burger .install-hint p { margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
#copy-burger .install-hint button { border: 0; background: transparent; color: var(--color-primary); font-size: 14px; cursor: pointer; padding: 0; }

/* "Warn me about weather warnings" button, in the footer tools next to "Install as app" */
#copy-burger .warn-notify { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--color-gray-medium); background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
#copy-burger .warn-notify[hidden] { display: none; }
#copy-burger .warn-notify .mi-notifications { color: var(--color-primary); }
#copy-burger .warn-notify:hover, #copy-burger .warn-notify.is-on { border-color: var(--color-primary); }
#copy-burger .warn-notify:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Active SMHI warnings under the place heading */
.active-warnings { margin: 6px 0 14px; }
.active-warnings ul { list-style: none; margin: 0; padding: 0; }
.active-warnings li { padding: 9px 14px; margin-bottom: 6px; border-radius: 8px; border-left: 6px solid #f5c400; background: var(--color-surface, rgba(128,128,128,.12)); }
.active-warnings li.warn-orange { border-left-color: #ff8a00; }
.active-warnings li.warn-red { border-left-color: #d90429; }
.active-warnings .warn-area { opacity: .7; }

/* Phones: the footer tools sit left-aligned in their own row under the logo; the language menu opens upwards from the left edge */
@media (max-width: 767px) {
  footer .logo-container { height: auto; }
  #copy-burger .logo-container .logo-word, #copy-burger .logo-container .logo-word a { position: static; margin: 0 0 4px; line-height: 1.2; text-align: left !important; }
  #copy-burger .footer-tools { position: static; justify-content: flex-start; margin-top: 16px; }
  #copy-burger .lang-switch .lang-menu { left: 0; right: auto; }
}

/* Human-readable sitemap */
.sitemap-page { padding-bottom: 40px; }
.sitemap-intro { max-width: 760px; margin: 0 0 24px; color: var(--color-gray-dark); }
.sitemap-page h2 { margin: 32px 0 14px; }
.sitemap-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.sitemap-cards a {
  display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--color-gray-medium); border-radius: 12px; background: var(--color-surface);
  box-shadow: 0 1px 3px var(--shadow-default); color: var(--color-details); text-decoration: none; transition: border-color .15s, transform .15s;
}
.sitemap-cards a:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.sitemap-cards strong { display: block; font-size: 1.05em; margin-bottom: 4px; color: var(--color-primary); }
.sitemap-cards span { display: block; font-size: .9em; opacity: .8; }
.sitemap-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.sitemap-lang { padding: 16px 18px; border: 1px solid var(--color-gray-medium); border-radius: 12px; background: var(--color-surface); }
.sitemap-lang h3 { margin: 0 0 8px; font-size: 1.15em; }
.sitemap-lang p { margin: 0 0 8px; line-height: 1.7; font-size: .95em; }
.sitemap-continents a { font-weight: 600; }
.sitemap-lang a { color: var(--color-details); text-decoration: none; border-bottom: 1px dotted var(--color-gray-medium); }
.sitemap-lang a:hover { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.sitemap-lang .sitemap-countries { max-height: 190px; overflow-y: auto; padding-right: 6px; }

/* "Near you" under the hero on the home page: up to three place pills (same look as the lists below) and a footer-style button */
.near-you[hidden] { display: none; }
.near-you { margin-bottom: 30px; }
/* Two columns on phones, four from tablet up; a grid has no margin collapsing, so half the pill margin on each side keeps the same gaps as the lists below */
.near-you .near-you-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; margin: 0; }
.near-you .near-you-list li a { margin: 7.5px 0; }
@media (min-width: 768px) { .near-you .near-you-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.near-you-exact {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; margin: 0; flex-shrink: 0;
  border: 1px solid var(--color-gray-medium); background: var(--color-surface); color: var(--color-details);
  border-radius: 18px; cursor: pointer; font: inherit; font-size: 15px; line-height: 1.2;
}
.near-you-exact .mi { color: var(--color-primary); }
.near-you-exact:hover { border-color: var(--color-primary); }
.near-you-exact:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.near-you .near-you-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.near-you .near-you-head h2 { margin-right: auto; }
.near-you .near-you-note { margin: 10px 0 2px !important; padding: 0 !important; max-width: none; font-size: .85em; opacity: .7; }

/* Two equal columns of place pills with one gutter between them (the left column used to be wider than the right) */
.home-top-list .home-col-l { padding-left: 0; padding-right: 7.5px; }
.home-top-list .home-col-r { padding-left: 7.5px; padding-right: 0; }

/* Pill weather icons take the text colour, whatever colour the icon font classes give them elsewhere */
.pill-temp .pill-icon.wi { color: inherit !important; background: none !important; background-image: none !important; -webkit-text-fill-color: currentColor !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; }

/* Home: hamburger button (fixed circle, as on the old site) */
.home #primary_nav_wrap ul#huvudmeny { list-style: none; padding: 0; }
.home #primary_nav_wrap ul#huvudmeny li button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; border: 0; cursor: pointer;
  background: var(--color-surface); color: var(--color-primary);
  border-radius: 50%; font-size: 28px; line-height: 1;
}
.home #primary_nav_wrap ul#huvudmeny li button:hover,
.home #primary_nav_wrap ul#huvudmeny li button:focus-visible { opacity: .8; }

/* Burger turns into an X while the menu is open */

/* "Detaljerad / Göm detaljerad": only the button itself is clickable, not the full row */
.panel-title.panel-show-close { text-align: left; }
.panel-title.panel-show-close > a { display: inline-block; width: auto; max-width: 100%; }

/* Tooltips (replace native title tooltips) */
.v24-tip {
  position: absolute; z-index: 10000; max-width: min(260px, calc(100vw - 16px));
  padding: 7px 11px; border-radius: 8px; pointer-events: none;
  background: #1d2030; color: #fff; font-size: 14px; line-height: 1.35; font-weight: 400; text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.16);
  opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; visibility: hidden;
}
.v24-tip.is-on { opacity: 1; transform: none; visibility: visible; }
.v24-tip::after {
  content: ""; position: absolute; left: var(--arrow-x, 50%); bottom: -6px; margin-left: -6px;
  width: 10px; height: 10px; background: inherit; border: inherit; border-width: 0 1px 1px 0; transform: rotate(45deg);
}
.v24-tip.is-below::after { bottom: auto; top: -6px; border-width: 1px 0 0 1px; }

/* Staging login page */
.gate-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; margin: 0; background: var(--color-bg, var(--color-surface)); }
.gate-box { width: min(360px, calc(100vw - 32px)); padding: 28px 24px; border-radius: 16px; background: var(--color-surface); box-shadow: 0 2px 14px var(--shadow-default); text-align: center; }
.gate-box h1 { margin: 0 0 4px; font-size: 40px; font-weight: 300; }
.gate-box h1 span { color: var(--color-orange); }
.gate-box form { display: grid; gap: 10px; margin-top: 16px; text-align: left; }
.gate-box input[type=password] { width: 100%; padding: 11px 14px; border: 1px solid var(--color-gray-medium); border-radius: 12px; background: var(--color-surface); color: inherit; font: inherit; }
.gate-box button { padding: 11px 16px; border: 0; border-radius: 22px; background: var(--color-primary); color: #fff; font: inherit; cursor: pointer; }
.gate-error { margin: 0; color: var(--color-danger); font-size: .9em; }

/* Layout toggle for the hourly tables (right of the "Göm detaljerad" button) */
.show_for_detail { position: relative; }
.hours-layout-toggle {
  display: none; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--color-gray-medium); border-radius: 50%; background: transparent; color: var(--color-details); cursor: pointer;
}
.hours-layout-toggle:hover, .hours-layout-toggle:focus-visible { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.show_for_detail:has(a.closed:not(.collapsed)) .hours-layout-toggle { display: inline-flex; }
.hours-layout-toggle .ico-to-h { display: none; }
html.hours-v .hours-layout-toggle .ico-to-v { display: none; }
html.hours-v .hours-layout-toggle .ico-to-h { display: block; }

/* Vertical hourly table: one row per hour, SMHI-style structure with a header row, Väder24 look */
.hours-head { display: none; }
html.hours-v #weather-display .row.detaljerad-prognos.table-responsive { overflow: clip; max-height: none; height: auto; cursor: auto; }
html.hours-v #weather-display .detaljerad-prognos .table,
html.hours-v #weather-display .detaljerad-prognos .table tbody,
html.hours-v #weather-display .detaljerad-prognos .table tr { display: block; width: 100%; }
html.hours-v #weather-display .hours-head,
html.hours-v #weather-display td.vadret-en-timme ul.tableTime {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.5fr) minmax(0,1.2fr) 36px minmax(0,1fr) minmax(0,1fr); column-gap: 8px; align-items: center; justify-items: start;
  width: 100%; margin: 0; padding: 0 24px; list-style: none; text-align: left;
}
html.hours-v #weather-display .hours-head {
  padding-top: 12px; padding-bottom: 12px; font-size: 14px; line-height: 1.2; color: var(--color-details);
  border-bottom: 1px solid var(--color-gray-medium);
  background: linear-gradient(rgba(127, 127, 160, .08), rgba(127, 127, 160, .08)), var(--color-surface);
  position: sticky; top: var(--stick-top, 0px); z-index: 5; transition: top .25s ease;
}
html.hours-v #weather-display .hours-head > span { display: flex; flex-direction: column; min-width: 0; }
.hours-head .hs { display: none; }
html.hours-v #weather-display .detaljerad-prognos .table { margin-top: 0 !important; }
html.hours-v #weather-display .hours-head small { font-size: 11px; opacity: .8; margin-top: 2px; }
html.hours-v #weather-display .hours-head .hh-weather { grid-column: 2 / 4; }
html.hours-v #weather-display .hours-head .hh-wind { grid-column: 5 / 7; }
html.hours-v #weather-display .table tr td.vadret-en-timme {
  display: block; min-width: 0; width: 100%; padding: 0; background-image: none !important; box-shadow: none !important;
  border-width: 0 0 1px; border-style: solid; border-color: var(--color-gray-medium);
}
html.hours-v #weather-display .row.detaljerad-prognos td:last-child { border-bottom: none; }
/* Same day/night colours as the horizontal table (sunrise/sunset cells keep the colour of their half of the day) */
html.hours-v #weather-display .table tr td.vadret-en-timme.day-time { background-color: var(--color-climate-blue-light) !important; }
html.hours-v #weather-display .table tr td.vadret-en-timme.night-time { background-color: var(--color-gray-light) !important; }
html.hours-v #weather-display td.vadret-en-timme ul.tableTime { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
html.hours-v #weather-display td.vadret-en-timme ul.tableTime li,
html.hours-v #weather-display td.vadret-en-timme ul.tableTime li span.temp_deg,
html.hours-v #weather-display td.vadret-en-timme ul.tableTime li sup.hoursup {
  margin: 0 !important; padding: 0; height: auto !important; min-height: 0 !important; line-height: 1.2 !important;
  font-size: 18px !important; font-weight: 300; color: inherit; position: static; display: inline;
}
html.hours-v #weather-display td.vadret-en-timme ul.tableTime li { display: block; }
html.hours-v #weather-display td.vadret-en-timme ul.tableTime li.onlyTime { color: var(--color-details); }
html.hours-v #weather-display td.vadret-en-timme ul.tableTime li i { height: auto; width: auto; padding: 0; font-size: 28px; line-height: 1; }
html.hours-v #weather-display td.vadret-en-timme ul.tableTime li i[class*='wi-wind'] { font-size: 24px; }
html.hours-v #weather-display td.vadret-en-timme ul.tableTime li sup.hoursup { margin-left: 1px !important; }
html.hours-v #weather-display .vadret-en-timme li span:not(.temp_deg),
html.hours-v #weather-display .vadret-en-timme li.wind_name span.hourly-wind-direction { display: none; }
html.hours-v #weather-display .vadret-en-timme li.wind_name div { display: inline; }
html.hours-v #weather-display .vadret-en-timme li.uv-index { display: none !important; }
/* Sunrise: bubble on the right, where the faded line is strongest. Sunset: bubble on the left. */
html.hours-v #weather-display .table tr td.vadret-en-timme { position: relative; }
/* Same thin orange edge that fades into the cell colour as in the horizontal table (first three days), turned 90 degrees */
html.hours-v { --sun-line: rgba(255, 97, 29, 1); }
html.hours-v.dark-mode { --sun-line: rgba(255, 165, 0, 1); }
html.hours-v #weather-display .one-day:is(.day-1, .day-2, .day-3) .table tr td.vadret-en-timme.sunrise {
  background-image: linear-gradient(181deg, var(--sun-line) 1px, transparent 4px) !important;
}
html.hours-v #weather-display .one-day:is(.day-1, .day-2, .day-3) .table tr td.vadret-en-timme.sunset {
  background-image: linear-gradient(1deg, var(--sun-line) 1px, transparent 4px) !important;
}
html.hours-v #weather-display td.vadret-en-timme ul.tableTime li.sunUpTime,
html.hours-v #weather-display td.vadret-en-timme ul.tableTime li.sunDownTime {
  position: absolute; z-index: 2; display: flex !important; align-items: center; justify-content: center;
  width: 33px; height: 33px !important; margin: 0 !important; padding: 0; border-radius: 50%;
  background: orange; color: #000; box-shadow: 0 1px 3px rgba(0,0,0,.35); font: 12px/1 arial, verdana, sans-serif !important; font-size: 12px !important;
}
html.hours-v #weather-display td.vadret-en-timme ul.tableTime li.sunUpTime { top: -16px; right: 10px; left: auto; bottom: auto; }
html.hours-v #weather-display td.vadret-en-timme ul.tableTime li.sunDownTime { top: -16px; left: 10px; right: auto; bottom: auto; }
/* First row: the bubble straddles the edge to the sticky header (half over the header) instead of covering the row's values */
html.hours-v #weather-display .table tr td.vadret-en-timme:first-child ul.tableTime li.sunUpTime,
html.hours-v #weather-display .table tr td.vadret-en-timme:first-child ul.tableTime li.sunDownTime { z-index: 6; }
@media (max-width: 480px) {
  html.hours-v #weather-display .hours-head,
  html.hours-v #weather-display td.vadret-en-timme ul.tableTime { grid-template-columns: 44px 32px minmax(0,1fr) 42px 22px 24px 44px; column-gap: 4px; padding-left: 12px; padding-right: 12px; }
  html.hours-v #weather-display .hours-head { font-size: 12px; }
  .hours-head .hl { display: none; }
  .hours-head .hs { display: inline; }
  html.hours-v #weather-display td.vadret-en-timme ul.tableTime li,
  html.hours-v #weather-display td.vadret-en-timme ul.tableTime li span.temp_deg,
  html.hours-v #weather-display td.vadret-en-timme ul.tableTime li sup.hoursup { font-size: 16px !important; }
}

/* The same buttons (warnings, theme, language) at the bottom of the burger menu */
#show-nav #copy-footer .lang-switch { position: relative; z-index: 20;}
#show-nav #copy-footer .lang-switch > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 18px; border: 1px solid var(--color-gray-medium);
  background: var(--color-surface); color: var(--color-details); font-size: 15px; line-height: 1.2;
  box-shadow: 0 1px 3px var(--shadow-default); user-select: none; -webkit-user-select: none;}
#show-nav #copy-footer .lang-switch > summary::-webkit-details-marker { display: none;}
#show-nav #copy-footer .lang-switch > summary:hover,
#show-nav #copy-footer .lang-switch[open] > summary { border-color: var(--color-primary);}
#show-nav #copy-footer .lang-switch > summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px;}
#show-nav #copy-footer .lang-switch .mi-language { color: var(--color-primary);}
#show-nav #copy-footer .lang-switch .lang-caret { margin-left: 2px; transition: transform .15s;}
#show-nav #copy-footer .lang-switch[open] .lang-caret { transform: rotate(180deg);}
#show-nav #copy-footer .lang-switch .lang-menu {
  list-style: none; margin: 0; padding: 6px; position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  background: var(--color-surface); border: 1px solid var(--color-gray-medium); border-radius: 18px;
  box-shadow: 0 8px 24px var(--shadow-default);}
#show-nav #copy-footer .lang-switch .lang-menu li { display: block !important; float: none; width: 100%; margin: 0; padding: 0; line-height: 1.3 !important;}
#show-nav #copy-footer .lang-switch .lang-menu li::before { content: none;}
#show-nav #copy-footer .lang-switch .lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 14px; border-radius: 12px;
  color: var(--color-details) !important; text-decoration: none; border: 0; font-size: 15px;}
#show-nav #copy-footer .lang-switch .lang-menu a:hover,
#show-nav #copy-footer .lang-switch .lang-menu a:focus-visible {
  background: var(--color-gray-light); color: var(--color-primary) !important;}
#show-nav #copy-footer .lang-switch .lang-menu a[aria-current="true"] { font-weight: 700;}
#show-nav #copy-footer .lang-switch .lang-menu .mi-check { color: var(--color-primary);}
#show-nav #copy-footer .footer-tools { position: absolute; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; z-index: 20;}
#show-nav #copy-footer .theme-switch, #show-nav #copy-footer .time-switch {
  border: 1px solid var(--color-gray-medium); background: var(--color-surface); color: var(--color-details);
  border-radius: 18px; box-shadow: 0 1px 3px var(--shadow-default); cursor: pointer; font-size: 15px; line-height: 1.2;}
#show-nav #copy-footer .theme-switch:hover, #show-nav #copy-footer .time-switch:hover { border-color: var(--color-primary);}
#show-nav #copy-footer .theme-switch:focus-visible, #show-nav #copy-footer .time-switch:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px;}
#show-nav #copy-footer .theme-switch, #show-nav #copy-footer .time-switch { position: relative; width: 72px; height: 38px; padding: 0; display: inline-block;}
#show-nav #copy-footer .theme-switch .knob, #show-nav #copy-footer .time-switch .knob { position: absolute; top: 3px; left: 3px; width: 30px; height: 30px; border-radius: 50%; background: var(--color-primary); transition: transform .2s ease;}
html.dark-mode #show-nav #copy-footer .theme-switch .knob, html.t12 #show-nav #copy-footer .time-switch .knob { transform: translateX(34px);}
#show-nav #copy-footer .theme-switch .mi, #show-nav #copy-footer .time-switch .tl { position: absolute; top: 50%; margin-top: -9px; width: 18px; height: 18px; text-align: center; font-size: 18px; color: var(--color-gray-dark); transition: color .2s;}
#show-nav #copy-footer .theme-switch .mi-light_mode, #show-nav #copy-footer .time-switch .tl-24 { left: 9px; color: var(--color-surface);}
#show-nav #copy-footer .theme-switch .mi-dark_mode, #show-nav #copy-footer .time-switch .tl-12 { right: 9px;}
html.dark-mode #show-nav #copy-footer .theme-switch .mi-light_mode, html.t12 #show-nav #copy-footer .time-switch .tl-24 { color: var(--color-gray-dark);}
html.dark-mode #show-nav #copy-footer .theme-switch .mi-dark_mode, html.t12 #show-nav #copy-footer .time-switch .tl-12 { color: var(--color-surface);}
#show-nav #copy-footer .warn-notify { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--color-gray-medium); background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer;}
#show-nav #copy-footer .warn-notify[hidden] { display: none;}
#show-nav #copy-footer .warn-notify .mi-notifications { color: var(--color-primary);}
#show-nav #copy-footer .warn-notify:hover,
#show-nav #copy-footer .warn-notify.is-on { border-color: var(--color-primary);}
#show-nav #copy-footer .warn-notify:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px;}
#show-nav #copy-footer .footer-tools { position: static; justify-content: flex-start; margin: 28px 0 12px; }
#show-nav #copy-footer .lang-switch .lang-menu { left: 0; right: auto; }
#show-nav #copy-footer .warn-notify { color: var(--color-details); }
#show-nav #copy-footer .lang-switch .lang-menu a { font-size: 15px; line-height: 1.3; border-bottom: 0; }

/* Search suggestions: heading above the recently visited places */
.typeahead .typeahead-head { padding: 8px 16px 4px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; opacity: .65; cursor: default; pointer-events: none; }

@media (min-width: 768px) { .near-you .near-you-exact { position: relative; top: 8px; } }

.near-you-exact[hidden] { display: none; }

/* Desktop: the lists were wider than the page content (two stacked rows each pulled the columns 15px outwards), so the pills stuck out
   past the headings, the near-you block and the ad. One level of negative margin is removed, and the pills line up with everything else. */
@media (min-width: 481px) {
  .home-top-list.spaced .col-sm-6 > .row, .home-top-list.spaced > .row { margin-left: 0; margin-right: 0; }
}

/* Place pages: the top bar stays in the flow (no jump) and sticks to the top; it slides up when scrolling down and back down when scrolling up */
#search.city-pages.headroom { position: sticky; top: 0; transform: translateY(0); transition: transform .25s ease; will-change: transform; }
#search.city-pages.headroom.bar-away { transform: translateY(-100%); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { #search.city-pages.headroom { transition: none; } }
/* The body used to be exactly one screen high, which would stop a sticky bar after the first screen */
body { height: auto; min-height: 100%; }

/* Wind compass in the day summary: 30px on larger screens, 18px on phones */
@media (max-width: 767px) { i.wi-wind { font-size: 18px; } }


/* Material Symbols (inline SVG, see components/Icon.astro): sized by font-size, coloured by the text colour */
.mi { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.15em; flex-shrink: 0; display: inline-block; }
.warn-notify .mi, .install-app .mi, .near-you-exact .mi, .lang-switch summary .mi { font-size: 18px; }
.lang-menu .mi-check { font-size: 16px; }
#search span.nearByLink { display: flex; align-items: center; justify-content: center; padding: 0 !important; line-height: 1 !important; }
#search span.nearByLink .mi { color: var(--color-primary); font-size: 22px; vertical-align: 0; }
#search.city-pages #primary_nav_wrap ul#huvudmeny li button .mi { vertical-align: middle; }
#primary_nav_wrap ul#huvudmeny li button .mi-close { display: none; }
#primary_nav_wrap ul#huvudmeny li button:not(.collapsed) .mi-menu { display: none; }
#primary_nav_wrap ul#huvudmeny li button:not(.collapsed) .mi-close { display: inline-block; }
.hours-layout-toggle .mi { font-size: 22px; }
/* On phones the "Göm detaljerad" pill has a 10px top margin, so the toggle is centred on the pill, not on the row */
@media (max-width: 480px) { .hours-layout-toggle { top: calc(50% + 5px); } }

/* The first two days are always open, so they have no show/hide button: only the layout toggle sits in the row, on the right */
.show_for_detail.always-open { display: flex; justify-content: flex-end; }
.show_for_detail.always-open .hours-layout-toggle { display: inline-flex; position: static; transform: none; top: auto; }

/* Show / hide buttons: the pill sits at the left of the row, the text is centred inside it */
.show_open_text, .close_text { text-align: center; }

/* "Feels like" in brackets: on its own line under the temperature in the horizontal table, after it in the vertical one */
#weather-display .vadret-en-timme li span.feels { display: block; margin: 5px 0 0; font-size: 15px; line-height: 1.1; white-space: nowrap; opacity: .7; }
#weather-display .vadret-en-timme li span.feels span { display: inline; margin: 0; font-size: inherit; line-height: inherit; }
html.hours-v #weather-display .vadret-en-timme li span.feels { display: inline; opacity: .7; white-space: nowrap; font-size: inherit; line-height: inherit; margin: 0; }
html.hours-v #weather-display .vadret-en-timme li span.feels span { display: inline; margin: 0; font-size: inherit; }

/* Show and hide buttons have exactly the same box, so the row does not jump when a day is opened or closed */
.show_open_text, .close_text { box-sizing: border-box; margin: 0; padding: 0 24px; height: 40px; line-height: 38px; width: fit-content; max-width: 100%; }
.panel-show-close > a:not(.collapsed) > .close_text { display: block; }
.show_for_detail { min-height: 40px; }
@media (max-width: 480px) {
  .show_open_text, .close_text { padding: 0 12px; height: 34px; line-height: 32px; margin: 0; }
  /* padding, not margin: a margin would collapse through the block-level link in one state and not in the other */
  .panel-title.panel-show-close { padding-top: 10px; }
  .show_for_detail { min-height: 44px; }
}

/* Hour label "02:00": the ":00" is its own span, so phones can drop it in the vertical table (the header says "Tid kl.") */
#weather-display .vadret-en-timme li.onlyTime span.mm { display: inline; margin: 0; font-size: inherit; line-height: inherit; }
html.hours-v #weather-display .vadret-en-timme li.onlyTime span.mm { display: inline; font-size: inherit; margin: 0; }
@media (max-width: 767px) {
  html.hours-v #weather-display .vadret-en-timme li.onlyTime span.mm { display: none; }
}
@media (max-width: 480px) {
  html.hours-v #weather-display .hours-head,
  html.hours-v #weather-display td.vadret-en-timme ul.tableTime { grid-template-columns: 28px 46px minmax(0,1fr) 42px 22px 24px 44px; }
}

/* Layout button: "VISA TABELL" (horizontal mode) or "ÄNDRA VY" (vertical mode) beside the icon, in the style of the show/hide pill,
   until the visitor has clicked it once (remembered in localStorage as hoursToggleSeen). After that only the round icon button remains. */
.hours-layout-toggle .tg-label { display: none; }
html:not(.toggle-seen) .hours-layout-toggle { width: auto; height: 40px; padding: 0 16px 0 18px; gap: 10px; border-radius: 30px; }
html:not(.toggle-seen) .hours-layout-toggle .tg-label {
  display: inline; font-size: 14px; line-height: 1; font-style: normal; text-transform: uppercase; white-space: nowrap;
}
html:not(.toggle-seen) .hours-layout-toggle .tg-label span { display: none; }
html:not(.toggle-seen):not(.hours-v) .hours-layout-toggle .tg-h,
html:not(.toggle-seen).hours-v .hours-layout-toggle .tg-v { display: inline; }
@media (max-width: 767px) { html:not(.toggle-seen) .hours-layout-toggle .tg-label { font-size: 12px; } }
@media (max-width: 480px) { html:not(.toggle-seen) .hours-layout-toggle { height: 34px; padding: 0 12px; gap: 8px; } }

/* Horizontal hourly table: the degree sign follows the number in the normal flow (it used to be absolutely positioned at a fixed
   offset, which left a gap after one-digit temperatures and sat too close to three-character ones like -12). The cell is a centred
   flex row, so number + degree sign are centred together whatever the length; "feels like" wraps onto its own line below. */
#weather-display .vadret-en-timme li.day-degrees { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
#weather-display .vadret-en-timme li.day-degrees span.temp_deg { display: block; margin-left: 0; }
#weather-display .vadret-en-timme li.day-degrees sup.hoursup {
  position: static; display: block; margin: 4px 0 0 3px; font-size: 22px; line-height: 1; top: auto;
}
#weather-display .vadret-en-timme li.day-degrees span.feels { flex-basis: 100%; text-align: center; }

/* Week overview. style.css hides every .forecast-table unless the viewport is exactly 80 or 250px high (rules written for the
   fixed-height widget iframes), which also hid it on ordinary pages. On place pages it is always shown. */
#weather-display11 .forecast-table { display: block; max-height: none; }

/* The hide button looks like the show button: grey border, no red (hover as well) */
.close_text { border-color: var(--color-gray-medium); color: inherit; }
.close_text:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-gray-light); text-decoration: none; }

/* Week overview card: rounded with a soft shadow (style.css only did this for body.page) */
#weather-display11 .forecast-container { border-radius: 25px; margin: 0 0 3px 0 !important; box-shadow: 1px 2px 5px 1px var(--shadow-default); }

/* Search suggestions: name and region on the left, a round country flag on the right */
.typeahead li > a { display: flex; align-items: center; gap: 12px; }
.typeahead li > a .ta-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.typeahead li > a .flag { flex: none; width: 22px; height: 22px; margin-left: auto; border-radius: 50%; box-shadow: 0 0 0 1px rgba(127, 127, 127, .35); }

/* Burger menu on mobile: the tools (notifications, theme, language) come before the link columns. */
@media (max-width: 767px) {
  #show-nav #copy-footer { display: flex; flex-direction: column; }
  #show-nav #copy-footer > .container:last-child { order: -1; width: 100%; }
  #show-nav #copy-footer .footer-tools { position: static; justify-content: flex-start; margin: 16px 0 8px; padding: 0 15px; }
}

/* The hide button's text uses the same colour as the "detailed forecast" button (the legacy rule made it red) */
.detaljerad-prognos .panel-title a, .detaljerad-prognos .panel-title a:not(.collapsed) { color: var(--color-primary); }
.detaljerad-prognos .panel-title a:hover { color: var(--color-gray-light); }

/* Phones: nudge the small weather data list (rain/wind/humidity) */
@media only screen and (max-width: 480px) {
  #weather-display .one-day .ne-vi-lf li { margin-left: 30px; margin-top: 9px; }
  #weather-display .ne-vi-lf ul { display: inline; top: -15px !important; position: relative; }
}

@media only screen and (max-width: 992px) {
  .weather-element { font-size: 120px; line-height: 160px; }
}

/* Phones: main weather icon keeps the smaller size */
@media only screen and (max-width: 480px) {
  .weather-element { font-size: 60px; line-height: 98px !important; }
}

/* whjuu logo: the circle holds a wave (SVG) instead of the "24" */
.logo-wave svg { display: block; width: 100%; height: 100%; }
@media (max-width: 767px) { #search.city-pages #logo-number.logo-wave { left: auto; } }

/* The whjuu logo, made of text (see LogoWord.astro). .lw sets the size of the big W; everything else is relative to it:
   "hjuu" in Molle at 78%, the round symbol with a Mrs Sheppards W at 85.8% (Figma: 647 and 555), a circle 0.906 of the big W. */
@font-face { font-family: "Molle"; src: url("/fonts/molle-regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Mrs Sheppards"; src: url("/fonts/mrs-sheppards-regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
.lw { isolation: isolate; display: inline-block; font-size: 1.18em; line-height: 1; white-space: nowrap; font-weight: 400; font-style: normal; }
.lw-W { display: inline-block; font-family: "Mrs Sheppards", cursive; font-size: 0.8em; line-height: 1; transform: rotate(-16deg); transform-origin: 85.8% 44.8%; margin-right: 0.1em; }
.lw-hjuu { font-family: "Molle", cursive; font-size: .784em; line-height: 1; }
.lw-uu { position: relative; display: inline-block; }
.lw-uu::before { content: ""; position: absolute; z-index: -1; left: 100%; top: 75%; width: 0.97em; height: 0.97em; margin: -.825em 0 0 -0.850em; border-radius: 50%; background: #FF611D; }
/* Home page hero: the logo 25% larger, all proportions kept (everything inside is relative to .lw) */
body.home #logo-word .lw { font-size: 1.475em; position: relative; left: 25px; } /* 25px to the right: the old logo block has a -58px left margin that left the new logo off-centre */
footer .made-in { clear: both; margin: 22px 0 6px; font-size: 13px; line-height: 1.4; text-align: left; color: var(--color-surface) !important; } /* same colour as the footer links, light and dark */
html.dark-mode footer .made-in { color: #fff !important; }

/* Home page "All the weather in one place": the text lines up with the headings (the theme indents it 25px) */
#weathertron .home-about p, .home-about .inch-divider { margin-left: 0; padding-left: 0; }

/* Country list: a round flag in front of each country name */
.lang-switch .flag { width: 20px; height: 20px; flex: none; border-radius: 50%; display: inline-block; vertical-align: middle; box-shadow: 0 0 0 1px rgba(128, 128, 128, .35); }
.lang-switch .lang-menu a { display: flex; align-items: center; gap: 10px; }
.lang-switch > summary { display: flex; align-items: center; gap: 8px; }
.lang-switch .lang-menu a > span { flex: 1; }
#copy-burger .lang-switch .lang-menu { min-width: 210px; } .lang-switch .lang-menu a > span { white-space: nowrap; }

/* World page (whjuu.com/): the country list, each pill with the round flag at the right */
#weathertron .country-list li a { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; }
#weathertron .country-list li a .flag { flex: none; width: 20px; height: 20px; border-radius: 50%; }

/* The quick buttons under the search box use the same background as the city buttons further down the page, in both themes */
#search ul.ortens-favoriter li a, #search ul.ortens-favoriter-storstad li a,
#search ul.ortens-favoriter li a:hover, #search ul.ortens-favoriter-storstad li a:hover { background: var(--color-surface); }

/* The hero image URLs carry ?v= with the first 8 characters of the file's md5: change the file, change the number (md5 public/img/hero-*.webp), and browsers fetch the new one. */
/* Home hero: the background photo and the white logo on every screen size. Small WebP for phones and tablets, the wide one from 993px (same breakpoint as the layout). */
body.home #search { background: var(--color-primary) url(/img/hero-light-mobile.webp?v=8790c9bb) no-repeat scroll center 0 / cover; }
html.dark-mode body.home #search { background: var(--color-climate-blue-light) url(/img/hero-dark-mobile.webp?v=f7315ace) no-repeat scroll center 0 / cover !important; }
@media (min-width: 993px) {
  body.home #search { background-image: url(/img/hero-light-desktop.webp?v=725df300); }
  html.dark-mode body.home #search { background-image: url(/img/hero-dark-desktop.webp?v=0820d9a3) !important; }
}
.home #logo-word a, .home .logo-word a { color: #fff; }

#search .hero-tools .lang-switch , #weathertron .near-you-tools .lang-switch{ position: relative; z-index: 20; }
#search .hero-tools .lang-switch > summary , #weathertron .near-you-tools .lang-switch > summary{
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 18px; border: 1px solid var(--color-gray-medium);
  background: var(--color-surface); color: var(--color-details); font-size: 15px; line-height: 1.2;
  box-shadow: 0 1px 3px var(--shadow-default); user-select: none; -webkit-user-select: none;
}
#search .hero-tools .lang-switch > summary::-webkit-details-marker , #weathertron .near-you-tools .lang-switch > summary::-webkit-details-marker{ display: none; }
#search .hero-tools .lang-switch > summary:hover, #search .hero-tools .lang-switch[open] > summary , #weathertron .near-you-tools .lang-switch > summary:hover, #weathertron .near-you-tools .lang-switch[open] > summary{ border-color: var(--color-primary); }
#search .hero-tools .lang-switch > summary:focus-visible , #weathertron .near-you-tools .lang-switch > summary:focus-visible{ outline: 2px solid var(--color-primary); outline-offset: 2px; }
#search .hero-tools .lang-switch .mi-language , #weathertron .near-you-tools .lang-switch .mi-language{ color: var(--color-primary); }
#search .hero-tools .lang-switch .lang-caret , #weathertron .near-you-tools .lang-switch .lang-caret{ margin-left: 2px; transition: transform .15s; }
#search .hero-tools .lang-switch[open] .lang-caret , #weathertron .near-you-tools .lang-switch[open] .lang-caret{ transform: rotate(180deg); }
#search .hero-tools .lang-switch .lang-menu , #weathertron .near-you-tools .lang-switch .lang-menu{
  list-style: none; margin: 0; padding: 6px; position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 170px;
  background: var(--color-surface); border: 1px solid var(--color-gray-medium); border-radius: 18px;
  box-shadow: 0 8px 24px var(--shadow-default);
}
#search .hero-tools .lang-switch .lang-menu li , #weathertron .near-you-tools .lang-switch .lang-menu li{ display: block !important; float: none; width: 100%; margin: 0; padding: 0; line-height: 1.3 !important; }
#search .hero-tools .lang-switch .lang-menu li::before , #weathertron .near-you-tools .lang-switch .lang-menu li::before{ content: none; }
/* The theme forces footer links to white with !important; the menu has its own surface, so it needs its own colours. */
#search .hero-tools .lang-switch .lang-menu a , #weathertron .near-you-tools .lang-switch .lang-menu a{
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 14px; border-radius: 12px;
  color: var(--color-details) !important; text-decoration: none; border: 0; font-size: 15px;
}
#search .hero-tools .lang-switch .lang-menu a:hover, #search .hero-tools .lang-switch .lang-menu a:focus-visible , #weathertron .near-you-tools .lang-switch .lang-menu a:hover, #weathertron .near-you-tools .lang-switch .lang-menu a:focus-visible{
  background: var(--color-gray-light); color: var(--color-primary) !important;
}
#search .hero-tools .lang-switch .lang-menu a[aria-current="true"] , #weathertron .near-you-tools .lang-switch .lang-menu a[aria-current="true"]{ font-weight: 700; }
#search .hero-tools .lang-switch .lang-menu .mi-check , #weathertron .near-you-tools .lang-switch .lang-menu .mi-check{ color: var(--color-primary); }

/* The theme ships a trimmed FontAwesome; these two glyphs (globe, check) exist in the font but had no class. */

/* Breadcrumbs on place and hub pages (outside Swedish): links in the strong text colour, the current page in gray. */
.breadcrumbs {
  font-size: 13px;
  margin: 12px 0 0;
  color: var(--color-gray-dark);
}
.breadcrumbs a { color: var(--color-details); text-decoration: none; border: 0; }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .crumb-sep { margin: 0 8px; opacity: .6; }
.breadcrumbs .crumb-current { color: var(--color-gray-dark); }
.hub-count { opacity: .6; font-size: .85em; }

/* Current temperature, right-aligned in the place pills. Added after load, so it never shifts the layout (floats). */
/* The name stays on one line; a long name slides behind the temperature and fades out in the pill's own colour. */
.home-top-list li a, .weather-nearby-cities-footer li a { position: relative; overflow: hidden; white-space: nowrap; }
.home-top-list li a .pill-temp, .weather-nearby-cities-footer li a .pill-temp {
  position: absolute; top: 0; right: 0; bottom: 0; display: flex; align-items: center; padding: 0 15px 0 28px;
  background: linear-gradient(to right, transparent, var(--color-surface) 24px); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.home-top-list li a .pill-temp > * { opacity: .9; }

/* Neutral weather icon in front of the pill temperature: follows the text colour, so light in dark mode and dark in light mode. */
.pill-temp .pill-icon { color: inherit; margin-right: 8px; font-size: 1.05em; vertical-align: -1px; }

/* Footer tools on the logo row, right-aligned: [Install app] [sun/moon switch] [language] */
#search .hero-tools .install-app, #search .hero-tools .theme-switch, #search .hero-tools .time-switch , #search .unit-apinames .time-switch{
  border: 1px solid var(--color-gray-medium); background: var(--color-surface); color: var(--color-details);
  border-radius: 18px; box-shadow: 0 1px 3px var(--shadow-default); cursor: pointer; font-size: 15px; line-height: 1.2;
}
#search .hero-tools .install-app { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; }
#search .hero-tools .install-app[hidden] { display: none; }
#search .hero-tools .install-app .mi-download { color: var(--color-primary); }
#search .hero-tools .install-app:hover, #search .hero-tools .theme-switch:hover, #search .hero-tools .time-switch:hover , #search .unit-apinames .time-switch:hover{ border-color: var(--color-primary); }
#search .hero-tools .install-app:focus-visible, #search .hero-tools .theme-switch:focus-visible, #search .hero-tools .time-switch:focus-visible , #search .unit-apinames .time-switch:focus-visible{ outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Sun / moon switch: the knob slides under the icon of the active theme. */
#search .hero-tools .theme-switch, #search .hero-tools .time-switch , #search .unit-apinames .time-switch{ position: relative; width: 72px; height: 38px; padding: 0; display: inline-block; }
#search .hero-tools .theme-switch .knob, #search .hero-tools .time-switch .knob , #search .unit-apinames .time-switch .knob{ position: absolute; top: 3px; left: 3px; width: 30px; height: 30px; border-radius: 50%; background: var(--color-primary); transition: transform .2s ease; }
html.dark-mode #search .hero-tools .theme-switch .knob, html.t12 #search .hero-tools .time-switch .knob , html.t12 #search .unit-apinames .time-switch .knob{ transform: translateX(34px); }
#search .hero-tools .theme-switch .mi, #search .hero-tools .time-switch .tl , #search .unit-apinames .time-switch .tl{ position: absolute; top: 50%; margin-top: -9px; width: 18px; height: 18px; text-align: center; font-size: 18px; color: var(--color-gray-dark); transition: color .2s; }
#search .hero-tools .theme-switch .mi-light_mode, #search .hero-tools .time-switch .tl-24 , #search .unit-apinames .time-switch .tl-24{ left: 9px; color: var(--color-surface); }
#search .hero-tools .theme-switch .mi-dark_mode, #search .hero-tools .time-switch .tl-12 , #search .unit-apinames .time-switch .tl-12{ right: 9px; }
html.dark-mode #search .hero-tools .theme-switch .mi-light_mode, html.t12 #search .hero-tools .time-switch .tl-24 , html.t12 #search .unit-apinames .time-switch .tl-24{ color: var(--color-gray-dark); }
html.dark-mode #search .hero-tools .theme-switch .mi-dark_mode, html.t12 #search .hero-tools .time-switch .tl-12 , html.t12 #search .unit-apinames .time-switch .tl-12{ color: var(--color-surface); }

/* iOS has no install prompt: a small hint card explains Add to Home Screen. */
#search .hero-tools .install-hint { position: absolute; right: 0; bottom: calc(100% + 8px); width: 260px; padding: 14px 16px; border-radius: 18px; background: var(--color-surface); color: var(--color-details); border: 1px solid var(--color-gray-medium); box-shadow: 0 8px 24px var(--shadow-default); z-index: 30; }
#search .hero-tools .install-hint[hidden] { display: none; }
#search .hero-tools .install-hint p { margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
#search .hero-tools .install-hint button { border: 0; background: transparent; color: var(--color-primary); font-size: 14px; cursor: pointer; padding: 0; }

/* "Warn me about weather warnings" button, in the footer tools next to "Install as app" */
#search .hero-tools .warn-notify { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--color-gray-medium); background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
#search .hero-tools .warn-notify[hidden] { display: none; }
#search .hero-tools .warn-notify .mi-notifications { color: var(--color-primary); }
#search .hero-tools .warn-notify:hover, #search .hero-tools .warn-notify.is-on { border-color: var(--color-primary); }
#search .hero-tools .warn-notify:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Active SMHI warnings under the place heading */
.active-warnings { margin: 6px 0 14px; }
.active-warnings ul { list-style: none; margin: 0; padding: 0; }
.active-warnings li { padding: 9px 14px; margin-bottom: 6px; border-radius: 8px; border-left: 6px solid #f5c400; background: var(--color-surface, rgba(128,128,128,.12)); }
.active-warnings li.warn-orange { border-left-color: #ff8a00; }
.active-warnings li.warn-red { border-left-color: #d90429; }
.active-warnings .warn-area { opacity: .7; }

/* Phones: the footer tools sit left-aligned in their own row under the logo; the language menu opens upwards from the left edge */

/* Home hero: the footer's tools (install app, light/dark switch, country) under the search box, centred; menus open downwards */
#search .hero-tools { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 15px; margin: 18px 0 0; z-index: 20; }
#search .hero-tools .lang-switch .lang-menu , #weathertron .near-you-tools .lang-switch .lang-menu{ bottom: auto; top: calc(100% + 8px); right: auto; left: 50%; transform: translateX(-50%); text-align: left; }
#search .hero-tools .install-hint { bottom: auto; top: calc(100% + 8px); right: auto; left: 50%; transform: translateX(-50%); text-align: left; }

/* Country arrow: closed it points down in the hero and in the burger menu (the list opens downwards), up in the footer (it opens upwards); open, it turns the other way */
#search .hero-tools .lang-switch .lang-caret, #show-nav #copy-footer .lang-switch .lang-caret , #weathertron .near-you-tools .lang-switch .lang-caret{ transform: rotate(180deg); }
#search .hero-tools .lang-switch[open] .lang-caret, #show-nav #copy-footer .lang-switch[open] .lang-caret , #weathertron .near-you-tools .lang-switch[open] .lang-caret{ transform: rotate(0deg); }

/* The install button, the light/dark switch and the country button are the same height (38px) */
#copy-burger .install-app, #search .hero-tools .install-app, #show-nav #copy-footer .install-app,
footer #copy-burger .lang-switch > summary, #search .hero-tools .lang-switch > summary, #show-nav #copy-footer .lang-switch > summary , #weathertron .near-you-tools .lang-switch > summary{ box-sizing: border-box; height: 38px; padding-top: 0; padding-bottom: 0; }

/* Phones and tablets: the hero tools stay inside the width of the search box (the row they sit in has -15px margins), smaller so they fit on one line,
   and the "Near you" block keeps clear of the curve under the hero */
@media (max-width: 992px) {
  #search .hero-tools { box-sizing: border-box; width: 100%; padding: 0 15px; gap: 15px; margin-bottom: 14px; }
  #search .hero-tools .install-app { padding-left: 12px; padding-right: 12px; font-size: 14px; gap: 6px; min-width: 0; }
  #search .hero-tools .lang-switch > summary , #weathertron .near-you-tools .lang-switch > summary{ padding-left: 12px; padding-right: 12px; font-size: 14px; gap: 6px; }
  .near-you { margin-top: 34px; }
}

/* City buttons get the same thin border as the other buttons */
.home-top-list ul li a { border: 1px solid var(--color-gray-medium); }

/* The curve under the hero is an SVG without a size of its own. The light theme's rule for phones did not set background-size, so Safari on iPhone drew it at a
   fixed width and it covered only part of the page. The dark theme's rule always had it. Now every case stretches the curve over the full width. */
section div.smile, html.dark-mode section div.smile { background-size: 100% 100%; background-repeat: no-repeat; }

/* 481-767px: the container has 15px padding here (it has none up to 480px), and the home page's rows sit inside each other, each pulling 15px outwards.
   Together that made the page 30px wider than the screen. The outer row stops pulling, so the pills and text line up with the screen edges like on phones. */
@media (min-width: 481px) and (max-width: 767px) {
  #weathertron > .row { margin-left: 0; margin-right: 0; }
}

/* "Add to Home Screen" steps (iPhone): a title and a numbered list with the icons to look for, in the text colour */
.install-hint .install-title { margin: 0 0 8px; font-size: 15px; font-weight: 700 !important; }
.install-hint .install-steps { margin: 0 0 10px; padding: 0 0 0 20px; display: block; list-style: decimal outside !important; }
.install-hint .install-steps li { display: list-item !important; list-style: decimal outside !important; float: none; width: auto; margin: 0 0 8px; font-size: 14px; line-height: 1.45; padding-left: 2px; }
.install-hint .install-ic { display: inline-block; width: 18px !important; height: 18px !important; min-width: 18px; margin: 0 1px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* The tools under the search box and the "Exact location" button look like the city buttons: same height (46px), radius, font and hover (shadow, underlined text) */
#search .hero-tools .install-app, #search .hero-tools .lang-switch > summary, .near-you-exact , #weathertron .near-you-tools .lang-switch > summary{
  box-sizing: border-box; height: 46px; padding: 0 18px; border-radius: 20px; font-size: 16px; line-height: 1.2; gap: 10px; box-shadow: none;
}
#search .hero-tools .theme-switch, #search .hero-tools .time-switch , #search .unit-apinames .time-switch{ box-sizing: border-box; width: 84px; height: 46px; border-radius: 23px; box-shadow: none; }
#search .hero-tools .theme-switch .knob, #search .hero-tools .time-switch .knob , #search .unit-apinames .time-switch .knob{ top: 3px; left: 3px; width: 38px; height: 38px; }
html.dark-mode #search .hero-tools .theme-switch .knob, html.t12 #search .hero-tools .time-switch .knob , html.t12 #search .unit-apinames .time-switch .knob{ transform: translateX(38px); }
#search .hero-tools .theme-switch .mi-light_mode, #search .hero-tools .time-switch .tl-24 , #search .unit-apinames .time-switch .tl-24{ left: 14px; }
#search .hero-tools .theme-switch .mi-dark_mode, #search .hero-tools .time-switch .tl-12 , #search .unit-apinames .time-switch .tl-12{ right: 14px; }
#search .hero-tools .install-app:hover, #search .hero-tools .theme-switch:hover, #search .hero-tools .lang-switch > summary:hover, #search .hero-tools .lang-switch[open] > summary, .near-you-exact:hover, #search .hero-tools .time-switch:hover , #weathertron .near-you-tools .lang-switch > summary:hover, #weathertron .near-you-tools .lang-switch[open] > summary, #search .unit-apinames .time-switch:hover{
  border-color: var(--color-gray-medium); box-shadow: 4px 3px 7px var(--color-gray-medium);
}
#search .hero-tools .install-app:hover span, #search .hero-tools .lang-switch > summary:hover .lang-current, .near-you-exact:hover span , #weathertron .near-you-tools .lang-switch > summary:hover .lang-current{ text-decoration: underline; }
@media (max-width: 992px) {
  #search .hero-tools .install-app, #search .hero-tools .lang-switch > summary , #weathertron .near-you-tools .lang-switch > summary{ font-size: 16px; padding-left: 16px; padding-right: 16px; }
}

/* The "add a web app" card floats at the bottom of the screen, by the browser's address bar: as wide as the page content (15px from each side), with a close cross in its top right corner */
#search .hero-tools .install-hint, #copy-burger .install-hint, .install-hint {
  position: fixed !important; top: auto !important; right: auto !important; left: 50% !important; transform: translateX(-50%) !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 84px) !important; width: calc(100vw - 30px) !important; max-width: 720px; box-sizing: border-box; z-index: 2000 !important;
  padding: 18px 54px 16px 18px; text-align: left; box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
}
.install-hint[hidden] { display: none !important; }
.install-hint .install-nb { white-space: nowrap; }
.install-hint button.install-hint-close { position: absolute !important; top: 10px !important; right: 10px !important; left: auto !important; bottom: auto !important; width: 40px !important; height: 40px !important; margin: 0 !important; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 50%; color: var(--color-details) !important; background: transparent; }
.install-hint button.install-hint-close .mi { width: 26px; height: 26px; font-size: 26px; }
.install-hint button.install-hint-close:hover { background: var(--color-gray-light); }

/* Hover on the tools under the search box: no see-through (the old "#search button:hover" rule faded them) */
#search .hero-tools button:hover, #search .hero-tools .lang-switch > summary:hover , #weathertron .near-you-tools .lang-switch > summary:hover{ opacity: 1 !important; }
/* (the hover shadow is the same as the city buttons': 4px 3px 7px var(--color-gray-medium), see above) */
.install-hint .install-steps, .install-hint .install-steps li { text-align: left !important; text-indent: 0; word-spacing: normal; letter-spacing: normal; }
.install-hint .install-steps li .install-nb { display: inline-block; padding: 0; margin: 0; }

/* The search box keeps its rounded corners when it gets focus; the bottom ones are squared off only while the suggestion list is open under it */
#hitta-vader.form-control:focus { border-radius: 12px; }
#search-transparent-border:has(ul.typeahead.is-open) #hitta-vader.form-control:focus { border-radius: 12px 12px 0 0; }

/* The hover shadow fades in and out (like on the light/dark switch) on the country button, "Exact location" and the city buttons */
#search .hero-tools .lang-switch > summary, .near-you-exact, .home-top-list ul li a , #weathertron .near-you-tools .lang-switch > summary{ transition: box-shadow .3s ease-in-out, border-color .3s ease-in-out; }

/* World page: the note under "Choose your country" */
#weathertron .world-note { margin: 0 0 10px !important; padding: 0 !important; max-width: none; text-align: left !important; text-indent: 0; font-size: 15px; line-height: 1.5; opacity: .8; }

/* Home page lists (every site but Väder24): the country list in four columns over the full width, then Europe and the world regions in a row of columns */
.home-top-list.country-grid ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; margin: 0; padding: 0; }
@media (min-width: 768px) {
  .home-top-list.country-grid ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* "All the weather in one place": more room around the heading and text so they clear the card's rounded corners. The column itself cannot take padding ("#weathertron div.fullbredd" sets it to 0 with !important), so the row inside it does. */
.blue-bg .home-about > .row { padding-top: 32px; padding-bottom: 12px; }
@media (max-width: 1199px) {
  .blue-bg .home-about > .row { padding: 40px 30px 12px; }
}

/* Nearby places, hub lists and the sitemap use the same grid and pill spacing as "Near you": no extra column padding, half the pill margin on each side */
.weather-nearby-cities-footer.country-grid li a { margin: 7.5px 0; }
/* These sit in the narrower content column, so they stay at two columns */
@media (min-width: 768px) { .weather-nearby-cities-footer.country-grid ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The nearby list sits in a column that already has the page padding, so its own column padding went on top and pushed pills and heading in by 15px more than the text */
.weather-nearby-cities-footer.country-grid { margin-left: 0; margin-right: 0; }
.weather-nearby-cities-footer.country-grid > .col-xs-12 { padding-left: 0; padding-right: 0; }

/* Light-mode top bar: the "uu" is orange like the ball behind it, so it disappears. A hard-stop radial gradient clipped to the text (same circle as .lw-uu::before: 0.97em across, centre 0.365em in from the right edge and 0.34em above 75% of the height) paints it white over the ball and keeps the usual orange outside it. */
html:not(.dark-mode) body:not(.home) #logo-word .lw-uu {
  background-image: radial-gradient(circle at calc(100% - .365em) calc(75% - .34em), #fff 0, #fff .47em, #FF611D calc(.47em + 1px));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Grid lists have no margin collapsing, so 15px pill margins gave 30px gaps. Same 7.5px as "Near you" everywhere. */
.home-top-list.country-grid li a { margin: 7.5px 0; }

/* "Near you" intro: a little larger, with more contrast (darker on the light theme, lighter on the dark theme) */
.near-you .near-you-note { font-size: 1em !important; opacity: 1 !important; color: var(--color-gray-dark); }
html:not(.dark-mode) .near-you .near-you-note { color: #3a4152; }
html.dark-mode .near-you .near-you-note { color: #d6d9e2; }

/* The theme switch, install button and country selector in the footer and the burger menu look and behave like the ones in the hero */
footer #copy-burger .install-app, footer #copy-burger .lang-switch > summary {
  box-sizing: border-box; height: 46px; padding: 0 18px; border-radius: 20px; font-size: 16px; line-height: 1.2; gap: 10px; box-shadow: none;
}
footer #copy-burger .theme-switch, footer #copy-burger .time-switch { box-sizing: border-box; width: 84px; height: 46px; border-radius: 23px; box-shadow: none; }
footer #copy-burger .theme-switch .knob, footer #copy-burger .time-switch .knob { top: 3px; left: 3px; width: 38px; height: 38px; }
html.dark-mode footer #copy-burger .theme-switch .knob, html.t12 footer #copy-burger .time-switch .knob { transform: translateX(38px); }
footer #copy-burger .theme-switch .mi-light_mode, footer #copy-burger .time-switch .tl-24 { left: 14px; }
footer #copy-burger .theme-switch .mi-dark_mode, footer #copy-burger .time-switch .tl-12 { right: 14px; }
footer #copy-burger .install-app:hover, footer #copy-burger .theme-switch:hover, footer #copy-burger .lang-switch > summary:hover, footer #copy-burger .lang-switch[open] > summary, footer #copy-burger .time-switch:hover {
  border-color: var(--color-gray-medium); box-shadow: 4px 3px 7px var(--color-gray-medium);
}
footer #copy-burger .install-app:hover span, footer #copy-burger .lang-switch > summary:hover .lang-current { text-decoration: underline; }
@media (max-width: 992px) {
  footer #copy-burger .install-app, footer #copy-burger .lang-switch > summary { font-size: 16px; padding-left: 16px; padding-right: 16px; }
}

footer #copy-burger .lang-switch > summary, footer #copy-burger .install-app, footer #copy-burger .theme-switch, footer #copy-burger .time-switch { transition: box-shadow .3s ease-in-out, border-color .3s ease-in-out; }
#show-nav #copy-footer .install-app, #show-nav #copy-footer .lang-switch > summary {
  box-sizing: border-box; height: 46px; padding: 0 18px; border-radius: 20px; font-size: 16px; line-height: 1.2; gap: 10px; box-shadow: none;
}
#show-nav #copy-footer .theme-switch, #show-nav #copy-footer .time-switch { box-sizing: border-box; width: 84px; height: 46px; border-radius: 23px; box-shadow: none; }
#show-nav #copy-footer .theme-switch .knob, #show-nav #copy-footer .time-switch .knob { top: 3px; left: 3px; width: 38px; height: 38px; }
html.dark-mode #show-nav #copy-footer .theme-switch .knob, html.t12 #show-nav #copy-footer .time-switch .knob { transform: translateX(38px); }
#show-nav #copy-footer .theme-switch .mi-light_mode, #show-nav #copy-footer .time-switch .tl-24 { left: 14px; }
#show-nav #copy-footer .theme-switch .mi-dark_mode, #show-nav #copy-footer .time-switch .tl-12 { right: 14px; }
#show-nav #copy-footer .install-app:hover, #show-nav #copy-footer .theme-switch:hover, #show-nav #copy-footer .lang-switch > summary:hover, #show-nav #copy-footer .lang-switch[open] > summary, #show-nav #copy-footer .time-switch:hover {
  border-color: var(--color-gray-medium); box-shadow: 4px 3px 7px var(--color-gray-medium);
}
#show-nav #copy-footer .install-app:hover span, #show-nav #copy-footer .lang-switch > summary:hover .lang-current { text-decoration: underline; }
@media (max-width: 992px) {
  #show-nav #copy-footer .install-app, #show-nav #copy-footer .lang-switch > summary { font-size: 16px; padding-left: 16px; padding-right: 16px; }
}

#show-nav #copy-footer .lang-switch > summary, #show-nav #copy-footer .install-app, #show-nav #copy-footer .theme-switch, #show-nav #copy-footer .time-switch { transition: box-shadow .3s ease-in-out, border-color .3s ease-in-out; }

/* 404 page */
.not-found-hero { text-align: center; padding: 0; }
#weathertron .not-found-hero p.not-found-code { font-family: "Molle", cursive; font-weight: 400; font-size: clamp(120px, 34vw, 280px); line-height: 1.3 !important; margin: 0 0 10px; color: var(--color-primary); }
.not-found-hero .not-found-text { font-size: 1.3em; font-weight: 400; margin: 0 0 10px; color: var(--color-gray-dark); }


/* 12 / 24 hour switch: same pill as the theme switch, the labels are the numbers */
.time-switch .tl { font-size: 13px !important; font-weight: 700; font-style: normal; line-height: 18px; font-family: inherit; letter-spacing: 0; }

/* Type: Lato Light for every h1 and the calendar month, one h1 size (the place page's) and one h2 size (20px) on every page.
   Raleway is kept only for the Väder24 wordmark on the Swedish site, so no other site ever downloads it. */
html[data-site="sv"] #logo-word, html[data-site="sv"] .logo-word { font-family: ralewayregular, arial, verdana, sans-serif; }
body h1, body .h1, body #weather-header h1, body .header-for.yr h1, body .header-for.smhi h1, body h1#omoss { font-family: "LatoLight", Arial, "Helvetica Neue", Helvetica, sans-serif !important; font-size: 38px !important; font-weight: 500 !important; line-height: 1.2 !important; }
body h2, body .near-you .near-you-title, body .one-day h2 { font-size: 20px !important; line-height: 1.25 !important; }
body .one-day .calendar-date p.small { font-family: "LatoLight", Arial, sans-serif; }
@media (max-width: 1200px) { body h1, body .h1, body #weather-header h1, body .header-for.yr h1, body .header-for.smhi h1, body h1#omoss { font-size: 32px !important; } }
@media (max-width: 480px) { body h1, body .h1, body #weather-header h1, body .header-for.yr h1, body .header-for.smhi h1, body h1#omoss { font-size: 26px !important; } }

/* Time switch labels read "24h" and "12h": centred over the knob positions, smaller type than the theme icons */
.time-switch .tl { width: 38px !important; font-size: 13px !important; font-weight: 600; line-height: 18px; letter-spacing: 0; }
.time-switch .tl-24 { left: 3px !important; }
.time-switch .tl-12 { right: 3px !important; }
#copy-burger .time-switch .tl, #show-nav #copy-footer .time-switch .tl { width: 30px !important; }

/* °C / °F switch: same pill as the 24h / 12h one, driven by html.fahr instead of html.t12 */
.unit-switch.time-switch .knob { transform: none !important; }
html.fahr .unit-switch.time-switch .knob { transform: translateX(34px) !important; }
html.fahr #search .hero-tools .unit-switch.time-switch .knob, html.fahr footer #copy-burger .unit-switch.time-switch .knob , html.fahr #search .unit-apinames .unit-switch.time-switch .knob{ transform: translateX(38px) !important; }
.unit-switch.time-switch .tl-24 { color: var(--color-surface) !important; }
.unit-switch.time-switch .tl-12 { color: var(--color-gray-dark) !important; }
html.fahr .unit-switch.time-switch .tl-24 { color: var(--color-gray-dark) !important; }
html.fahr .unit-switch.time-switch .tl-12 { color: var(--color-surface) !important; }

/* Country selector under "Near you", to the right of the exact-location button: opens downwards, aligned to the right edge */
#weathertron .near-you-tools .lang-switch .lang-menu { left: auto; right: 0; transform: none; text-align: left; }
@media (min-width: 768px) { #weathertron .near-you .near-you-tools .lang-switch { position: relative; top: 8px; } }

/* AM / PM next to the sunrise and sunset times and in the hourly table */
@media (min-width: 768px) {
  body span.am-pm-sunoclock { font-size: 11px; position: absolute; margin: 24px -18px; }
}
@media (max-width: 767px) {
  body span.am-pm-sunoclock { font-size: 11px; margin: 0 0 0 2px; }
}
html.t12 body #weather-display .vadret-en-timme li.onlyTime span.mm { font-size: 11px !important; margin: 0 0 0 2px !important; }

@media only screen and (max-width: 992px) {
  #search { margin: 0 auto; padding: 0 0 30px; }
}

/* "Exact location" and the country selector sit under the four nearby places, one column each, same width as the place buttons */
.near-you .near-you-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; margin: 7.5px 0 0; align-items: center; }
@media (min-width: 768px) { .near-you .near-you-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.near-you .near-you-tools .near-you-exact { grid-column: 1; width: 100%; box-sizing: border-box; justify-content: center; position: static; top: auto; margin: 7.5px 0; }
.near-you .near-you-tools .lang-switch { grid-column: 2; position: relative; top: 0; margin: 7.5px 0; }
.near-you .near-you-tools .lang-switch:only-child { grid-column: 1; }
.near-you .near-you-tools .lang-switch > summary { width: 100%; box-sizing: border-box; justify-content: center; }
#weathertron .near-you .near-you-tools .lang-switch { position: relative; top: 0; }
#weathertron .near-you-tools .lang-switch .lang-menu { left: 0; right: auto; min-width: 100%; transform: none; }

@media (max-width: 992px) {
  #weathertron .near-you.near-you { margin-top: 12px; }
}
@media (max-width: 767px) {
  .blue-bg .home-about > .row { padding: 40px 15px 12px; }
}

/* °C / °F in the slim header of place pages: the same switch as everywhere else (the rules of "#search .hero-tools" are repeated for ".unit-apinames" below). The old C / F radio buttons stay in the page for the script, but are not shown. */
#search.city-pages .apinames.unit-apinames { background: transparent; box-shadow: none; overflow: visible; width: 84px; height: 46px; border-radius: 23px; }
#search .unit-apinames > label { display: none; }
#search .apinames.unit-apinames > label { display: none !important; }
#search .apinames.unit-apinames { white-space: nowrap; }
