/*
Theme Name: Deosil Pastel Literary
Description: Standalone pastel, text-forward theme for Deosil. 3-column masonry reframed as an all-text literary blog — warm paper, alternating pastel cards, serif type, soft ink, 96px featured-image kicker thumbs. No parent theme required.
Version: 2.0.5
Author: Mark W. Law / Deosil
Text Domain: deosil-pastel-literary
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================================
   1. Palette & Type — pastel literary
   ============================================================ */
:root {
  --paper:        #fdf6ee;  /* warm paper */
  --paper-2:      #fffcf7;
  --ink:          #2e2836;  /* darker plum-ink for contrast */
  --ink-soft:     #4f4659;
  --ink-faint:    #7a6e85;
  --line:         #dccbb8;
  --rose:         #b56a82;
  --rose-deep:    #8f4f63;
  --indigo:       #6376b8;  /* nod to indigoblues.ca */
  --indigo-deep:  #42528a;
  --sage:         #739c82;

  /* Richer pastels — picked up a notch from v1.0 */
  --card-rose:    #f5b8a6;
  --card-butter:  #ffe08a;
  --card-mint:    #b8dfc9;
  --card-blue:    #b9d2ee;
  --card-lilac:   #d5c2ec;
  --card-peach:   #ffbfa3;

  --serif-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --serif-body:    "Source Serif 4", "Crimson Pro", Georgia, "Times New Roman", serif;

  --radius: 10px;
  --shadow-soft: 0 2px 14px rgba(61,53,66,.07), 0 1px 3px rgba(61,53,66,.06);
  --shadow-lift: 0 8px 28px rgba(61,53,66,.12), 0 2px 6px rgba(61,53,66,.08);
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body, body.custom-background {
  background-color: var(--paper) !important;
  background-image: none !important; /* remove dark photo 121.jpg */
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #e89db0; color: #fff; }

h1, h2, h3, h4, h5, h6,
.entry-title, .site-title {
  font-family: var(--serif-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: var(--indigo-deep); text-decoration-color: #c9d3e8; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--rose-deep); text-decoration-color: var(--rose); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }

p { margin: 0 0 1.4em; }
img { border-radius: 6px; }

/* ============================================================
   2. Header — light, literary masthead
   ============================================================ */
.header-top, .site-info, .footer-widgets {
  background: var(--paper) !important;
  color: var(--ink-soft) !important;
  border-bottom: 1px solid var(--line);
}
.header-top { font-size: 13px; letter-spacing: .06em; }
.footer-widgets { border-top: 1px solid var(--line); border-bottom: none; }

#masthead, .site-header { background: transparent; }
.site-branding { padding-top: 2rem; padding-bottom: 1.5rem; text-align: center; max-width: 1240px; margin-inline: auto; }
.site-branding-logo { text-align: center; margin: 0 auto 1rem; width: 140px; }
.site-branding-logo .custom-logo-link { display: inline-block; }
.site-branding-logo img {
  width: 140px; height: 140px; max-width: 140px;
  object-fit: cover; object-position: center;
  display: block; margin: 0 auto;
  border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow-soft);
}

/* Tagline under logo — set in Appearance > Customize > Site Identity */
.site-description {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  text-align: center;
}

/* Nav: was rgba(35,30,26,.55) dark — now a pastel wash.
   Header/nav sit on a high stacking layer so dropdowns render
   OVER the masonry cards (cards create stacking contexts on hover). */
#header-cont, #masthead, .site-header {
  position: relative;
  z-index: 1000;
}
.navigation-menu, .nav-menu {
  background: rgba(255,252,247,.92) !important;
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1001;
}
.navigation-menu .container { max-width: 1100px; }
.nav-menu a {
  color: var(--ink) !important;
  font-family: var(--serif-body);
  font-size: .82rem;           /* was .95rem — 8 top-level items filled the bar */
  letter-spacing: .02em;
  text-transform: none;
  padding: .65em .6em;
  line-height: 1.4;
  white-space: nowrap;
}
.nav-menu a .dashicons { padding-left: .35em; font-size: .8em; }
.nav-menu a:hover { color: var(--rose-deep) !important; background: #fff6f0; }
.nav-menu ul.sub-menu {
  background: var(--paper-2) !important;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  border-radius: 0 0 8px 8px;
  z-index: 1002;
}
.nav-menu ul.sub-menu a { padding: .5em .8em; font-size: .85rem; white-space: normal; }

/* ============================================================
   3. Masonry grid — keep columns-3, make it literary
   The parent uses .blog-archive.columns-3 article { width:33.33% }
   We keep that, but switch to CSS columns for true masonry
   (varied heights, no row gaps) on desktop.
   ============================================================ */
#content-wrap, .container { max-width: 1240px; margin-inline: auto; padding-inline: 1.25rem; }
#content-wrap { margin-top: 1.75rem; } /* breathing room between nav and first cards */
.deosil-single-layout { padding-top: 2.5rem; }

.blog-archive.columns-3 {
  column-count: 3;
  column-gap: 1.75rem;
  display: block;
  width: 100%;
}
.blog-archive.columns-3 article {
  display: block;              /* was inline-block: shrank to text width, left-justified */
  width: 100%;
  break-inside: avoid;
  margin-bottom: 1.75rem;
}

@media (max-width: 1024px) { .blog-archive.columns-3 { column-count: 2; } }
@media (max-width: 640px)  { .blog-archive.columns-3 { column-count: 1; } }

/* The card itself — kept on a low stacking layer so the
   header/nav dropdowns always paint over the masonry */
.blog-archive, .blog-archive article { position: relative; z-index: 0; }
.blog-post-item {
  position: relative;
  z-index: 0;
  isolation: isolate;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-post-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); z-index: 1; }

/* Alternate pastel tints — 6-card cycle, richer in v1.1.
   Colour sits at the top of the card and fades to paper-white
   by ~38% so body text always sits on a light ground. */
.blog-archive.columns-3 article:nth-child(6n+1) .blog-post-item { background: linear-gradient(180deg, var(--card-rose),    #fff 38%); border-top: 3px solid var(--rose); }
.blog-archive.columns-3 article:nth-child(6n+2) .blog-post-item { background: linear-gradient(180deg, var(--card-butter),  #fff 38%); border-top: 3px solid #e0a800; }
.blog-archive.columns-3 article:nth-child(6n+3) .blog-post-item { background: linear-gradient(180deg, var(--card-mint),    #fff 38%); border-top: 3px solid var(--sage); }
.blog-archive.columns-3 article:nth-child(6n+4) .blog-post-item { background: linear-gradient(180deg, var(--card-blue),    #fff 38%); border-top: 3px solid var(--indigo); }
.blog-archive.columns-3 article:nth-child(6n+5) .blog-post-item { background: linear-gradient(180deg, var(--card-lilac),   #fff 38%); border-top: 3px solid #9a7bc0; }
.blog-archive.columns-3 article:nth-child(6n+6) .blog-post-item { background: linear-gradient(180deg, var(--card-peach),   #fff 38%); border-top: 3px solid #e07a4a; }

.entry-container { padding: 1.4rem 1.4rem 1.6rem; }

/* Text-only cards (no featured image): a literary fleuron
   in place of the thumbnail kicker, so the grid still reads evenly */
.blog-archive.columns-3 article:not(:has(.featured-image)) .entry-container::before {
  content: "❦";
  display: block;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--rose-deep);
  margin-bottom: .5rem;
}

/* Categories: small caps, the literary catalogue feel */
.cat-links {
  display: block;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.cat-links a { color: var(--rose-deep) !important; text-decoration: none; }
.cat-links a + a::before { content: " · "; color: var(--ink-faint); }

/* Titles: a bit smaller, a bit more literary */
.entry-title {
  font-size: 1.55rem;
  margin: 0 0 .5rem;
  font-weight: 500;
}
.entry-title a { color: var(--ink) !important; text-decoration: none; }
.entry-title a:hover { color: var(--rose-deep) !important; }

/* Date: italic, faint — like a journal entry */
.posted-on, .posted-on a {
  font-size: .85rem;
  font-style: italic;
  color: var(--ink-faint) !important;
  letter-spacing: .02em;
}

/* Excerpt: the heart of the all-text blog.
   Slightly larger, looser, clamp at 5 lines so cards stay scannable */
.entry-content {
  margin-top: .9rem;
  font-size: 1.02rem;
  line-height: 1.75;
  font-weight: 400;
  color: #3f3648;
}
.entry-content p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read more: editorial link, not a chunky button */
.rm-button, .link-more a {
  display: inline-block;
  margin-top: .4rem;
  font-size: .85rem;
  font-style: italic;
  letter-spacing: .04em;
  color: var(--indigo-deep) !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-bottom: 1px solid #c9d3e8;
  border-radius: 0 !important;
}
.rm-button:hover, .link-more a:hover { color: var(--rose-deep) !important; border-color: var(--rose); }

/* ------------------------------------------------------------
   Featured image as a small thumbnail kicker (v1.1)
   Parent markup is:
     .blog-post-item > .featured-image > a.post-thumbnail > img
                     > .entry-container > .cat-links / title / excerpt
   We float the featured image as a 96px thumb at the top-left
   of the card. Category + title sit beside it; the excerpt
   wraps under it. Pure CSS — no template override needed.
   ------------------------------------------------------------ */
.blog-post-item { position: relative; }
.blog-post-item::after { content: ""; display: table; clear: both; }

.blog-archive .featured-image {
  float: left;
  width: 96px;
  height: 96px;
  margin: 1.4rem 0 .8rem 1.4rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  outline: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: #fff;
  flex: none;
}
.blog-archive .featured-image a { display: block; width: 100%; height: 100%; }
.blog-archive .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  border: 0;
  /* subtle warmth so photos sit with the pastels, without flattening them */
  filter: saturate(1.08) contrast(1.02);
  transition: transform .3s ease;
}
.blog-archive .blog-post-item:hover .featured-image img { transform: scale(1.06); }

/* Keep title from running under the thumb on narrow cards */
.blog-archive .entry-title { font-size: 1.35rem; }

/* Single posts: no featured-image hero (v2.0.5) — all-text literary view.
   The rules below are kept harmless in case a template opts back in. */

/* ============================================================
   4. Single posts — the literary reading view
   ============================================================ */
.single .entry-content, .page .entry-content {
  max-width: 68ch;
  margin-inline: auto;
  font-size: 1.12rem;
  line-height: 1.85;
}
.single .entry-content p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif-display);
  font-size: 3.4em;
  line-height: .85;
  padding: .05em .12em 0 0;
  color: var(--rose-deep);
  font-weight: 500;
}
.single .entry-title { font-size: 2.4rem; text-align: center; margin-bottom: .4rem; }
.single .blog-post-item { border: none; border-top: none; box-shadow: none; background: transparent; }
.single .entry-container { padding-inline: 0; }

/* In-post images stack vertically, full reading width (v2.0.5).
   Without this, alignright/alignleft block images float beside the
   text and squeeze it into a narrow column (see Mavie post). */
.entry-content img { max-width: 100%; height: auto; display: block; margin: 1.5em auto; }
.entry-content .wp-block-image,
.entry-content .alignleft, .entry-content .alignright,
.entry-content .alignwide, .entry-content .alignfull {
  float: none !important;
  margin: 1.5em auto !important;
  text-align: center;
}
.entry-content .wp-block-image img { margin: 0 auto; }
.entry-content figure { margin: 1.5em auto; }
.entry-content figcaption { text-align: center; font-style: italic; color: var(--ink-soft); font-size: .9rem; }

blockquote {
  border-left: 3px solid var(--rose);
  margin: 2em 0;
  padding-left: 1.4em;
  font-style: italic;
  color: var(--ink-soft);
}

/* ============================================================
   5. Widgets — weather, recipe, archives
   Override the dark xpress-dark widget styles site-wide.
   ============================================================ */
.widget, .oww-widget, .drw-card {
  background: var(--paper-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-soft);
  color: var(--ink) !important;
}
.widget-title, .oww-city-name {
  font-family: var(--serif-display) !important;
  color: var(--ink) !important;
  font-size: 1.1rem !important;
  letter-spacing: .03em;
}
.oww-temp { color: var(--rose-deep) !important; font-family: var(--serif-display) !important; }
.oww-description, .oww-feels-like, .oww-humidity, .oww-wind { color: var(--ink-soft) !important; }

/* --- Recipe of the Day (.drw-card) ---
   The plugin already uses Playfair + Source Serif on cream, which
   suits the literary theme. We just retint its brown accent to
   rose/indigo and darken the text to match v1.3+ ink. */
.drw-card {
  border-top: 4px solid var(--rose) !important;
  background: var(--paper-2) !important;
  max-width: 100% !important; /* fit the 1/3 footer column, was 520px */
}
.drw-title, .drw-label, .drw-footer-icon { color: var(--rose-deep) !important; }
.drw-instructions { color: var(--ink) !important; }
.drw-date, .drw-origin, .drw-footer-text { color: var(--ink-faint) !important; }
.drw-footer { background: var(--card-butter) !important; border-top: 1px solid var(--line) !important; }
.drw-divider { background: linear-gradient(to right, var(--rose), transparent) !important; }

/* --- Location Weather (.splw-*) — Ottawa, Campbell River, etc. ---
   NOTE: the plugin's base CSS assumes white text on dark, and each
   widget injects an inline <style> with its own background
   (yours is brown #87471d). The !important rules below beat that
   inline style. Long-term you can also set the widget background
   to "transparent" in the plugin settings — see README. */
.splw-main-wrapper, .splw-lite-wrapper {
  background: linear-gradient(180deg, var(--card-blue), #fff 55%) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-soft);
  color: var(--ink) !important;
  font-family: var(--serif-body) !important;
  max-width: 100% !important;
}
.splw-weather-title, .splw-lite-header-title {
  color: var(--ink) !important;
  font-family: var(--serif-display) !important;
  font-weight: 600 !important;
}
.splw-lite-current-time, .splw-lite-desc { color: var(--ink-soft) !important; }
.splw-cur-temp, .current-temperature { color: var(--rose-deep) !important; font-family: var(--serif-display) !important; }
.splw-lite-daily-weather-details, .splw-adv-forecast-days,
.splw-weather-details, .options-title { color: var(--ink-soft) !important; }
.splw-lite-daily-weather-details .details-icon i,
.splw-weather-details .details-icon i { color: var(--indigo-deep) !important; }
.options-value { color: var(--ink) !important; font-weight: 600; }
.splw-tab { color: var(--ink-soft) !important; }
.splw-tab.active { color: var(--rose-deep) !important; opacity: 1; }
.splw-tab::after { background: var(--rose) !important; }
.splw-forecast-weather select, .splw-forecast-weather option {
  background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line) !important;
}
.splw-weather-attribution, .splw-weather-detailed-updated-time { color: var(--ink-faint) !important; background: transparent !important; }
.splw-weather-detailed-updated-time a { color: var(--indigo-deep) !important; }
.lw-preloader { background: var(--paper-2); border-radius: var(--radius); }

/* --- Location Weather in a narrow column (v2.0.3) ---
   The widget is set to the plugin's *horizontal* layout (800px),
   which overflows a ~380px footer column and clips the hourly
   forecast. Stack it vertically, tidy the details into a 2-col
   grid, and let the forecast/tabs scroll sideways instead of clipping. */
.splw-main-wrapper.horizontal .splw-lite-templates-body {
  flex-direction: column !important;
}
.splw-main-wrapper.horizontal .splw-lite-templates-body > div {
  flex: 1 1 auto !important;
  width: 100% !important;
  text-align: center;
}
.splw-lite-header-title { font-size: 1.15rem !important; line-height: 1.35 !important; }
.splw-cur-temp span.cur-temp, .splw-cur-temp .current-temperature { font-size: 2.6rem !important; line-height: 1.1 !important; }
.splw-lite-daily-weather-details .splw-other-opt {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: .45rem 1rem;
  text-align: left;
}
.splw-lite-daily-weather-details .splw-other-opt > div {
  display: flex; justify-content: space-between; gap: .5rem;
  padding-bottom: .15rem;
}
.splw-lite-daily-weather-details .options-value { text-align: right; white-space: nowrap; }

/* Forecast tabs: scroll sideways, don't clip or wrap awkwardly */
.splw-tabs {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: .25rem;
}
.splw-tab { flex: 0 0 auto; white-space: nowrap; font-size: .85rem; padding: .5em .45em; }

/* Hourly forecast: scroll sideways with snap, instead of overflowing */
.lw-forecast-wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  gap: .4rem;
  padding: .5rem .25rem .75rem;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.lw-forecast-wrapper .splw-forecast {
  flex: 0 0 68px !important;
  scroll-snap-align: start;
}
.splw-adv-forecast-days { overflow: hidden; }

/* --- No double card: widget chrome off when the widget is its own card --- */
.widget:has(.splw-main-wrapper),
.widget:has(.drw-card),
.widget:has(a[href*="weathercloud"]) {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* --- Hide empty widgets (e.g. an empty text block left in a column) --- */
.widget:empty,
.widget > p:empty,
.widget:has(> p:empty:only-child),
.widget_block:has(> p:empty:only-child),
.widget-column:empty { display: none !important; }

/* --- WeatherCloud backyard-station sticker (footer-widget-3) ---
   An external image — CSS can't recolour it, so we frame it.
   If it's the dark sticker, switch it to the light theme in your
   WeatherCloud dashboard for a perfect match (see README). */
.footer-widget-3 a[href*="weathercloud"] {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: .6rem;
  margin-bottom: 1rem;
  text-align: center;
}
.footer-widget-3 a[href*="weathercloud"] img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  filter: saturate(1.05);
}

/* --- Footer social links (Hey Café / Mastodon / Facebook) --- */
.footer-widget-3 a:not([href*="weathercloud"]) {
  color: var(--indigo-deep) !important;
  font-weight: 600;
}
.footer-widget-3 a:not([href*="weathercloud"]):hover { color: var(--rose-deep) !important; }

/* --- Sidebar archives dropdown --- */
.wp-block-archives__label {
  font-family: var(--serif-display) !important;
  color: var(--ink) !important;
  letter-spacing: .08em; text-transform: uppercase; font-size: .85rem !important;
}
.wp-block-archives select { width: 100%; }

select, input[type="text"], input[type="search"] {
  font-family: var(--serif-body);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .55em .8em;
  color: var(--ink);
}

/* Pagination */
.pagination a, .nav-links a {
  font-family: var(--serif-display);
  color: var(--indigo-deep);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: .35em .9em;
}
.pagination .current { background: var(--rose); border-color: var(--rose); color: #fff; }

/* ============================================================
   6. Footer
   ============================================================ */
.site-footer, .site-info {
  text-align: center;
  font-size: .9rem;
  font-style: italic;
  color: var(--ink-soft);
  padding: 2.5rem 1rem;
}

/* Footer widget columns: 3-up on desktop, stack on mobile */
#footer-widgets .widget-area {
  display: grid;
  /* Only active columns render (see footer.php), so a single widget
     doesn't get pushed into the right-hand third of the footer */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 900px) {
  #footer-widgets .widget-area { grid-template-columns: 1fr; }
  /* Location Weather widget is 320px+ wide — let it centre and shrink */
  .splw-main-wrapper { margin-inline: auto; }
}

/* ============================================================
   6b. Standalone navigation (was provided by wpxpress)
   ============================================================ */
#site-navigation { position: relative; z-index: 1001; }
.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: .5em 1em; font-family: var(--serif-display); color: var(--ink);
  margin: .6rem auto;
}
.nav-menu, .navigation-menu ul, .menu ul {
  list-style: none !important;
  margin: 0; padding: 0;
}
.nav-menu > li, .navigation-menu li, .menu li { position: relative; list-style: none !important; }
.nav-menu ul.sub-menu, .navigation-menu ul ul, .menu ul ul { list-style: none !important; margin: 0; padding: .4rem 0; }
.nav-menu li::marker, .navigation-menu li::marker { content: none; }

@media (min-width: 900px) {
  .nav-menu { display: flex; flex-wrap: wrap; justify-content: center; }
  .nav-menu ul.sub-menu {
    display: none; position: absolute; left: 0; top: 100%;
    min-width: 230px; z-index: 1002; text-align: left;
  }
  .nav-menu li:hover > ul.sub-menu,
  .nav-menu li:focus-within > ul.sub-menu { display: block; }
}
@media (max-width: 899px) {
  .menu-toggle { display: block; }
  .nav-menu { display: none; text-align: left; }
  .navigation-menu.toggled .nav-menu { display: block; }
  .nav-menu ul.sub-menu { padding-left: 1.2rem; }
  .nav-menu a { display: block; }
}

/* Masthead / branding (standalone flow, not parent's absolute logo) */
.site-branding-logo { margin-bottom: 1rem; }
.site-title {
  font-size: 2.6rem; margin: 0; text-align: center; display: block;
}
.site-title a { color: var(--ink); text-decoration: none; }
.site-title a:hover { color: var(--rose-deep); }

/* Sidebar rendered below the masonry on index/archive (see index.php),
   so archives etc. stay reachable without narrowing the 3 columns */
.deosil-sidebar-below {
  max-width: 1240px; margin: 2rem auto; padding: 0 1.25rem;
}
.deosil-sidebar-below .widget-area {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem; align-items: start;
}

/* Single / page layout — no sidebar (v2.0.4): centred reading column */
.deosil-single-layout {
  max-width: 1240px; margin: 0 auto; padding: 2.5rem 1.25rem;
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.deosil-single-layout .entry-content,
.deosil-single-layout .entry-header,
.deosil-single-layout .posted-on,
.deosil-single-layout .entry-footer { max-width: 68ch; margin-inline: auto; }
.page .entry-content, .single .entry-content { max-width: 68ch; }
.page-id-3121 .entry-content, .page-id-3068 .entry-content { max-width: none; } /* YOW/YBL weather pages: allow wide */
.entry-content .splw-main-wrapper { margin-inline: auto; }

/* ============================================================
   7. Reduced motion / print
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .navigation-menu, .header-top, .footer-widgets, .site-footer { display: none; }
  body { background: #fff; font-size: 12pt; }
  .blog-archive.columns-3 { column-count: 1; }
}
