/* Office Lottery Pool · Direction C "Daylight Draw" */

:root {
  --olp-radius: 14px;
}

body { -webkit-font-smoothing: antialiased; }

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--wp--preset--color--green);
  outline-offset: 2px;
}

/* Skip link */
.olp-skip { position: absolute; left: -9999px; top: 0; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--lime); padding: .6rem 1rem; z-index: 1000; }
.olp-skip:focus { left: 1rem; top: 1rem; }

/* Eyebrow */
.olp-eyebrow, .is-style-eyebrow {
  font-family: var(--wp--preset--font-family--display);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--wp--preset--color--green);
}
.olp-eyebrow--lime { color: var(--wp--preset--color--lime); }

/* Cards and panels */
.is-style-card {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--olp-radius);
}
.is-style-panel {
  background: var(--wp--preset--color--ink);
  color: #F3F5F9;
  border-radius: 22px;
}
.is-style-panel a { color: var(--wp--preset--color--lime); }
.is-style-panel h1, .is-style-panel h2, .is-style-panel h3 { color: #F3F5F9; }
.olp-panel-text { color: var(--wp--preset--color--panel-text); }
.olp-small { font-size: .85rem; line-height: 1.5; }
.olp-tag { font-size: .7rem; background: var(--wp--preset--color--panel-line); color: var(--wp--preset--color--lime); padding: .25rem .5rem; border-radius: 6px; font-weight: 700; letter-spacing: .06em; }

/* Buttons */
.wp-block-button.is-style-outline-light .wp-block-button__link {
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--ink);
  border: 1px solid #C9CFDD;
}
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: var(--wp--preset--color--line); color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-lime .wp-block-button__link { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-lime .wp-block-button__link:hover { background: #d9ff7a; color: var(--wp--preset--color--ink); }

/* Ticker */
.olp-ticker {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
  background: var(--wp--preset--color--ink); color: #F3F5F9;
  padding: .6rem 1.5rem; font-size: .9rem;
}
.olp-ticker__label { font-family: var(--wp--preset--font-family--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; color: var(--wp--preset--color--lime); }
.olp-ticker__game { display: inline-flex; align-items: center; gap: .6rem; }
.olp-ticker__name { color: var(--wp--preset--color--panel-text); }
.olp-ticker__balls { display: inline-flex; gap: .3rem; }
.olp-ticker__source { margin-left: auto; font-size: .75rem; color: #7D879C; }
.olp-ball {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--wp--preset--color--panel-line); color: #F3F5F9;
  font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: .8rem;
}
.olp-ball--special { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--ink); }

/* Latest draw card */
.olp-latest { display: flex; flex-direction: column; gap: .9rem; }
.olp-latest__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.olp-latest__date { font-size: .85rem; color: #7D879C; }
.olp-latest__balls { display: flex; gap: .4rem; flex-wrap: wrap; }
.olp-latest__balls .olp-ball { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 10px; }

/* Frequency grid */
.olp-freq { display: flex; flex-direction: column; gap: .9rem; }
.olp-freq__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.olp-freq__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; }
.olp-freq__cell { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; border-radius: 6px; background: var(--wp--preset--color--panel-line); color: #F3F5F9; font-size: .75rem; line-height: 1.1; }
.olp-freq__n { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: .85rem; }
.olp-freq__c { color: var(--wp--preset--color--panel-text); font-size: .65rem; }
.olp-freq__cell--1 { background: #3C5420; }
.olp-freq__cell--2 { background: #5F7F2E; }
.olp-freq__cell--3 { background: #8FBF3A; color: var(--wp--preset--color--ink); }
.olp-freq__cell--3 .olp-freq__c { color: #1F2840; }
.olp-freq__cell--4 { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--ink); }
.olp-freq__cell--4 .olp-freq__c { color: #1F2840; }

/* Disclosure */
.olp-disclosure {
  background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--olp-radius); padding: 1.2rem 1.4rem; font-size: .9rem; line-height: 1.6; color: var(--wp--preset--color--ink-soft);
}
.olp-disclosure strong { color: var(--wp--preset--color--ink); }

/* Post cards in query loops */
.olp-card-grid .wp-block-post { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: var(--olp-radius); padding: 1.2rem; }
.olp-card-grid .wp-block-post-featured-image img { border-radius: 10px; }
.olp-card-grid .wp-block-post-title { font-size: 1.25rem; }
.olp-card-grid .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.olp-card-grid .wp-block-post-title a:hover { color: var(--wp--preset--color--green); }

/* Header */
.olp-header { background: var(--wp--preset--color--surface); border-bottom: 1px solid var(--wp--preset--color--line); }
.olp-logo { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.olp-logo a { color: var(--wp--preset--color--ink); text-decoration: none; }

/* Footer */
.olp-footer { color: var(--wp--preset--color--ink-muted); font-size: .9rem; }
.olp-footer a { color: var(--wp--preset--color--ink-muted); }

/* Images and media never overflow */
img, video { max-width: 100%; height: auto; }

@media (max-width: 600px) {
  .olp-ticker { padding: .6rem 1rem; font-size: .8rem; }
  .olp-ticker__source { margin-left: 0; }
  .olp-ball { width: 24px; height: 24px; font-size: .7rem; }
}
