/*
 * PostThisDeal "Daylight" look (theme 1.23.0). Replaces the dark Obsidian look (1.22.x), which
 * visitors found hard on the eyes. Light, airy pages; the brand family kept: ink #14171C for text
 * and dark buttons, orange #D13D10 for the main action, lime #D7FF38 only as a highlight fill under
 * ink text (never lime text on white), green #127A45 for savings.
 *
 * Every text pair is at least WCAG AA (4.5:1): ink/white 18:1, muted #5B6270/white 6.1:1,
 * white/orange 4.8:1, orange/white 4.8:1, green/white 5.4:1, ink/lime 15.6:1.
 *
 * It only sets the shared colour tokens (Core's frontend.css and every plugin read them) and adds a
 * few layout touches for scanning deals. Turn it off with the filter `ptd_theme_daylight` (false).
 */
html.ptd-lt {
	color-scheme: light;
	--ptd-navy: #14171c; --ptd-navy-soft: #2b3039; --ptd-text: #1f232b; --ptd-muted: #5b6270;
	--ptd-coral: #d13d10; --ptd-coral-dark: #b0330c; --ptd-coral-soft: #fff1ea;
	--ptd-yellow: #d7ff38; --ptd-yellow-soft: #f6ffd9;
	--ptd-green: #127a45; --ptd-green-soft: #e8f6ee;
	--ptd-blue: #1d6fe0; --ptd-blue-soft: #eaf2fe;
	--ptd-red: #c62828; --ptd-red-soft: #fdecea;
	--ptd-bg: #ffffff; --ptd-bg-alt: #f6f6f3; --ptd-border: #e7e7e2;
	--ptd-shadow: 0 1px 2px rgba(20, 23, 28, .05), 0 6px 20px rgba(20, 23, 28, .05);
	--ptd-shadow-hover: 0 2px 6px rgba(20, 23, 28, .08), 0 14px 32px rgba(20, 23, 28, .09);
	--ptd-page: #fafaf8;
	background: var(--ptd-page);
}

/* Page: a barely-warm off-white so white cards and panels stand out without heavy borders. */
html.ptd-lt body { background: var(--ptd-page); color: var(--ptd-text); text-rendering: optimizeLegibility; }
html.ptd-lt ::selection { background: #d7ff38; color: #14171c; }
html.ptd-lt h1, html.ptd-lt h2, html.ptd-lt h3, html.ptd-lt h4 { color: #14171c; letter-spacing: -.012em; }

/* One focus style everywhere: a blue ring that shows on white, lime and orange alike. */
html.ptd-lt :focus-visible, html.ptd-lt .ptd-btn:focus-visible { outline: 3px solid #1d6fe0; outline-offset: 2px; }

/* Header: white, hairline, no glare. */
html.ptd-lt .ptd-header { background: rgba(255, 255, 255, .96); border-bottom-color: #ecece7; }
html.ptd-lt .ptd-menu a:hover, html.ptd-lt .ptd-menu .current-menu-item > a { background: #f2f2ee; }
html.ptd-lt .ptd-announce { background: #14171c; color: #fff; }
html.ptd-lt .ptd-announce a { color: #d7ff38; }

/* Buttons: orange for the one action that matters (Get deal), ink for the rest. */
html.ptd-lt .ptd-btn--primary { background: #d13d10; color: #fff; }
html.ptd-lt .ptd-btn--primary:hover { background: #b0330c; color: #fff; box-shadow: 0 6px 16px rgba(209, 61, 16, .22); }
html.ptd-lt .ptd-btn--secondary { background: #14171c; color: #fff; }
html.ptd-lt .ptd-btn--secondary:hover { background: #2b3039; color: #fff; }
html.ptd-lt .ptd-btn--ghost { background: #fff; border-color: #dcdcd6; color: #14171c; }
html.ptd-lt .ptd-btn--ghost:hover { border-color: #14171c; }
html.ptd-lt .ptd-btn--white:hover { background: #d7ff38; color: #14171c; }

/* Deal cards: white tiles on the off-white page; price in ink, saving in green, the % badge lime. */
html.ptd-lt .ptd-card { background: #fff; border-color: #ebebe6; }
html.ptd-lt .ptd-card--v2 { box-shadow: 0 1px 2px rgba(20, 23, 28, .04); }
html.ptd-lt .ptd-card--v2:hover { box-shadow: 0 10px 28px rgba(20, 23, 28, .10); border-color: #dcdcd6; }
html.ptd-lt .ptd-card__discount, html.ptd-lt .ptd-deal__discount-badge { background: #d7ff38 !important; color: #14171c !important; box-shadow: 0 1px 0 rgba(20, 23, 28, .08), 0 2px 6px rgba(20, 23, 28, .10) !important; font-weight: 900; }
html.ptd-lt .ptd-card__title, html.ptd-lt .ptd-card__title a { color: #14171c; }
html.ptd-lt .ptd-card__deal-price, html.ptd-lt .ptd-deal__price { color: #14171c; }
html.ptd-lt .ptd-card__regular-price, html.ptd-lt .ptd-deal__regular { color: #6b7280; }
html.ptd-lt .ptd-card__save, html.ptd-lt .ptd-deal__saved { background: #e8f6ee; color: #127a45; }
html.ptd-lt .ptd-card__hook { color: #b0330c; }
/* "Price as posted · shipping not stated" got squeezed between the vote and the button and wrapped
   over four lines: it now sits on its own line above them. */
html.ptd-lt .ptd-card__foot { flex-wrap: wrap; border-top-color: #f0f0ec; }
html.ptd-lt .ptd-card__posted { order: -1; flex: 1 0 100%; font-size: .74rem; line-height: 1.35; color: #6b7280; }

/* The deal page's hook line was bold red (shops often write it in capitals): calm dark grey now,
   so the price and the button stay the loudest things on the page. */
html.ptd-lt .ptd-deal__hook, html.ptd-lt .ptd-deal--v3 .ptd-deal__hook { color: #3a4049; font-weight: 500; }

/* Panels that sat on navy keep a dark ink panel (small areas only), with lime as the accent. */
html.ptd-lt .ptd-footer { background: #14171c; color: #c5c9d0; }
html.ptd-lt .ptd-footer a { color: #e3e5e8; }
html.ptd-lt .ptd-footer a:hover { color: #d7ff38; }

/* Reading: comfortable measure and underlined links in articles and pages. */
html.ptd-lt .ptd-prose, html.ptd-lt .entry-content { color: #1f232b; }
html.ptd-lt .ptd-prose a, html.ptd-lt .entry-content a:not([class]) { color: #b0330c; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
html.ptd-lt .ptd-prose a:hover, html.ptd-lt .entry-content a:not([class]):hover { text-decoration-thickness: 2px; }
html.ptd-lt .ptd-prose blockquote { border-left-color: #c8ea2a; background: #f8fde6; }
html.ptd-lt .ptd-prose th { background: #f6f6f3; }

/* Disclosures stay readable but quiet. */
html.ptd-lt .ptd-deal__disclosure { background: #f6f6f3; border-left-color: #14171c; }
html.ptd-lt .ptd-deal__disclosure--affiliate { border-left-color: #c8ea2a; }

/* Forms: clear edges and a lime-free focus (lime isn't visible on white). */
html.ptd-lt input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), html.ptd-lt select, html.ptd-lt textarea { border-color: #d6d6d0; background-color: #fff; color: #14171c; }
html.ptd-lt input::placeholder, html.ptd-lt textarea::placeholder { color: #7a818c; }

@media (prefers-reduced-motion: reduce) { html.ptd-lt * { scroll-behavior: auto !important; } }

/* The shopping assistant's own orange (#FF6600, white text 2.9:1) joins the site's orange. */
html.ptd-lt .ptda { --a-orange: #d13d10; --a-orange-dark: #b0330c; --a-orange-soft: #fff1ea; }
html.ptd-lt .ptda__bubble { box-shadow: 0 8px 24px rgba(209, 61, 16, .28), 0 2px 6px rgba(20, 23, 28, .15); }
