/*
Theme Name: RWS After Dark
Theme URI: https://restaurantwebexperts.com/
Description: Restaurant Web Experts — eat out, travel, play. Dark city-guide and nightlife magazine. Child theme of Twenty Twenty-Five.
Author: JK Web Service
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: rws-afterdark
*/

/* Ad containers: reserve space so ads don't shift the layout */
.rws-ad { text-align: center; overflow: hidden; }
.rws-ad--leaderboard { min-height: 90px; max-width: 970px; margin-left: auto; margin-right: auto; }
.rws-ad--rect { min-height: 250px; }
.rws-ad--infeed { min-height: 120px; }
.rws-ad-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin: 0 0 4px; text-align: center; }

/* Full-width bars keep side padding */
.rws-header, .rws-footer { padding-left: clamp(16px, 4vw, 64px) !important; padding-right: clamp(16px, 4vw, 64px) !important; }
.rws-tagline { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--accent); }

/* Navigation */
.rws-nav a { text-decoration: none; color: var(--wp--preset--color--light); }
.rws-nav a:hover, .rws-nav a:focus { color: var(--wp--preset--color--accent); text-decoration: underline; text-underline-offset: 4px; }
.rws-search .wp-block-search__button { background: transparent !important; color: var(--wp--preset--color--light) !important; border: 0 !important; padding: 6px !important; }
.rws-search .wp-block-search__button:hover { color: var(--wp--preset--color--accent) !important; }
.wp-block-search__input { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--light); border: 1px solid var(--wp--preset--color--line); }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--ground) !important; color: var(--wp--preset--color--light) !important; }

/* Headlines */
.wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--light); }
.wp-block-post-title a:hover { color: var(--wp--preset--color--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Kicker (category label) */
.rws-kicker, .rws-chip { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.rws-kicker a, .rws-chip a { color: var(--wp--preset--color--accent); text-decoration: none; }
.rws-kicker .wp-block-post-terms__separator, .rws-chip .wp-block-post-terms__separator { color: var(--wp--preset--color--muted); }

/* Hero */
.rws-hero { background: var(--wp--preset--color--surface); border-radius: 4px; overflow: hidden; gap: 0 !important; }
.rws-hero .wp-block-post-featured-image { margin: 0; height: 100%; }
.rws-hero-text { padding: 40px; display: flex; flex-direction: column; gap: 16px; justify-content: flex-end; }
.rws-hero-text .wp-block-post-title { margin: 0; }
.rws-cta { align-self: flex-start; background: var(--wp--preset--color--accent); color: #141117 !important; font-weight: 600; padding: 13px 22px; text-decoration: none; }
.rws-cta:hover { background: #ffd08a; }

/* Section heads */
.rws-section-head h2 { margin: 0; }
.rws-more { margin: 0; font-weight: 600; }
.rws-more a { text-decoration: none; }
.rws-more a::after { content: " \2192"; }
.rws-rule { border-bottom: 2px solid var(--wp--preset--color--accent); padding-bottom: 8px; margin-bottom: 16px !important; }
.rws-gaming-head h2 { margin: 0; }
.rws-18 { margin: 0; border: 1px solid var(--wp--preset--color--light); font-size: 12px; font-weight: 600; padding: 3px 8px; }

/* Cards */
.rws-card .wp-block-post-title { margin: 0; }
.rws-card .wp-block-post-featured-image { margin: 0; }

/* Footer */
.rws-footer p { margin: 0; }
.rws-footer-brand { font-family: var(--wp--preset--font-family--shoulders); font-weight: 800; font-size: 24px; text-transform: uppercase; color: var(--wp--preset--color--light); }
.rws-footer-links a { color: var(--wp--preset--color--light); text-decoration: none; }
.rws-footer-links a:hover { color: var(--wp--preset--color--accent); text-decoration: underline; }
.rws-rg { font-size: 13px; }

/* 18+ note on gaming posts */
.rws-rg-note { border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--surface); padding: 12px 16px; font-size: 14px; color: var(--wp--preset--color--muted); }
.rws-rg-note strong { color: var(--wp--preset--color--accent); margin-right: 6px; }

/* Article list rows (archives) */
.rws-row .wp-block-post-featured-image, .rws-row .rws-noimg { flex: 0 0 200px; width: 200px; }

/* Fallback when a post has no featured image */
.rws-noimg { display: flex; align-items: flex-end; box-sizing: border-box; padding: 12px; background-color: #2a2430; background-image: repeating-linear-gradient(90deg, rgba(244,178,74,.08) 0 2px, transparent 2px 16px); color: var(--wp--preset--color--muted); font-weight: 600; font-size: 13px; text-decoration: none; aspect-ratio: 16 / 10; border-radius: 4px; }

/* Single post body on dark */
.wp-block-post-content a { color: var(--wp--preset--color--accent); }
.wp-block-post-content blockquote { border-left: 3px solid var(--wp--preset--color--accent); padding-left: 18px; font-style: italic; }
.wp-block-post-content table td, .wp-block-post-content table th { border-color: var(--wp--preset--color--line); }
.wp-block-post-content :where(h1,h2,h3,h4) { text-transform: none; font-family: var(--wp--preset--font-family--work); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.single .wp-block-post-title { text-transform: none; font-family: var(--wp--preset--font-family--work); font-weight: 600; letter-spacing: 0; line-height: 1.15; }
.wp-block-post-date, .wp-block-categories a { color: var(--wp--preset--color--muted); }
.wp-block-query-pagination a { color: var(--wp--preset--color--accent); }

/* Sticky sidebar ad */
.rws-sticky { position: sticky; top: 24px; }

@media (max-width: 781px) {
  .rws-row { flex-wrap: nowrap !important; }
  .rws-row .wp-block-post-featured-image, .rws-row .rws-noimg { flex-basis: 110px; width: 110px; }
  .rws-sidebar { margin-top: 32px; }
  .rws-hero-text { padding: 24px; }
  .rws-hero .wp-block-post-featured-image { height: 260px !important; }
}
