/* Template: Lavender Haze. Made by the BlogNet master: changes made on the blog are replaced by the next refresh. */
:root{--bg:#fbfaff;--surface:#ffffff;--text:#2e2a3a;--muted:#6d6880;--accent:#6b4fb8;--accent-text:#ffffff;--line:#e8e3f5;--header-bg:#e4dbf7;--header-text:#2e2645;--footer-bg:#6b4fb8;--font-head:"Quicksand", system-ui, sans-serif;--font-body:"Quicksand", system-ui, sans-serif;--size:17px;--lh:1.65;--hw:700;--hcase:none;--hspace:-.01em;--radius:16px;--width:1120px;--ratio:4/3;color-scheme:light}

/* BlogNet theme engine.
   Colours, fonts, sizes and widths are CSS variables, written above this by the master from the template settings.
   body classes pick the layout (layout-*), header (header-*) and card style (cards-*).
   The template's extra CSS (if any) is added at the end. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--size); line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: .16em; }
a:hover { color: var(--accent); }
h1, h2, h3, .brand-title, .card-title, .footer-title, .widget-title {
  font-family: var(--font-head); font-weight: var(--hw); text-transform: var(--hcase); letter-spacing: var(--hspace);
}
.wrap { max-width: var(--width); margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 20; }
.empty { color: var(--muted); padding: 3rem 0; text-align: center; }
.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .72em; font-weight: 700; color: var(--accent); margin: 0 0 .45rem; }
.kicker a { text-decoration: none; }
.lede { font-size: 1.18em; color: var(--muted); margin: .6rem 0 0; }
.btn, .search-big button {
  display: inline-block; font: inherit; font-weight: 600; padding: .7em 1.4em; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-text); text-decoration: none; cursor: pointer;
}
.btn:hover, .search-big button:hover { color: var(--accent-text); filter: brightness(1.08); }

/* ---------------------------------------------------------------- header */
.masthead { background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--line); }
.masthead a { color: var(--header-text); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; padding-bottom: 1.1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-icon { width: 40px; height: 40px; border-radius: calc(var(--radius) / 2); object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.1; }
.brand-tagline { opacity: .75; font-style: italic; margin-top: .2rem; font-size: .95em; }
.nav { display: flex; gap: 1.4rem; overflow-x: auto; scrollbar-width: none; font-size: .92em; }
.nav a { text-decoration: none; white-space: nowrap; opacity: .78; padding: .15rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { opacity: 1; border-bottom-color: var(--accent); color: var(--header-text); }
.nav-row { padding-bottom: .85rem; }
.search input {
  font: inherit; font-size: .92em; padding: .5em .95em; border: 1px solid var(--line); border-radius: 99px;
  background: var(--bg); color: var(--text); width: 220px; max-width: 100%;
}
.search-big { display: flex; gap: .5rem; margin: 1rem 0; max-width: 560px; }
.search-big input { flex: 1; width: auto; border-radius: var(--radius); padding: .75em 1em; }
.search-block input { width: 100%; border-radius: var(--radius); }

/* centred header */
.header-centered .masthead-inner { flex-direction: column; text-align: center; padding-top: 2.4rem; }
.header-centered .brand { flex-direction: column; }
.header-centered .brand-text { align-items: center; }
.header-centered .brand-title { font-size: clamp(2rem, 5.5vw, 3.2rem); }
.header-centered .nav-row { justify-content: center; border-top: 1px solid var(--line); padding-top: .8rem; }

/* coloured band header */
.header-band .masthead { border-bottom: 0; }
.header-band .masthead-inner { padding-top: 1rem; padding-bottom: 1rem; }
.header-band .brand-title { font-size: 1.45rem; }
.header-band .brand-icon { width: 32px; height: 32px; }
.header-band .nav-inline { flex: 1; justify-content: flex-end; }
.header-band .search input { background: color-mix(in srgb, var(--header-text) 12%, transparent); border-color: transparent; color: var(--header-text); }
.header-band .search input::placeholder { color: var(--header-text); opacity: .7; }

/* stacked newspaper masthead */
.header-stacked .dateline { display: flex; justify-content: space-between; align-items: center; font-size: .8em; padding-top: .6rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .06em; }
.header-stacked .masthead-inner { justify-content: center; text-align: center; padding: 1.4rem 1.25rem 1.2rem; }
.header-stacked .brand-text { align-items: center; }
.header-stacked .brand-title { font-size: clamp(2.4rem, 7vw, 4.4rem); letter-spacing: -.02em; }
.header-stacked .nav-row { justify-content: center; border-top: 3px double var(--text); border-bottom: 1px solid var(--text); padding: .55rem 1.25rem; text-transform: uppercase; letter-spacing: .08em; font-size: .78em; font-weight: 700; }

main.wrap { padding-top: 2.4rem; padding-bottom: 3.5rem; }
.page-note { margin-top: 0; }
.page-head { margin-bottom: 2rem; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0; }
.page-head.center { text-align: center; max-width: 640px; margin: 3rem auto; }
.page-head.center .search-big { margin: 1.5rem auto; }

/* ---------------------------------------------------------------- cards */
.card { display: flex; flex-direction: column; min-width: 0; }
.card-img { display: block; aspect-ratio: var(--ratio); overflow: hidden; border-radius: var(--radius); background: var(--line); margin-bottom: .9rem; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.card:hover .card-img img { transform: scale(1.035); }
.card-title { font-size: 1.28em; line-height: 1.25; margin: 0 0 .4rem; }
.card-title a { text-decoration: none; }
.card-excerpt { margin: 0 0 .5rem; color: var(--muted); font-size: .94em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin: 0; font-size: .8em; color: var(--muted); }

.cards-bordered .posts .card:not(.card-title-only), .cards-bordered .lead .card-lead { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; background: var(--surface); }
.cards-shadow .posts .card:not(.card-title-only), .cards-shadow .lead .card-lead { background: var(--surface); border-radius: var(--radius); padding: .9rem; box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .08); }
.cards-filled .posts .card:not(.card-title-only), .cards-filled .lead .card-lead { background: var(--surface); border-radius: var(--radius); padding: 1rem; }
.cards-bordered .card-img, .cards-shadow .card-img, .cards-filled .card-img { border-radius: calc(var(--radius) * .7); }

/* grids */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2.2rem 1.7rem; }
.posts-grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.posts-related { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.posts-masonry { columns: 3 260px; column-gap: 1.6rem; }
.posts-masonry .card { break-inside: avoid; margin-bottom: 1.6rem; display: block; }
.posts-masonry .card-img { aspect-ratio: auto; }
.posts-masonry .card-img img { height: auto; }
.posts-masonry .card-excerpt { -webkit-line-clamp: 6; }

/* lead (magazine) */
.lead { margin-bottom: 2.8rem; padding-bottom: 2.8rem; border-bottom: 1px solid var(--line); }
.card-lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem; align-items: center; }
.card-lead:not(.has-img) { grid-template-columns: 1fr; }
.card-lead .card-img { margin: 0; aspect-ratio: 3/2; }
.card-lead .card-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.card-lead .card-excerpt { font-size: 1.08em; -webkit-line-clamp: 5; }

/* hero overlay */
.layout-hero .lead { border: 0; padding: 0; }
.card-overlay {
  position: relative; min-height: min(68vh, 560px); border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end;
  background: var(--accent) center/cover no-repeat; color: #fff;
}
.card-overlay::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0) 25%, rgb(0 0 0 / .78)); }
.overlay-link { position: absolute; inset: 0; z-index: 1; }
.overlay-body { position: relative; z-index: 2; padding: clamp(1.4rem, 4vw, 3rem); max-width: 820px; pointer-events: none; }
.overlay-body a { pointer-events: auto; color: #fff; }
.card-overlay .kicker, .card-overlay .kicker a { color: #fff; opacity: .9; }
.card-overlay .card-title { font-size: clamp(1.8rem, 4.5vw, 3.2rem); color: #fff; }
.card-overlay .card-excerpt, .card-overlay .card-meta { color: rgb(255 255 255 / .85); }

/* rows (list, classic) */
.posts-rows { display: flex; flex-direction: column; gap: 2rem; }
.card-row { display: grid; grid-template-columns: minmax(180px, 34%) 1fr; gap: 1.6rem; align-items: start; }
.card-row:not(.has-img) { grid-template-columns: 1fr; }
.card-row .card-img { margin: 0; }
.card-row .card-title { font-size: 1.45em; }
.layout-classic .card-row { grid-template-columns: minmax(150px, 28%) 1fr; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.layout-classic.cards-plain .card-row:last-child { border-bottom: 0; }

/* text (minimal, timeline) */
.posts-text { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; }
.card-text { display: grid; grid-template-columns: 1fr auto; gap: 0 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.card-text .card-img { grid-column: 2; grid-row: 1; width: 132px; margin: 0; aspect-ratio: 1/1; }
.card-text .card-body { grid-column: 1; grid-row: 1; }
.card-text .card-title { font-size: 1.4em; }
.card-title-only { display: grid; grid-template-columns: 7.5em 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.card-title-only time { color: var(--muted); font-size: .85em; font-variant-numeric: tabular-nums; }
.card-title-only .card-title { font-size: 1.12em; margin: 0; }
.layout-minimal .page-head, .layout-minimal .post { max-width: 720px; margin-left: auto; margin-right: auto; }

/* timeline */
.posts-timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 2rem; border-left: 2px solid var(--line); }
.tl-month { font-size: .8em; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 2.2rem 0 .3rem; position: relative; }
.tl-month:first-child { margin-top: 0; }
.tl-month::before { content: ""; position: absolute; left: calc(-2rem - 7px); top: .25em; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.posts-timeline .card-text { border-bottom: 1px dashed var(--line); }

/* newspaper */
.layout-newspaper .card-title { font-weight: var(--hw); }
.news-top { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; border-bottom: 3px double var(--text); }
.news-top:not(:has(.news-seconds)) { grid-template-columns: 1fr; }
.card-news-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.card-news-lead:not(.has-img) { grid-template-columns: 1fr; }
.card-news-lead .card-img { margin: 0; grid-column: 2; grid-row: 1; aspect-ratio: 4/3; }
.card-news-lead .card-body { grid-column: 1; grid-row: 1; }
.card-news-lead .card-title { font-size: clamp(1.8rem, 3.8vw, 2.7rem); line-height: 1.08; }
.card-news-lead .card-excerpt { -webkit-line-clamp: 7; font-size: 1.02em; }
.news-seconds { display: flex; flex-direction: column; gap: 1.4rem; border-left: 1px solid var(--line); padding-left: 2rem; }
.posts-news { columns: 3 240px; column-gap: 2.2rem; column-rule: 1px solid var(--line); }
.posts-news .card { break-inside: avoid; margin-bottom: 1.6rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); display: block; }
.card-news .card-title { font-size: 1.15em; line-height: 1.2; }
.card-news .card-img { aspect-ratio: 3/2; border-radius: 0; }
.card-news .card-excerpt { -webkit-line-clamp: 4; }
.layout-newspaper .card-img { border-radius: 0; }

/* feature + list */
.layout-feature_list .lead .card-lead { grid-template-columns: 1fr; }
.layout-feature_list .lead .card-lead .card-img { aspect-ratio: 21/9; }
.layout-feature_list .lead .card-body { max-width: 760px; }

/* portal: lead beside a headline column */
.portal-top { display: grid; grid-template-columns: 2fr 1fr; gap: 2.2rem; }
.portal-top:not(:has(.portal-heads)) { grid-template-columns: 1fr; }
.portal-top .card-lead { grid-template-columns: 1fr; gap: 1rem; }
.portal-heads { display: flex; flex-direction: column; border-top: 4px solid var(--accent); }
.portal-heads .card-title-only { grid-template-columns: 1fr; gap: .2rem; padding: 1rem 0; }

/* zigzag */
.posts-zigzag { gap: 3rem; }
.posts-zigzag .card-row { grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: center; }
.posts-zigzag .card-row:not(.has-img) { grid-template-columns: 1fr; }
.posts-zigzag .card-row:nth-child(even).has-img .card-img { order: 2; }
.posts-zigzag .card-row .card-title { font-size: 1.7em; }

/* big type */
.posts-bigtype { display: flex; flex-direction: column; }
.posts-bigtype .card-title-only { grid-template-columns: 1fr; gap: .3rem; padding: 1.6rem 0; border-bottom: 2px solid var(--text); }
.posts-bigtype .card-title-only .card-title { font-size: clamp(1.9rem, 5.5vw, 3.6rem); line-height: 1.02; }
.posts-bigtype .card-title-only .card-title a:hover { color: var(--accent); }
.posts-bigtype .card-title-only time { order: 2; text-transform: uppercase; letter-spacing: .08em; }

/* numbered */
.posts-numbered { counter-reset: item; max-width: 820px; }
.posts-numbered .card-title-only { counter-increment: item; grid-template-columns: 2.6em 1fr; grid-template-areas: "n t" "n d"; gap: 0 .6rem; padding: .55rem 0; border-bottom: 0; }
.posts-numbered .card-title-only::before { content: counter(item) "."; grid-area: n; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.posts-numbered .card-title-only .card-title { grid-area: t; font-family: var(--font-body); font-size: 1em; font-weight: 600; }
.posts-numbered .card-title-only time { grid-area: d; font-size: .78em; }

/* tiles and cover: headline over the picture */
.posts-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.posts-tiles .card-overlay { min-height: 0; aspect-ratio: 1/1; }
.posts-tiles .card-overlay .card-title { font-size: 1.25em; }
.posts-tiles .card-overlay .card-excerpt { display: none; }
.posts-tiles .overlay-body, .posts-cover .overlay-body { padding: 1.2rem; }
.posts-cover { display: flex; flex-direction: column; gap: 1.4rem; }
.posts-cover .card-overlay { min-height: 0; aspect-ratio: 21/9; }
.posts-cover .card-overlay .card-title { font-size: clamp(1.5rem, 3.4vw, 2.4rem); }
.posts-tiles .card-overlay, .posts-cover .card-overlay { background-color: var(--accent); }

/* bento */
.posts-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.posts-bento .card:first-child { grid-column: span 2; grid-row: span 2; }
.posts-bento .card:first-child .card-title { font-size: 1.9em; }
.posts-bento .card:first-child .card-excerpt { -webkit-line-clamp: 6; }
.posts-bento .card:not(:first-child) .card-excerpt { display: none; }

/* duo */
.posts-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2.4rem; }
.posts-duo .card-img { aspect-ratio: 4/3; }
.posts-duo .card-title { font-size: 1.7em; }

/* feed */
.posts-feed { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
.posts-feed .card { padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.posts-feed .card:last-child { border-bottom: 0; }
.posts-feed .card-title { font-size: 1.75em; }
.posts-feed .card-excerpt { -webkit-line-clamp: 5; font-size: 1.02em; }
.layout-feed .page-head { max-width: 680px; margin-left: auto; margin-right: auto; }

/* datebook */
.posts-datebook { max-width: 860px; display: flex; flex-direction: column; }
.card-datebox { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.6rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.card-datebox:not(:has(.datebox)) { grid-template-columns: 1fr; }
.datebox { display: flex; flex-direction: column; align-items: center; padding: .7rem .4rem; border-radius: var(--radius); background: var(--accent); color: var(--accent-text); line-height: 1.1; }
.datebox-day { font-family: var(--font-head); font-size: 2.2em; font-weight: var(--hw); }
.datebox-month { font-size: .74em; text-transform: uppercase; letter-spacing: .07em; }
.card-datebox .card-title { font-size: 1.4em; }

/* classic: sidebar column */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
.side-col { position: sticky; top: 1.5rem; }
.widget { margin-bottom: 2rem; font-size: .92em; }
.widget p { margin: .4rem 0; }
.widget-title { font-size: 1.05em; margin: 0 0 .7rem; padding-bottom: .5rem; border-bottom: 2px solid var(--accent); }
.layout-classic .widget { background: var(--surface); padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); }

/* side panel layout */
.shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 100vh; }
.side-panel {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 2.2rem 1.6rem;
  background: var(--header-bg); color: var(--header-text); border-right: 1px solid var(--line);
}
.side-panel a { color: var(--header-text); }
.side-panel .brand { flex-direction: column; align-items: flex-start; }
.side-panel .brand-title { font-size: 1.8rem; }
.side-panel .brand-tagline { margin: .5rem 0 1.6rem; opacity: .75; font-style: italic; }
.side-nav { display: flex; flex-direction: column; gap: .15rem; margin-bottom: 2rem; }
.side-nav a { text-decoration: none; padding: .45rem .7rem; border-radius: calc(var(--radius) / 2); opacity: .85; }
.side-nav a:hover, .side-nav a[aria-current] { background: color-mix(in srgb, var(--header-text) 12%, transparent); opacity: 1; }
.side-panel .widget-title { border-bottom-color: color-mix(in srgb, var(--header-text) 30%, transparent); }
.side-panel .search input { width: 100%; }
.side-panel .muted { color: inherit; opacity: .65; }
.shell-main main.wrap { padding-top: 3rem; }

/* ---------------------------------------------------------------- article */
.post { max-width: 760px; margin: 0 auto; }
.layout-classic .post, .layout-sidebar .post { max-width: none; margin: 0; }
.post-head h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; margin: 0; }
.post-meta { color: var(--muted); font-size: .88em; margin: 1rem 0 0; }
.post-hero { margin: 2rem 0; }
.post-hero img { width: 100%; display: block; border-radius: var(--radius); }
@media (min-width: 900px) {
  .hero-wide .post-hero { margin-left: -6rem; margin-right: -6rem; }
  .layout-hero .hero-wide .post-hero { margin-left: calc(-1 * min(14rem, (100vw - 760px) / 2 - 1.25rem)); margin-right: calc(-1 * min(14rem, (100vw - 760px) / 2 - 1.25rem)); }
}
.post-body { margin-top: 2rem; overflow-wrap: break-word; font-size: 1.06em; }
.post-body h2 { font-size: 1.55em; line-height: 1.25; margin: 2.2em 0 .5em; }
.post-body h3 { font-size: 1.25em; margin: 1.8em 0 .4em; }
.post-body img { border-radius: var(--radius); display: block; margin: 1.6rem auto; }
.post-body a { color: var(--accent); }
.post-body blockquote { margin: 1.6rem 0; padding: .3rem 0 .3rem 1.3rem; border-left: 3px solid var(--accent); font-style: italic; color: var(--muted); }
.post-body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .86em; background: color-mix(in srgb, var(--text) 8%, transparent); padding: .1em .35em; border-radius: 4px; }
.post-body pre { background: #1e1e22; color: #eee; padding: 1rem 1.2rem; border-radius: var(--radius); overflow-x: auto; font-size: .88em; line-height: 1.5; }
.post-body pre code { background: none; padding: 0; }
.post-body table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; display: block; overflow-x: auto; font-size: .92em; }
.post-body th, .post-body td { border-bottom: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.post-body hr { border: 0; text-align: center; margin: 2.5rem 0; }
.post-body hr::after { content: "· · ·"; color: var(--muted); letter-spacing: .5em; }
.post-body .embed { margin: 2rem 0; }
.post-body .embed iframe { border-radius: var(--radius); }
.md-spoiler { background: var(--text); color: transparent; border-radius: 3px; cursor: pointer; }
.md-spoiler:hover, .md-spoiler:focus { background: transparent; color: inherit; }
.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.tag { text-decoration: none; font-size: .85em; padding: .25rem .8rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.tag:hover { border-color: var(--accent); }
.share { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-top: 1.6rem; font-size: .9em; }
.share a { font-weight: 600; text-decoration: none; color: var(--accent); }
.preview-banner { max-width: 760px; margin: 0 auto 1.5rem; background: #fff1d6; color: #6b4b00; padding: .7rem 1rem; border-radius: var(--radius); font-size: .92em; }
.adjacent { max-width: 760px; margin: 3rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.layout-classic .adjacent, .layout-sidebar .adjacent { max-width: none; }
.adj { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-family: var(--font-head); font-weight: var(--hw); }
.adj .muted { font-family: var(--font-body); font-weight: 400; font-size: .8em; }
.adj.next { text-align: right; grid-column: 2; }
.related { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.5em; margin: 0 0 1.5rem; }

/* ---------------------------------------------------------------- pagination */
.pager { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; font-weight: 600; }
.pager-numbers { justify-content: center; flex-wrap: wrap; border-top: 0; }
.pager-numbers a, .pager-numbers span { min-width: 2.4em; height: 2.4em; display: inline-flex; align-items: center; justify-content: center; padding: 0 .6em; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.pager-numbers .current { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.pager-numbers .gap { border: 0; background: none; }
.load-more { text-align: center; margin-top: 2.6rem; }
.archive-year h2 { font-size: 1.4em; margin: 2rem 0 .8rem; }
.archive-months { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem 1.4rem; }
.archive-months li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: .45rem 0; }
.archive-months a { text-decoration: none; }

/* ---------------------------------------------------------------- footer */
.tagcloud a { text-decoration: none; margin-right: .7rem; line-height: 2; white-space: nowrap; }
.tagcloud.big { max-width: 860px; font-size: 1.05em; }
.plain { list-style: none; padding: 0; margin: 0; line-height: 1.9; }
.footer { background: var(--footer-bg, var(--surface)); border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; font-size: .9em; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.footer-title { font-size: 1.05em; margin: 0 0 .6rem; }
.footer-links { margin-top: .5rem; }
.copyright { color: var(--muted); font-size: .82em; margin-top: 1.6rem; }
.footer > .copyright:first-child { margin-top: 0; }
.footer-about { margin-bottom: 1.6rem; }
.footer-about .muted { margin: 0; max-width: 720px; }
.footer-text { margin-top: 1.2rem; }
.footer-text p { margin: .15rem 0; }
.footer-text a, .copyright a, .header-text a { color: inherit; text-decoration: underline; }
.header-text { font-size: .92em; opacity: .85; padding-bottom: 1rem; }
.header-text p { margin: .15rem 0; }
.masthead-inner + .header-text { margin-top: -.4rem; }
.header-centered .header-text, .header-stacked .header-text { text-align: center; }
.side-panel .header-text { padding: 0; margin: -1rem 0 1.6rem; }
.footer > :first-child { margin-top: 0; }
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; background: var(--accent); color: var(--accent-text); box-shadow: 0 4px 14px rgb(0 0 0 / .2); }
.to-top:hover { color: var(--accent-text); }
.rss { font-weight: 600; text-decoration: none; color: var(--accent); }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .side-col { position: static; }
  .shell { grid-template-columns: 1fr; }
  .side-panel { position: static; height: auto; padding: 1.4rem 1.25rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-panel .widgets { display: none; }
  .side-nav { flex-direction: row; flex-wrap: wrap; margin-bottom: 0; }
  .news-top { grid-template-columns: 1fr; }
  .news-seconds { border-left: 0; padding-left: 0; }
  .portal-top { grid-template-columns: 1fr; }
  .posts-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: calc(var(--size) - 1px); }
  .search-inline { width: 100%; }
  .search-inline input { width: 100%; }
  .card-lead, .card-news-lead { grid-template-columns: 1fr; gap: 1rem; }
  .card-news-lead .card-img { grid-column: 1; grid-row: auto; }
  .card-row, .layout-classic .card-row { grid-template-columns: 1fr; gap: .8rem; }
  .card-text { grid-template-columns: 1fr; }
  .card-text .card-img { grid-column: 1; grid-row: auto; width: 100%; aspect-ratio: var(--ratio); margin-bottom: .8rem; }
  .card-title-only { grid-template-columns: 1fr; gap: .1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .adjacent { grid-template-columns: 1fr; }
  .adj.next { grid-column: 1; }
  .header-band .nav-inline { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .posts-timeline { padding-left: 1.3rem; }
  .tl-month::before { left: calc(-1.3rem - 7px); }
  .posts-zigzag .card-row { grid-template-columns: 1fr; gap: .8rem; }
  .posts-zigzag .card-row:nth-child(even).has-img .card-img { order: 0; }
  .posts-bento, .posts-duo { grid-template-columns: 1fr; }
  .posts-bento .card:first-child { grid-column: auto; grid-row: auto; }
  .posts-cover .card-overlay { aspect-ratio: 4/3; }
  .card-datebox { grid-template-columns: 4.5rem 1fr; gap: 1rem; }
  .datebox-day { font-size: 1.6em; }
}
