/* IrishECasino.com — regulatory hub styles */
:root {
  --ink: #14291f;
  --ink-soft: #3c5348;
  --paper: #faf9f4;
  --paper-raised: #ffffff;
  --line: #dcd9cc;
  --gold: #b8923c;
  --gold-soft: #f3ead3;
  --green-live: #1f7a4d;
  --amber-open: #a06e14;
  --slate-phase: #5a6b75;
  --red-note: #9c3a2e;
  --max: 1080px;
  --radius: 6px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
}
a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Header */
.topbar {
  background: var(--ink);
  color: #efe9d8;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 7px 20px;
  text-align: center;
}
.topbar strong { color: #e9c96b; font-weight: 600; }
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 20px 0;
}
.brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brandlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brandlink .mark { height: 34px; width: auto; flex-shrink: 0; display: block; }
.brandlink .wordmark {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brandlink .wordmark .ie { color: var(--gold); }
.brandlink:hover .wordmark { color: var(--gold); }
.brand .tagline { font-size: 13px; color: var(--ink-soft); letter-spacing: .02em; }
nav.main {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
nav.main a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 14px;
  border-bottom: 3px solid transparent;
  color: var(--ink-soft);
}
nav.main a:hover { color: var(--ink); }
nav.main a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* Layout */
main { max-width: var(--max); margin: 0 auto; padding: 44px 20px 70px; }
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 21ch;
}
.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-top: 16px;
}
h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  margin: 48px 0 14px;
  letter-spacing: -0.01em;
}
h3 { font-size: 17px; margin: 26px 0 8px; }
p { max-width: 68ch; margin-bottom: 14px; }
ul, ol { max-width: 68ch; margin: 0 0 16px 22px; }
li { margin-bottom: 6px; }

/* Status badges — the site's signature system */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px 2px;
  border-radius: 99px;
  border: 1px solid;
  white-space: nowrap;
}
.badge.live { color: var(--green-live); border-color: var(--green-live); background: #eaf4ee; }
.badge.open { color: var(--amber-open); border-color: var(--amber-open); background: #f8f1e0; }
.badge.phase { color: var(--slate-phase); border-color: var(--slate-phase); background: #eef1f3; }
.badge.club { color: var(--ink-soft); border-color: var(--ink-soft); background: #efeee7; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 16px 18px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 26px 0;
  font-size: 14px;
}
.legend > div { display: flex; align-items: center; gap: 8px; }

/* Cards & tables */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 18px;
  margin: 26px 0;
}
.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-top: 0; font-family: var(--serif); font-size: 20px; }
.card p { font-size: 15px; color: var(--ink-soft); margin-bottom: 10px; }
.card .meta { font-size: 13px; color: var(--ink-soft); }
.card a.more { font-size: 14.5px; font-weight: 600; }

table.reg {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
table.reg th {
  text-align: left;
  font-size: 12.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: #f2f0e8;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
table.reg td {
  padding: 13px 14px;
  
  border-bottom: 1px solid #eceadf;
  vertical-align: top;
}
table.reg tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* Timeline */
.timeline { margin: 30px 0; border-left: 3px solid var(--gold); padding-left: 26px; }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--gold);
}
.tl-item.done::before { background: var(--gold); }
.tl-date { font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); }
.tl-item h3 { margin: 3px 0 4px; }
.tl-item p { font-size: 15px; color: var(--ink-soft); margin-bottom: 0; }

/* Notices */
.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 26px 0;
  font-size: 15px;
  max-width: 72ch;
}
.notice.rg { border-left-color: var(--green-live); background: #eaf4ee; }
.notice strong { font-weight: 600; }

/* FAQ */
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  margin-bottom: 10px;
  padding: 0 18px;
  max-width: 74ch;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style-position: outside;
}
details p { padding-bottom: 14px; font-size: 15px; }

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #cfd8cf;
  font-size: 14px;
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}
footer.site h4 {
  color: #e9c96b;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
footer.site a { color: #e6ece0; text-decoration-color: rgba(233,201,107,.6); }
footer.site ul { list-style: none; margin: 0; }
footer.site li { margin-bottom: 8px; }
.foot-legal {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 18px 20px;
  text-align: center;
  font-size: 12.5px;
  color: #9fb0a2;
}
.age-mark {
  display: inline-block;
  border: 2px solid #e9c96b;
  color: #e9c96b;
  border-radius: 50%;
  width: 34px; height: 34px;
  line-height: 30px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}

@media (max-width: 760px) {
  .foot-inner { grid-template-columns: 1fr; gap: 24px; }
  nav.main { gap: 0; }
  nav.main a { padding: 9px 10px; font-size: 13.5px; }
}

/* Timeline status flags (flip data-status to update) */
.tl-flag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 8px;
  vertical-align: middle;
}
.tl-item[data-status="confirmed"] .tl-flag { color: var(--green-live); background: #eaf4ee; border: 1px solid var(--green-live); }
.tl-item[data-status="pending"]   .tl-flag { color: var(--slate-phase); background: #eef1f3; border: 1px solid var(--slate-phase); }
.tl-item[data-status="confirmed"]::before { background: var(--gold); }
.tl-item[data-status="pending"]::before   { background: var(--paper); }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; background: #eceadf; padding: 1px 5px; border-radius: 4px; }

/* Brand row + site search */
.brandrow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sitesearch { display: flex; gap: 0; flex-shrink: 0; }
.sitesearch input[type="search"] {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 8px 12px;
  width: 210px;
}
.sitesearch input[type="search"]::placeholder { color: #9a9a92; }
.sitesearch button {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 8px 16px;
  cursor: pointer;
}
.sitesearch button:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

@media (max-width: 760px) {
  .brandrow { gap: 14px; }
  .sitesearch { width: 100%; }
  .sitesearch input[type="search"] { width: 100%; }
}

/* ---------- Google Programmable Search (cx a5047a372c8264c9c) ---------- */
.search-page .sitesearch { display: none; }   /* avoid two search boxes on search.html */

.gcse-wrap { margin-top: 26px; min-height: 220px; max-width: 100%; overflow-x: hidden; }

/* Google injects table-based markup that can force horizontal overflow on phones.
   These rules keep it inside the viewport without breaking its behaviour. */
.gcse-wrap .gsc-control-cse {
  font-family: var(--sans) !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  max-width: 100% !important;
}
.gcse-wrap table,
.gcse-wrap td,
.gcse-wrap .gsc-table-result,
.gcse-wrap .gsc-input-box { max-width: 100% !important; }
.gcse-wrap .gsc-search-box, .gcse-wrap .gsc-input { width: 100% !important; }
.gcse-wrap input.gsc-input {
  font-family: var(--sans) !important;
  font-size: 16px !important;      /* 16px stops iOS Safari zooming on focus */
  padding: 6px 8px !important;
  box-sizing: border-box !important;
}
.gcse-wrap .gsc-search-button-v2 {
  padding: 9px 18px !important;
  border-radius: var(--radius) !important;
  background: var(--ink) !important;
  border-color: var(--ink) !important;
}
.gcse-wrap .gsc-result { border-bottom: 1px solid var(--line) !important; padding: 12px 0 !important; }
.gcse-wrap .gs-title, .gcse-wrap .gs-title b { color: var(--ink) !important; }
.gcse-wrap .gs-snippet { color: var(--ink-soft) !important; }
.gcse-wrap .gsc-webResult.gsc-result:hover { background: transparent !important; }
.gcse-wrap .gsc-results-wrapper-overlay { max-width: 96vw !important; }
.gcse-wrap .gs-web-image-box, .gcse-wrap .gs-promotion-image-box { display: none !important; }

/* ---------- Mobile hardening ---------- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, svg, iframe, table { max-width: 100%; }
h1, h2, h3, p, li, td { overflow-wrap: break-word; }
main a { overflow-wrap: anywhere; }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .topbar { font-size: 11.5px; line-height: 1.45; padding: 8px 14px; }
  .site-inner { padding: 18px 16px 0; }
  main { padding: 30px 16px 52px; }
  .brand { flex-direction: column; align-items: flex-start; gap: 4px; }
  .brandlink .wordmark { font-size: 23px; }
  .brandlink .mark { height: 29px; }
  .brand .tagline { font-size: 12.5px; }
  .lede { font-size: 17px; }
  h2 { font-size: 22px; margin: 36px 0 12px; }
  .card { padding: 18px; }
  .legend { gap: 10px 16px; padding: 14px; font-size: 13.5px; }
  .timeline { padding-left: 20px; }
  .tl-item::before { left: -27px; }
  table.reg { font-size: 14px; }
  table.reg th, table.reg td { padding: 10px 11px; }
  .notice { padding: 14px 16px; font-size: 14.5px; }
  details { padding: 0 14px; }
  .foot-inner { padding: 32px 16px; }
  /* 16px input font prevents iOS Safari auto-zoom on focus; taller targets for thumbs */
  .sitesearch input[type="search"] { font-size: 16px; padding: 11px 12px; }
  .sitesearch button { font-size: 15px; padding: 11px 18px; }
  .brandrow { flex-direction: column; align-items: stretch; }
}

@media (max-width: 620px) {
  /* 8 nav items: allow a tidy two-line wrap with a clear row gap */
  nav.main { gap: 0 2px; row-gap: 0; margin-top: 12px; }
  nav.main a { padding: 8px 9px; font-size: 13.5px; }
}

@media (max-width: 400px) {
  .brand .tagline { display: none; }   /* reclaim space on the smallest phones */
  nav.main a { padding: 7px 7px; font-size: 12.5px; letter-spacing: -0.005em; }
}
