/*
 * internationlottery / layout.css
 * Self-contained stylesheet for the INTERNation Millions skin.
 *
 * Section A — a minimal Bootstrap-4 subset (only the classes the ported pages
 *   actually use: the 12-col responsive grid, img-fluid, center, buttons, tables,
 *   modal, and the spacing/display utilities). The live site pulled full Bootstrap
 *   4.1.3 + a 2.05 MB Meteor bundle out of the CDN; we vendor just the used rules
 *   so the skin has zero runtime framework dependency.
 * Section B — the brand rules extracted VERBATIM from the live host-scoped CSS
 *   (docs/recon/extracts/internationlottery/desktop/assets/3091d8e8b8cb1a76.css,
 *   selectors under `.internationlottery`). The one relative background-image
 *   url() (the digit ball, b6013f7b944f902e.png) is rewritten to an absolute
 *   /assets path so it resolves on every route (CLAUDE.md shared-partial rule).
 *
 * Palette (from live): purple/orange brand — orange #ff8c00 accents, purple
 * ribbons; result digits sit on a blue-ringed white ball.
 */

/* ============================================================== *
 * SECTION A — Bootstrap 4 subset (only the used classes)
 * ============================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -ms-overflow-style: scrollbar; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: left;
  background-color: #fff;
}
img { vertical-align: middle; border-style: none; }
.img-fluid { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }
p { margin-top: 0; margin-bottom: 1rem; }
ul { margin-top: 0; margin-bottom: 1rem; }
a { color: #007bff; text-decoration: none; background-color: transparent; }
a:hover { color: #0056b3; text-decoration: underline; }
center { display: block; text-align: center; }

/* Grid container. The live page used .container-fluid width everywhere via the
   Meteor shell; the reference markup nests plain .row/.col-* directly, so we make
   the outer wrapper full-width with a little horizontal breathing room. */
.container-fluid, .site {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

/* 12-column flex grid + responsive column classes actually used by the markup:
   col-3, col-6, col-12, col-xl-2/3/4/6/7/8, col-lg-*, col-md-12, col-sm-12. */
[class^="col-"], [class*=" col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
.col-3  { flex: 0 0 25%;        max-width: 25%; }
.col-6  { flex: 0 0 50%;        max-width: 50%; }
.col-7  { flex: 0 0 58.33333%;  max-width: 58.33333%; }
.col-12 { flex: 0 0 100%;       max-width: 100%; }

/* sm ≥576, md ≥768, lg ≥992, xl ≥1200 — matching Bootstrap 4 breakpoints. */
@media (min-width: 576px) {
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 768px) {
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 16.66667%; max-width: 16.66667%; }
  .col-lg-3 { flex: 0 0 25%;       max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
  .col-lg-5 { flex: 0 0 41.66667%; max-width: 41.66667%; }
  .col-lg-6 { flex: 0 0 50%;       max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.33333%; max-width: 58.33333%; }
  .col-lg-8 { flex: 0 0 66.66667%; max-width: 66.66667%; }
}
@media (min-width: 1200px) {
  .col-xl-2 { flex: 0 0 16.66667%; max-width: 16.66667%; }
  .col-xl-3 { flex: 0 0 25%;       max-width: 25%; }
  .col-xl-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
  .col-xl-5 { flex: 0 0 41.66667%; max-width: 41.66667%; }
  .col-xl-6 { flex: 0 0 50%;       max-width: 50%; }
  .col-xl-7 { flex: 0 0 58.33333%; max-width: 58.33333%; }
  .col-xl-8 { flex: 0 0 66.66667%; max-width: 66.66667%; }
}

/* Responsive display utilities (d-*-block / d-*-none) the header markup uses to
   hide the ribbon columns below lg. Mobile-first: base is the smallest bucket. */
.d-none { display: none !important; }
.d-block { display: block !important; }
@media (min-width: 576px) { .d-sm-none { display: none !important; } .d-sm-block { display: block !important; } }
@media (min-width: 768px) { .d-md-none { display: none !important; } .d-md-block { display: block !important; } }
@media (min-width: 992px) { .d-lg-none { display: none !important; } .d-lg-block { display: block !important; } }
@media (min-width: 1200px){ .d-xl-none { display: none !important; } .d-xl-block { display: block !important; } }

/* Buttons — only the .btn-outline-success .btn-sm .btn-block "Prev" button. */
.btn {
  display: inline-block;
  font-weight: 400;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  cursor: pointer;
}
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; line-height: 1.5; border-radius: 0.2rem; }
.btn-block { display: block; width: 100%; }
.btn-outline-success { color: #28a745; border-color: #28a745; }
.btn-outline-success:hover { color: #fff; background-color: #28a745; border-color: #28a745; text-decoration: none; }
.btn-link { font-weight: 400; color: #007bff; }
.btn-link:hover { color: #0056b3; text-decoration: underline; }

/* Tables — result history table on /result. */
table { border-collapse: collapse; }
.table { width: 100%; margin-bottom: 1rem; color: #212529; }
.table th, .table td { padding: 0.75rem; vertical-align: middle; border-top: 1px solid #dee2e6; }
.table thead th { vertical-align: bottom; border-bottom: 2px solid #dee2e6; }
.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(0, 0, 0, 0.05); }

/* Cards — mobile result cards on /result. */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
}
.card-body { flex: 1 1 auto; padding: 1.25rem; }

/* Spacing utilities used by the markup (m/p, y/b/t axes; steps 1-5). */
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }

/* Text/align utilities. */
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-warning { color: #ffc107 !important; }
.small { font-size: 80%; font-weight: 400; }
.align-items-center { align-items: center !important; }

/* Modal — the result detail popup + live-draw modal (Bootstrap-markup compatible,
   driven by the vendored index.js: it toggles .show + inline display). */
.modal {
  position: fixed;
  top: 0; left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}
.modal.show { overflow-x: hidden; overflow-y: auto; }
.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  max-width: 500px;
  pointer-events: none;
}
.modal-lg { max-width: 800px; }
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  outline: 0;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}
.modal-title { margin-bottom: 0; line-height: 1.5; }
.modal-body { position: relative; flex: 1 1 auto; padding: 1rem; }
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem;
  border-top: 1px solid #dee2e6;
}
.modal .close {
  padding: 1rem;
  margin: -1rem -1rem -1rem auto;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  opacity: 0.5;
  cursor: pointer;
}
.modal .close:hover { opacity: 0.75; }
.modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}
.modal-backdrop.show { opacity: 0.5; }
body.modal-open { overflow: hidden; }
.two-column { display: flex; flex-wrap: wrap; justify-content: center; }
.two-column .col { flex: 1 1 45%; padding: 0.5rem; }

/* ============================================================== *
 * SECTION B — internationlottery brand rules (VERBATIM from live)
 * source: docs/recon/extracts/internationlottery/desktop/assets/3091d8e8b8cb1a76.css
 * (only the digit-ball url() rewritten to an absolute /assets path).
 * ============================================================== */

.marginBottom20 { margin-bottom: 2rem; }
.padding20 { padding: 2rem; }

.internationlottery .applynow { max-width: 60%; }
.internationlottery .claimtickets { max-width: 70%; margin-bottom: -2rem; z-index: 9999; }
.internationlottery .banner1 { margin-top: 5rem; margin-bottom: 5rem; position: relative; border: .2rem solid purple; padding-top: 5rem; padding-bottom: 5rem; }
.internationlottery .banner1 h3 { font-weight: 700; color: orange; }
.internationlottery .banner1 .banner1_img { position: absolute; left: 0; margin-top: -40%; width: inherit; }
.internationlottery .stickright { height: 15rem; position: absolute; top: 0; right: 0; margin-top: 10rem; z-index: 9999; }
.internationlottery .menu { display: flex; flex-direction: row; flex-wrap: nowrap; width: 100%; justify-content: center; list-style-type: none; }
.internationlottery .menu li { float: left; margin-right: 1rem; font-weight: 700; }
.internationlottery .menusect { justify-content: center; }
.internationlottery .dailyresult { border: .01rem solid #000; padding: 1rem; }
.internationlottery .dailyresult h6 { color: orange; }
.internationlottery .dailyresultrow { margin-bottom: 1rem; }
.internationlottery .dailyresultsingle { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; }
.internationlottery .dailyresultdigit {
  background-image: url(/assets/templates/internationlottery/assets/b6013f7b944f902e.png);
  background-repeat: no-repeat;
  background-size: 2rem 2rem;
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  color: #000;
  /* live rule also centers the digit inside the ball */
  display: flex;
  justify-content: center;
  align-items: center;
}
.internationlottery .lastPrizes .digit { background-size: 3rem 3rem; width: 3rem !important; height: 3rem !important; font-size: 1.5rem !important; }
.internationlottery .lastPrizes .digit,
.internationlottery .secondaryPrizes .digit {
  background-image: url(/assets/templates/internationlottery/assets/b6013f7b944f902e.png);
  background-repeat: no-repeat;
  text-align: center;
  vertical-align: middle;
  margin-bottom: .5rem !important;
  margin-top: .5rem !important;
  color: #000;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.internationlottery .secondaryPrizes .digit { background-size: 4rem 4rem; width: 4rem !important; height: 4rem !important; font-size: 2rem !important; }
.internationlottery .mainPrizes .digit {
  background-image: url(/assets/templates/internationlottery/assets/b6013f7b944f902e.png);
  background-repeat: no-repeat;
  background-size: 5rem 5rem;
  width: 5rem !important;
  height: 5rem !important;
  font-size: 3rem !important;
  text-align: center;
  vertical-align: middle;
  margin-bottom: .5rem !important;
  margin-top: .5rem !important;
  color: #000;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.internationlottery .countdown { font-size: 2rem !important; color: #fff !important; }

/* ============================================================== *
 * SECTION C — page shell helpers (not from a single live rule; the live shell
 * came from the Meteor bundle. These give the ported pages the same visual frame:
 * a light page background, centered nav bar, and a bordered result panel — matching
 * the desktop screenshot at docs/recon/.../desktop/_screenshots/index.png).
 * ============================================================== */

/* Sub-pages (live-draw / result / about) render on the same light shell as home;
   the source is a single-page Meteor app so there is no distinct sub-page bg. */
.site-nav ul.menu { padding: 0; margin: 1rem 0; }
.site-nav ul.menu li { cursor: pointer; }
.site-nav ul.menu li a { color: #212529; text-decoration: none; }
.site-nav ul.menu li a:hover { color: #ff8c00; }
.site-nav ul.menu li.active a { color: #ff8c00; }

/* Countdown board (live-draw page) — orange accent numerals over the light shell. */
.countdown-board { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; }
.countdown-board .unit { padding: 0 1.5rem; text-align: center; }
.countdown-board .unit .num { font-size: 3rem; font-weight: 700; color: #ff8c00; }
.countdown-board .unit .lbl { font-size: 1rem; color: #212529; }
