/*
 * Petal front-end styles: Tailwind CSS 4 + daisyUI 5 → public/dist/theme.css (`npm run build:css`).
 * Classes are collected from the PHP templates and classes and from app.js.
 *
 * A component-library look: lots of white space, huge headlines mixing a black (900) and a light (300) Outfit,
 * semantic color blocks (indigo / magenta / teal / yellow, one per topic), soft three-color glows, monospace
 * command-line labels, a ⌘K search box, a tilted "app window" showcase, huge numbers and a code-window
 * subscribe block. The site-wide player belongs to the A Ripple Song plugin and is not styled here.
 */
@import "tailwindcss" source(none);
@source "../../templates";
@source "../../../app";
@source "../js";
@source "../../../searchform.php";

/* The two themes are plain CSS variables in themes.css, as in the prototype. */
@plugin "daisyui" {
  themes: false;
}

@import "./themes.css";
@import "./content.css";

@theme {
  --font-sans: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  --font-display: "Outfit", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

[x-cloak] { display: none !important; }
html { scroll-padding-top: 5.5rem; }
body { -webkit-font-smoothing: antialiased; background: var(--page); overflow-x: clip; overflow-wrap: break-word; }
::selection { background: var(--color-primary); color: var(--color-primary-content); }

/* Headline font: Outfit. Mixing a black (900) and a light (300) part is the theme's signature */
.display { font-family: "Outfit", "Noto Sans SC", sans-serif; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.display-light { font-family: "Outfit", "Noto Sans SC", sans-serif; font-weight: 300; letter-spacing: -0.02em; }
/* The plugin's playlist drawer title matches the main menu drawer's title (header.php: "display text-xl"), whatever the player skin.
   !important: the skin stylesheets flatten their cascade layers into .ars-player:not(#\#)×9 selectors, which no plain rule outranks. */
.ars-queue-title { font-family: "Outfit", "Noto Sans SC", sans-serif !important; font-weight: 800 !important; letter-spacing: -0.02em !important; line-height: 1.12 !important; font-size: 1.25rem !important; }
.mono { font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace; }
.only-dark { display: none; }
[data-theme="petal-dark"] .only-dark { display: block; }
[data-theme="petal-dark"] .only-light { display: none; }
.serif { font-family: Georgia, "Times New Roman", serif; }

/* Site mark: four colored petals that turn on hover */
.mark { position: relative; display: inline-grid; grid-template-columns: repeat(2, 1fr); gap: 2px; width: 1.85rem; height: 1.85rem; flex: none; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mark i { display: block; border-radius: 9999px 9999px 9999px 2px; }
.mark i:nth-child(1) { background: var(--color-primary); }
.mark i:nth-child(2) { background: var(--color-secondary); transform: rotate(90deg); }
.mark i:nth-child(3) { background: var(--color-warning); transform: rotate(-90deg); }
.mark i:nth-child(4) { background: var(--color-accent); transform: rotate(180deg); }
a:hover > .mark { transform: rotate(90deg); }
/* Logo icons (Branding\Logo, resources/assets/logos): flat shapes colored by class, so night mode recolors them. */
.logo-icon { width: 1.85rem; height: 1.85rem; flex: none; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
a:hover > .logo-icon { transform: rotate(-8deg) scale(1.06); }
.logo-icon .lp { fill: var(--color-primary); }
.logo-icon .ls { fill: var(--color-secondary); }
.logo-icon .la { fill: var(--color-accent); }
.logo-icon .lw { fill: var(--color-warning); }
.logo-icon .lc { fill: var(--color-base-content); }
.logo-icon .lb { fill: var(--color-base-100); }
.logo-icon .lp-s { stroke: var(--color-primary); }
.logo-icon .ls-s { stroke: var(--color-secondary); }
.logo-icon .la-s { stroke: var(--color-accent); }
.logo-icon .lb-s { stroke: var(--color-base-100); }

/* ---------- Header ---------- */
.announce { border-bottom: 1px solid var(--line); background: var(--color-base-100); }
.announce a { color: var(--color-info); }
[data-theme="petal"] .announce a { color: oklch(52% 0.2 262); }
.topbar { background: var(--glass); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.topbar.is-stuck { border-bottom-color: var(--line); }
.topnav > a, .topnav > div > .tn {
  display: inline-flex; align-items: center; gap: 0.45rem; height: 2.5rem; padding: 0 0.85rem; border-radius: 0.75rem; white-space: nowrap;
  color: var(--mute); font-size: 0.95rem; transition: color 0.15s, background-color 0.15s;
}
.topnav > a:hover, .topnav > div > .tn:hover, .has-mega:hover > .tn, .has-mega:focus-within > .tn { color: var(--color-base-content); background: var(--color-base-200); }
.topnav .is-on { color: var(--color-base-content); font-weight: 500; }
.topnav svg { width: 1.05rem; height: 1.05rem; }
/* Dropdown of a menu item with children: a large rounded card */
.has-mega { position: relative; }
.mega { display: none; position: absolute; top: calc(100% + 0.5rem); left: 50%; width: min(46rem, calc(var(--cols, 1) * 11rem + 3rem)); grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); gap: 1.5rem; transform: translateX(-38%); padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.5rem; background: var(--color-base-100); box-shadow: 0 30px 60px -20px oklch(20% 0.02 280 / 0.25); }
.mega::before { content: ""; position: absolute; inset: -0.75rem 0 auto 0; height: 0.75rem; }
.has-mega:hover .mega, .has-mega:focus-within .mega { display: grid; }
.mega h3 { font: 600 0.8rem/1 "Outfit", "Noto Sans SC", sans-serif; color: var(--mute); }
.mega a { display: block; padding: 0.35rem 0.6rem; margin-left: -0.6rem; border-radius: 0.6rem; font-size: 0.9rem; transition: background-color 0.15s; }
.mega a:hover { background: var(--color-base-200); }
.mega .sub { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.15rem 0 0.35rem; }
.mega .sub a { margin: 0; padding: 0.15rem 0.6rem; border-radius: 9999px; background: var(--color-base-200); font-size: 0.78rem; color: var(--mute); }
.mega .sub a:hover { background: var(--color-base-300); color: var(--color-base-content); }


/* ---------- Swatch: four color dots (icon of the color scheme button) ---------- */
.swatch { display: inline-grid; grid-template-columns: repeat(2, 0.42rem); gap: 0.18rem; padding: 0.35rem; border-radius: 0.5rem; background: var(--color-base-100); border: 1px solid var(--line); }
.swatch i { width: 0.42rem; height: 0.42rem; border-radius: 9999px; }
.swatch i:nth-child(1) { background: var(--color-base-content); } .swatch i:nth-child(2) { background: var(--color-primary); }
.swatch i:nth-child(3) { background: var(--color-secondary); } .swatch i:nth-child(4) { background: var(--color-accent); }

/* In the utilities layer: daisyUI declares utilities first, so a components layer would come later and beat the utility classes */
@layer utilities {
  .mute { color: var(--mute); }

  /* Rounded card with a hairline border */
  .panel { background: var(--color-base-100); border: 1px solid var(--line); border-radius: 1.5rem; }
  .panel-sm { background: var(--color-base-100); border: 1px solid var(--line); border-radius: 1.25rem; }
  /* Soft three-color glow background */
  .wash { background: radial-gradient(45% 70% at 12% 20%, var(--glow-a), transparent 70%), radial-gradient(45% 70% at 88% 15%, var(--glow-b), transparent 70%), radial-gradient(50% 80% at 60% 110%, var(--glow-c), transparent 70%), var(--color-base-200); border-color: transparent; }

  /* Black pill button (white at night) */
  .btn-black {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: var(--color-neutral); color: var(--color-neutral-content); font-weight: 500;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  }
  .btn-black:hover { box-shadow: 0 10px 24px -10px oklch(20% 0.02 280 / 0.6); opacity: 0.92; }
  .btn-black:active { transform: scale(0.97); }
  /* Light gray pill button (hairline border) */
  .btn-white {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: var(--color-base-200); color: var(--color-base-content); font-weight: 500;
    border: 1px solid var(--line); transition: background-color 0.15s, transform 0.15s;
  }
  .btn-white:hover { background: var(--color-base-300); }
  .btn-white:active { transform: scale(0.97); }
  .btn-plain { display: inline-flex; align-items: center; justify-content: center; color: var(--color-base-content); transition: background-color 0.15s; }
  .btn-plain:hover { background: var(--color-base-200); }
  /* Comment pages (the_comments_pagination): round buttons like parts/pagination.php. */
  .comments-pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
  .comments-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; height: 2.75rem; padding: 0 1rem;
    border-radius: 9999px; border: 1px solid var(--line); background: var(--color-base-200); font-size: 0.875rem; font-weight: 500;
    transition: background-color 0.15s;
  }
  .comments-pagination a.page-numbers:hover { background: var(--color-base-300); }
  .comments-pagination .page-numbers.current { background: var(--color-neutral); color: var(--color-neutral-content); border-color: transparent; }
  .comments-pagination .page-numbers.dots { border: 0; background: none; }
  .btn-gray {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--color-base-200); color: var(--color-base-content); transition: background-color 0.15s, color 0.15s;
  }
  .btn-gray:hover { background: var(--color-base-300); }
  .btn-gray.is-on { color: var(--color-secondary); }

  /* Filter chip */
  .chip {
    display: inline-flex; align-items: center; gap: 0.4rem; height: 2.25rem; padding: 0 1rem; flex: none;
    border-radius: 9999px; background: var(--color-base-200); font-size: 0.875rem; white-space: nowrap;
    transition: background-color 0.15s, color 0.15s;
  }
  .chip:hover { background: var(--color-base-300); }
  .chip.is-on { background: var(--color-primary); color: var(--color-primary-content); }

  /* Small white pill on covers: ▶ 14:12 */
  .pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.85rem 0.25rem 0.25rem; border-radius: 9999px; background: oklch(100% 0 0 / 0.9); color: oklch(21% 0.006 286); font-size: 0.75rem; font-weight: 600; backdrop-filter: blur(8px); box-shadow: 0 6px 16px -8px oklch(20% 0.02 280 / 0.4); }
  .pill .btn-black { background: oklch(14% 0.005 286); color: #fff; }

  /* Monospace command-line label */
  .cmd { display: inline-flex; align-items: center; gap: 0.6rem; height: 2.4rem; padding: 0 1rem 0 0.8rem; border-radius: 9999px; border: 1px solid var(--line); background: var(--color-base-200); font: 400 0.85rem/1 ui-monospace, "SF Mono", Menlo, monospace; transition: border-color 0.15s; }
  .cmd:hover { border-color: var(--mute); }
}

/* ---------- Tilted "app window" showcase ---------- */
.tilt-stage { perspective: 1800px; }
.tilt { transform: rotateX(28deg) rotateZ(-14deg) skewX(4deg); transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tilt-stage:hover .tilt { transform: rotateX(20deg) rotateZ(-10deg) skewX(2deg); }
.win { border-radius: 1.5rem; background: var(--win); border: 1px solid var(--line); box-shadow: 0 50px 80px -30px oklch(25% 0.03 280 / 0.28), 0 1px 0 oklch(100% 0 0 / 0.6) inset; }
.win-dots { display: flex; gap: 0.45rem; }
.win-dots i { width: 0.7rem; height: 0.7rem; border-radius: 9999px; background: var(--color-base-300); }
.mockup-window { border-color: var(--line) !important; }

/* Colored glow behind big headlines */
.glow { position: absolute; z-index: -1; border-radius: 9999px; filter: blur(70px); pointer-events: none; }

/* Topic swatch tile */
.swatch-tile { display: grid; place-items: center; aspect-ratio: 1; border-radius: 1.1rem; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s; }
.swatch-tile:hover { transform: translateY(-4px) rotate(-3deg); box-shadow: 0 16px 30px -14px oklch(20% 0.02 280 / 0.45); }
/* Avatars float on a soft shadow (no ring), the picture inset on a thin page-color padding */
.petal-avatar { background: var(--color-base-100); box-shadow: 0 12px 24px -10px oklch(25% 0.03 280 / 0.35), 0 2px 6px -2px oklch(25% 0.03 280 / 0.18); }
.petal-avatar > * { inset: 3px !important; width: calc(100% - 6px) !important; height: calc(100% - 6px) !important; border-radius: inherit; }
/* Large avatars (the author page) get a wider padding */
.petal-avatar-lg > * { inset: 8px !important; width: calc(100% - 16px) !important; height: calc(100% - 16px) !important; }

/* Large topic card: semantic color + white artwork */
.cat-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; min-height: 11rem; padding: 1.4rem; border-radius: 1.5rem; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cat-card:hover { transform: translateY(-4px); }
.cat-card img { position: absolute; right: -1.5rem; bottom: -1.5rem; width: 9rem; height: 9rem; border-radius: 1.5rem; transform: rotate(-12deg); opacity: 0.95; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cat-card:hover img { transform: rotate(-4deg) scale(1.05); }

/* Round arrows of a card rail */
.edge-arrow { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 9999px; background: var(--color-base-100); color: var(--color-base-content); border: 1px solid var(--line); box-shadow: 0 10px 24px -12px oklch(20% 0.02 280 / 0.45); transition: transform 0.15s, background-color 0.15s; }
.edge-arrow:hover { background: var(--color-base-200); }
.edge-arrow:active { transform: scale(0.94); }
.edge-arrow:disabled { opacity: 0.4; pointer-events: none; }
@media (max-width: 639px) { .edge-arrow { display: none; } }

/* Huge numbers */
.big-num { font-family: "Outfit", "Noto Sans SC", sans-serif; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }

/* Text field */
.field { height: 3rem; width: 100%; border: 1px solid var(--line); border-radius: 0.9rem; background: var(--color-base-100); padding: 0 1rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
textarea.field { height: auto; padding: 0.75rem 1rem; }
.field:focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-primary) 18%, transparent); }

/* List title bar: on small screens a title card with the sort / view tools below it, outside the card; from sm up one card. */
.petal-title-bar-head { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 4.5rem; padding: 0.75rem; background: var(--color-base-100); border: 1px solid var(--line); border-radius: 1.25rem; }
.petal-title-bar-head h1 { min-width: 0; }
.petal-title-bar-tools { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.75rem; }
@media (min-width: 640px) {
  .petal-title-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; min-height: 4.5rem; padding: 0.75rem; background: var(--color-base-100); border: 1px solid var(--line); border-radius: 1.25rem; }
  .petal-title-bar-head { display: contents; }
  .petal-title-bar-head h1 { flex: 1 1 14rem; }
  .petal-title-bar-tools { display: contents; }
}

/* "Now playing" equalizer bars */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 1.1rem; color: var(--color-primary); }
.eq i { width: 3px; border-radius: 2px; background: currentColor; animation: eq 0.9s ease-in-out infinite; transform-origin: bottom; }
.eq i:nth-child(1) { height: 40%; animation-delay: -0.2s; }
.eq i:nth-child(2) { height: 100%; animation-delay: -0.5s; background: var(--color-secondary); }
.eq i:nth-child(3) { height: 65%; animation-delay: -0.8s; background: var(--color-accent); }
@keyframes eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

/* Horizontally scrolling card rail */
.rail { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -1rem; padding: 0.25rem 1rem 1rem; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { margin-inline: 0; padding-inline: 0; } }

/* Covers zoom slightly on hover */
.zoom { overflow: hidden; }
.zoom img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.group:hover .zoom img, .zoom:hover img { transform: scale(1.04); }

/* ---------- swup transition: fade in and lift ---------- */
/* The old page only dims and drops a little while the next one loads (never to blank, which flashed the page
   background); the new page then rises from that state. The min-height keeps the footer from jumping. */
.transition-lift { min-height: 70vh; transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.is-animating .transition-lift { opacity: 0.45; transform: translateY(8px); }
html.is-leaving .transition-lift { transition-duration: 0.18s, 0.2s; transition-timing-function: ease-out; }
.swup-progress { position: fixed; inset: 0 auto auto 0; z-index: 99999; height: 3px; width: 0; opacity: 0; background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent)); transition: width 0.4s ease, opacity 0.2s; }
html.is-changing .swup-progress { width: 80%; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .transition-lift, .zoom img, .tilt, .mark, .logo-icon,.cat-card, .cat-card img, .swatch-tile { transition: none; }
  .tilt, .tilt-stage:hover .tilt { transform: none; }
  html.is-animating .transition-lift { transform: none; }
  .eq i { animation: none; }
}

/* ---------- WordPress ---------- */
body.admin-bar .topbar { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { body.admin-bar .topbar { top: 0; } }
/* Leave room for the plugin's player bar inside the footer (not as body padding, which would show the page background below it). */
body.has-ars-player { padding-bottom: 0 !important; }
body.has-ars-player .site-footer { padding-bottom: calc(var(--ars-player-height, 0px) + 2rem); }

/*
 * Play buttons are [data-ars-play] buttons; the plugin's player sets data-ars-state = idle | paused | playing.
 * .petal-when-playing / .petal-when-idle swap icons and labels inside a button, or inside any .petal-item
 * holding one (a card, a row, a hero slide); .petal-item lights up when its episode is in the player.
 */
[data-ars-play] .petal-when-playing,
.petal-item .petal-when-playing { display: none; }
[data-ars-play][data-ars-state="playing"] .petal-when-playing,
.petal-item:has([data-ars-state="playing"]) .petal-when-playing { display: inline-flex; }
[data-ars-play][data-ars-state="playing"] .petal-when-idle,
.petal-item:has([data-ars-state="playing"]) .petal-when-idle { display: none; }
.petal-item .eq { display: none; }
.petal-item:has([data-ars-state="playing"]) .eq { display: inline-flex; }
/* Playing indicator over an episode row's cover: bars in white / pink / teal on a dark veil. */
.petal-eq-cover { display: none; }
.petal-item:has([data-ars-state="playing"]) .petal-eq-cover { display: grid; }
.petal-eq-cover .eq i:first-child { background: currentColor; }
.petal-row:has([data-ars-state="playing"], [data-ars-state="paused"]) { background: var(--color-base-200); }

/* Favorite button: the plugin toggles aria-pressed. */
[data-ars-fav][aria-pressed="true"] { color: var(--color-secondary); }
[data-ars-fav][aria-pressed="true"] svg { fill: currentColor; }

/* Archive lists: list or grid view (listView in app.js); both are printed, CSS shows one. */
[data-view="list"] .petal-view-grid,
[data-view="grid"] .petal-view-list { display: none; }

/* Custom logo. */
.custom-logo-link { display: flex; flex-shrink: 0; }
.custom-logo { width: auto; height: auto; max-width: 200px; max-height: 3rem; object-fit: contain; }

/* Comments. */
.comment-list .children { margin-top: 0.75rem; display: grid; gap: 0.75rem; }
.comment-list .children > li { border-radius: 1rem; background: var(--color-base-200); padding: 0.85rem 1rem; }
.comment-reply-title small a { font-size: 0.875rem; text-decoration: underline; }
.comment-form .required { color: var(--color-error); }
/* HTML allowed in comments: lists, quotes and code keep their meaning; long code scrolls. */
.comment-content > * + * { margin-top: 0.5rem; }
.comment-content ul { list-style: disc; padding-left: 1.25rem; }
.comment-content ol { list-style: decimal; padding-left: 1.25rem; }
.comment-content blockquote { border-left: 3px solid var(--color-primary); padding: 0.25rem 0 0.25rem 0.85rem; font-style: italic; }
.comment-content a { color: var(--color-primary); text-decoration: underline; }
.comment-content code { font-family: var(--font-mono); font-size: 0.9em; }
.comment-content pre { overflow-x: auto; padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--color-base-200); font-family: var(--font-mono); font-size: 0.85rem; }
/* Comments by the post author get a primary accent next to the Host badge. */
.comment-list .bypostauthor > div { border-left: 3px solid var(--color-primary); padding-left: 0.75rem; }

/* Screen-reader text used by WordPress markup. */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Core and plugin widgets added to the Home Top area: a card with readable lists (the theme's own widgets style themselves). */
.ars-petal-home-top > .widget:not([class*="ars-petal-"]) { background: var(--color-base-100); border: 1px solid var(--line); border-radius: 1.5rem; padding: 1.5rem; overflow-wrap: anywhere; }
@media (min-width: 640px) { .ars-petal-home-top > .widget:not([class*="ars-petal-"]) { padding: 2rem; } }
.ars-petal-home-top > .widget:not([class*="ars-petal-"]) :is(ul, ol) { display: grid; gap: 0.4rem; }
.ars-petal-home-top > .widget:not([class*="ars-petal-"]) :is(ul, ol) :is(ul, ol) { margin-top: 0.4rem; margin-left: 0.25rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.ars-petal-home-top > .widget:not([class*="ars-petal-"]) a:hover { color: var(--color-primary); text-decoration: underline; }
.ars-petal-home-top > .widget:not([class*="ars-petal-"]) :is(.post-date, .rss-date) { margin-left: 0.5rem; font-size: 0.8rem; color: var(--mute); }
.ars-petal-home-top > .widget:not([class*="ars-petal-"]) :is(.textwidget, .custom-html-widget) > * + * { margin-top: 0.75em; }
.ars-petal-home-top > .widget:not([class*="ars-petal-"]) :is(.textwidget, .custom-html-widget) ul { list-style: disc; padding-left: 1.25rem; }
.ars-petal-home-top > .widget:not([class*="ars-petal-"]) :is(.textwidget, .custom-html-widget) ol { list-style: decimal; padding-left: 1.25rem; }
.ars-petal-home-top > .widget:not([class*="ars-petal-"]) :is(.textwidget, .custom-html-widget) a { color: var(--color-primary); text-decoration: underline; }
.ars-petal-home-top > .widget:not([class*="ars-petal-"]) blockquote { border-left: 4px solid var(--color-primary); padding: 0.5rem 1rem; background: var(--color-base-200); border-radius: 0.75rem; }
.ars-petal-home-top > .widget:not([class*="ars-petal-"]) select { height: 2.75rem; max-width: 100%; padding: 0 0.75rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--color-base-100); }
.ars-petal-home-top .tagcloud { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.ars-petal-home-top .wp-calendar-table { width: 100%; max-width: 24rem; border-collapse: collapse; text-align: center; }
.ars-petal-home-top .wp-calendar-table caption { margin-bottom: 0.5rem; text-align: left; font-weight: 600; }
.ars-petal-home-top .wp-calendar-table :is(th, td) { padding: 0.35rem 0; }
.ars-petal-home-top .wp-calendar-table th { font-size: 0.8rem; color: var(--mute); }
.ars-petal-home-top .wp-calendar-table td a { font-weight: 600; color: var(--color-primary); }
.ars-petal-home-top .wp-calendar-nav { display: flex; justify-content: space-between; max-width: 24rem; margin-top: 0.5rem; }
