:root {
  --page-bg: #FAFAF8;
  --secondary-bg: #FFF3EB;
  --masthead: #8C2145;
  --masthead-grad: linear-gradient(135deg, #8C2145, #D43949);
  --action: #E85D04;
  --action-hover: #DC2F02;
  --text-main: #2A1B1A;
  --text-sec: #5C4A48;
  --rules: #F2DCD3;
  --notice-surface: #6A1A35;
  --notice-grid: rgba(255, 230, 200, 0.08);
  --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-thumb: 12px;
  --radius-panel: 16px;
  --focus-ring: #FAA307;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--page-bg);
  color: var(--text-main);
  font-family: var(--font-stack);
  font-size: 17px;
  line-height: 1.65;
}

::selection {
  background-color: var(--action);
  color: #FFF;
}

h1, h2, h3, h4 {
  color: var(--text-main);
  margin-top: 0;
  font-weight: 700;
  text-transform: none;
}

h1 { font-size: 36px; margin-bottom: 24px; }
h2 { font-size: 25px; margin-bottom: 20px; }
h3 { font-size: 20px; margin-bottom: 16px; }

@media (max-width: 620px) {
  h1 { font-size: 28px; }
}

a {
  color: var(--action);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  text-decoration: underline;
  color: var(--action-hover);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--action);
  color: #fff;
  padding: 8px;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

.container {
  width: calc(100% - 40px);
  max-width: 1180px;
  margin: 0 auto;
}

.reading-container {
  max-width: 760px;
  margin: 0 auto;
}

section {
  margin-bottom: 44px;
}

@media (max-width: 620px) {
  section { margin-bottom: 28px; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header & Nav */
.masthead-wrapper {
  background: var(--masthead-grad);
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(140, 33, 69, 0.2);
}

.masthead-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand {
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
  padding-left: 24px;
}
.brand:hover { text-decoration: none; color: #FFF; }

.desktop-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  color: #FFFFFF;
  font-size: 15px;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #FFB703;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-link.active, .nav-link:hover, .nav-link:focus {
  color: #FFB703;
  text-decoration: none;
}

.btn-search-toggle {
  background: transparent;
  border: none;
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 16px;
  transition: all 0.3s ease;
}
.btn-search-toggle:hover {
  color: #FFB703;
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 16px;
}

.mobile-nav {
  display: none;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--rules);
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  box-shadow: 0 8px 24px rgba(42, 27, 26, 0.1);
}

.mobile-nav a {
  display: block;
  padding: 16px 24px;
  color: var(--text-main);
  border-bottom: 1px solid var(--rules);
  transition: background-color 0.3s ease;
}
.mobile-nav a:hover {
  background-color: var(--secondary-bg);
  text-decoration: none;
}

@media (max-width: 1040px) {
  .desktop-nav .nav-link { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-nav.open { display: block; }
}

.independence-strip {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--rules);
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-sec);
}

/* Search Panel */
.search-panel {
  background-color: var(--secondary-bg);
  border-bottom: 1px solid var(--rules);
  padding: 24px 0;
  display: none;
}
.search-panel.open {
  display: block;
  animation: fadeInUp 0.4s ease;
}
.search-controls {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  max-width: 600px;
}
.search-controls input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--rules);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}
.search-controls input:focus {
  outline: none;
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
}
.btn-search, .search-controls button {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--action), #F48C06);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-search:hover, .search-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 93, 4, 0.3);
}
.search-controls button#btn-search-clear {
  background: var(--text-sec);
}
.search-controls button#btn-search-clear:hover {
  background: var(--text-main);
  box-shadow: 0 8px 20px rgba(92, 74, 72, 0.3);
}
#search-results {
  margin-top: 16px;
}
.search-result-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rules);
}

/* Home Layout */
.home-intro {
  margin-top: 44px;
}
.eyebrow {
  font-size: 14px;
  color: var(--action);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
  font-weight: bold;
}
.review-date {
  font-size: 13px;
  color: var(--text-sec);
  margin-top: 16px;
}

/* Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 1100px) and (min-width: 621px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .news-grid { grid-template-columns: 1fr; }
}

.card {
  background-color: #FFFFFF;
  border-radius: var(--radius-panel);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  border: 1px solid var(--rules);
  animation: fadeInUp 0.6s ease backwards;
}
.news-grid .card:nth-child(1) { animation-delay: 0.1s; }
.news-grid .card:nth-child(2) { animation-delay: 0.2s; }
.news-grid .card:nth-child(3) { animation-delay: 0.3s; }
.news-grid .card:nth-child(4) { animation-delay: 0.4s; }
.news-grid .card:nth-child(5) { animation-delay: 0.1s; }
.news-grid .card:nth-child(6) { animation-delay: 0.2s; }
.news-grid .card:nth-child(7) { animation-delay: 0.3s; }
.news-grid .card:nth-child(8) { animation-delay: 0.4s; }

.card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 40px rgba(140, 33, 69, 0.12);
  border-color: var(--action);
  background-color: #FFFCFA;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--secondary-bg);
  background-position: center;
  background-size: cover;
  margin-bottom: 16px;
  border-radius: 0;
  transition: filter 0.5s ease;
}
.card:hover .card-thumb {
  filter: brightness(1.05) saturate(1.2);
}

.thumb-lotto { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90'%3E%3Ccircle cx='80' cy='45' r='20' fill='none' stroke='%23E85D04' stroke-width='4'/%3E%3Ccircle cx='50' cy='45' r='15' fill='none' stroke='%238C2145' stroke-width='3'/%3E%3Ccircle cx='110' cy='45' r='15' fill='none' stroke='%238C2145' stroke-width='3'/%3E%3C/svg%3E"); }
.thumb-report { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90'%3E%3Crect x='60' y='20' width='40' height='50' fill='none' stroke='%23E85D04' stroke-width='4' rx='4'/%3E%3Cpath d='M68 35 h24 M68 45 h24 M68 55 h16' stroke='%238C2145' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.thumb-group { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90'%3E%3Cg fill='%23E85D04'%3E%3Ccircle cx='60' cy='35' r='4'/%3E%3Ccircle cx='80' cy='35' r='4'/%3E%3Ccircle cx='100' cy='35' r='4'/%3E%3Ccircle cx='60' cy='45' r='4'/%3E%3Ccircle cx='80' cy='45' r='4'/%3E%3Ccircle cx='100' cy='45' r='4'/%3E%3Ccircle cx='60' cy='55' r='4'/%3E%3Ccircle cx='80' cy='55' r='4'/%3E%3Ccircle cx='100' cy='55' r='4'/%3E%3C/g%3E%3C/svg%3E"); }

.card-meta {
  font-size: 13px;
  color: var(--text-sec);
  margin-bottom: 8px;
  padding: 0 16px;
}
.card-title {
  font-size: 18px;
  margin-bottom: 8px;
  padding: 0 16px;
}
.card-excerpt {
  font-size: 14px;
  margin-bottom: 16px;
  flex-grow: 1;
  padding: 0 16px;
}
.card-link {
  font-size: 15px;
  font-weight: bold;
  align-self: flex-start;
  padding: 0 16px 16px;
}

.pale-block {
  background: linear-gradient(135deg, #FFF3EB, #FFE6D6);
  padding: 60px 0;
  margin: 60px 0;
  border-top: 1px solid var(--rules);
  border-bottom: 1px solid var(--rules);
}
.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 620px) {
  .notes-grid { grid-template-columns: 1fr; gap: 24px; }
}

.faq-row {
  border-bottom: 1px solid var(--rules);
  padding: 16px 0;
  transition: background-color 0.3s ease;
}
.faq-row:hover {
  background-color: var(--secondary-bg);
}
.faq-row summary {
  font-weight: bold;
  cursor: pointer;
  font-size: 18px;
  list-style-type: none;
  position: relative;
  padding: 8px 24px 8px 8px;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary::after {
  content: '+';
  position: absolute;
  right: 8px;
  top: 8px;
  color: var(--action);
  transition: transform 0.3s ease;
}
.faq-row[open] summary::after { content: '-'; transform: rotate(180deg); }
.faq-row p { margin-top: 12px; margin-bottom: 8px; padding: 0 8px; }

.support-strip {
  background-color: var(--secondary-bg);
  padding: 24px;
  border-left: 4px solid var(--action);
  border-radius: 0 var(--radius-thumb) var(--radius-thumb) 0;
  margin: 44px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.support-strip:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.1);
}

/* Footer */
.site-footer {
  background-color: var(--secondary-bg);
  padding: 44px 0;
  margin-top: 60px;
  font-size: 15px;
  border-top: 1px solid var(--rules);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.footer-links a {
  color: var(--text-sec);
}
.footer-links a:hover {
  color: var(--action);
}
.footer-text {
  color: var(--text-sec);
  margin-bottom: 16px;
}
.btn-reopen {
  background: transparent;
  border: 1px solid var(--text-sec);
  color: var(--text-sec);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-reopen:hover {
  background-color: var(--text-sec);
  color: #fff;
}

/* Age Modal */
.age-modal {
  padding: 0;
  border: none;
  border-radius: var(--radius-panel);
  background: transparent;
  max-width: 400px;
  width: calc(100vw - 32px);
  box-shadow: 0 24px 50px rgba(42, 27, 26, 0.3);
}
.age-modal::backdrop {
  background-color: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(5px);
}
.age-panel {
  background-color: var(--notice-surface);
  background-image: linear-gradient(var(--notice-grid) 1px, transparent 1px), linear-gradient(90deg, var(--notice-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 30px;
  color: #FFFFFF;
  border-radius: var(--radius-panel);
  max-height: 90vh;
  overflow-y: auto;
}
.age-badge {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
}
.age-divider {
  width: 34px;
  height: 4px;
  background-color: #FFB703;
  border: none;
  margin: 0 0 20px 0;
  border-radius: 2px;
}
.age-title {
  font-size: 25px;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.age-text {
  font-size: 15px;
  margin-bottom: 24px;
}
.btn-primary {
  background: linear-gradient(135deg, #FFFFFF, #FFF3EB);
  color: var(--masthead);
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}
.btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  width: 100%;
  min-height: 44px;
  border: 1px solid #FFFFFF;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.age-links {
  font-size: 13px;
  margin-bottom: 16px;
}
.age-links a { color: #FFFFFF; text-decoration: underline; margin-right: 12px; }
.age-links a:hover { color: #FFB703; }
.age-independence {
  font-size: 13px;
  opacity: 0.9;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 16px;
  margin-bottom: 8px;
}

/* Articles */
.article-item {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rules);
}
.article-meta {
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 16px;
}
.article-facts {
  background-color: var(--secondary-bg);
  padding: 20px;
  border-radius: 8px;
  margin: 24px 0;
  font-size: 15px;
  border-left: 4px solid var(--action);
}
.article-facts strong { display: inline-block; width: 160px; }
.article-source-marker {
  font-size: 13px;
  margin-top: 24px;
  display: inline-block;
}

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--rules);
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
}
.form-group textarea { height: 120px; resize: vertical; }
.hidden { display: none !important; }
.draft-area { margin-top: 32px; padding: 20px; background: var(--secondary-bg); border-radius: 8px; }
.draft-area textarea { width: 100%; height: 150px; margin-bottom: 16px; font-family: monospace; border-radius: 8px; border: 1px solid var(--rules); padding: 12px; }
.draft-actions { display: flex; gap: 12px; margin-bottom: 12px; }

/* Data Tables / Sources */
.source-list { list-style: none; padding: 0; }
.source-item { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--rules); font-size: 15px; }
.source-title { font-weight: bold; font-size: 16px; margin-bottom: 4px; display: block; }

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--masthead-grad);
  color: #fff;
  padding: 24px;
  box-shadow: 0 -8px 30px rgba(42, 27, 26, 0.2);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-banner-content {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.cookie-text {
  flex: 1 1 400px;
  font-size: 15px;
}
.cookie-text h3 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 20px;
}
.cookie-text p {
  margin: 0;
  color: #F2DCD3;
  line-height: 1.5;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cookie-btn-primary {
  background-color: #FFB703;
  color: #2A1B1A;
  box-shadow: 0 4px 12px rgba(255, 183, 3, 0.2);
}
.cookie-btn-primary:hover {
  background-color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 183, 3, 0.4);
}
.cookie-btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 1px solid #FFB703;
}
.cookie-btn-secondary:hover {
  background-color: rgba(255, 183, 3, 0.15);
}
.cookie-settings-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  background: #fff;
  color: var(--text-main);
  padding: 32px;
  border-radius: var(--radius-panel);
  box-shadow: 0 20px 60px rgba(42, 27, 26, 0.25);
  z-index: 10001;
  width: 90%;
  max-width: 500px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-settings-modal.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(140, 33, 69, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}
.cookie-overlay.show {
  opacity: 1;
  visibility: visible;
}
.cookie-settings-header {
  margin-bottom: 24px;
}
.cookie-settings-header h3 {
  margin: 0;
  font-size: 24px;
  color: var(--masthead);
}
.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rules);
}
.cookie-option-info {
  flex: 1;
  padding-right: 24px;
}
.cookie-option-info h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: var(--masthead);
}
.cookie-option-info p {
  margin: 0;
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.4;
}
/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #D5DDED;
  transition: .4s;
  border-radius: 26px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .slider {
  background-color: var(--action);
}
input:focus + .slider {
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.3);
}
input:checked + .slider:before {
  transform: translateX(22px);
}
input:disabled + .slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

/* Floating Cookie Settings Button */
.btn-cookie-preferences {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--masthead-grad);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(140, 33, 69, 0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-cookie-preferences:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(140, 33, 69, 0.4);
}
.btn-cookie-preferences svg {
  fill: currentColor;
}

@media print {
  .masthead-wrapper, .independence-strip, .site-footer, .search-panel, .age-modal, .skip-link, .btn-reopen, .cookie-banner, .btn-cookie-preferences { display: none !important; }
  body { color: #000; background: #fff; }
  .article-item { border-bottom: 1px solid #ccc; page-break-inside: avoid; }
}