/*
Theme Name: Schoolgard 50e
Theme URI: https://github.com/starter/universal-starter
Author: Developer
Description: Universal one-page starter theme with unique class generation per domain, built-in setup wizard, and pre-styled components.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: schoolgard-50e
Tags: one-column, custom-colors, custom-logo, featured-images, full-width-template
*/


:root {
  --sgd-primary:#4d7c0f;
  --sgd-secondary:#365314;
  --sgd-accent:#a16207;
  --sgd-bg-alt:#f7fee7;
  --sgd-text:#1a2e05;
  --sgd-text-light:#4b5563;
  --sgd-border:#d7e3bf;
  --sgd-fs:1.25rem;            /* base body font-size (p/li/td/th only) */
}
 
/* --- content rhythm --- */
#sgd-page { max-width:1142px; margin-inline:auto; }
#sgd-page p,
#sgd-page li,
#sgd-page td,
#sgd-page th { font-size:var(--sgd-fs); line-height:1.7; color:var(--starter-text, #1a2e05); }
#sgd-page > * + * { margin-top:1.15em; }

/* --- headings (sized in em/rem, not the body var) --- */
#sgd-page h1 { color:var(--starter-primary, #4d7c0f); font-size:3rem; line-height:1.2; }
#sgd-page h2 { color:var(--starter-primary, #4d7c0f); font-size:2.6rem; line-height:1.25; margin-top:1.8em;
  padding-bottom:.3em; border-bottom:3px solid var(--starter-bg_alt, #f7fee7); }
#sgd-page h3 { color:var(--starter-secondary, #365314); font-size:2.05rem; line-height:1.3; margin-top:1.4em; }
#sgd-page a { color:var(--starter-secondary, #365314); text-decoration:underline; text-underline-offset:2px; }
#sgd-page a:hover { color:var(--starter-primary, #4d7c0f); }

/* --- generic tables --- */
#sgd-page .sgd-table table,
#sgd-page .sgd-toptable table { width:100%; border-collapse:collapse; }
#sgd-page .sgd-table th { background:var(--starter-primary, #4d7c0f); color:#fff; text-align:left; padding:.8em 1em; }
#sgd-page .sgd-table td { padding:.75em 1em; border-bottom:1px solid var(--starter-border, #d7e3bf); }
#sgd-page .sgd-table tr:nth-child(even) td { background:var(--starter-bg_alt, #f7fee7); }

/* --- casino top-list table (the 'money' widget placeholder) --- */
#sgd-page .sgd-toptable { margin:1.8em 0; }
#sgd-page .sgd-toptable th { background:var(--starter-accent, #a16207); color:#fff; text-transform:uppercase;
  letter-spacing:.03em; font-size:1.4rem; padding:.85em 1em; text-align:left; }
#sgd-page .sgd-toptable td { padding:.9em 1em; border-bottom:1px solid var(--starter-border, #d7e3bf); vertical-align:middle; }
#sgd-page .sgd-toptable tr:nth-child(even) td { background:var(--starter-bg_alt, #f7fee7); }
/* CTA buttons in the action column */
#sgd-page .sgd-toptable td:last-child a {
  display:inline-block; background:var(--starter-accent, #a16207); color:#fff !important; text-decoration:none;
  font-weight:700; padding:.6em 1.3em; border-radius:6px; white-space:nowrap;
  transition:filter .15s ease; }
#sgd-page .sgd-toptable td:last-child a:hover { filter:brightness(1.08); }

/* --- callouts (tips / warnings converted from source .box/.notification) --- */
#sgd-page .sgd-callout { background:var(--starter-bg_alt, #f7fee7); border-left:4px solid var(--starter-accent, #a16207);
  padding:1.1em 1.3em; border-radius:0 6px 6px 0; }
#sgd-page .sgd-callout > * + * { margin-top:.6em; }

/* --- pull-quotes --- */
#sgd-page .sgd-quote { border-left:4px solid var(--starter-primary, #4d7c0f); padding:.4em 0 .4em 1.2em;
  margin:1.6em 0; font-style:italic; color:var(--starter-text_light, #4b5563); }
#sgd-page .sgd-quote cite, #sgd-page .sgd-quote p:last-child { color:var(--starter-text_light, #4b5563); }

/* --- images --- */
#sgd-page .wp-block-image img { border-radius:8px; }

/* --- responsive: stack wide tables on small screens (mirrors source gating ~651px) --- */
@media (max-width:651px) {
  #sgd-page .sgd-toptable table, #sgd-page .sgd-toptable thead,
  #sgd-page .sgd-toptable tbody, #sgd-page .sgd-toptable tr, #sgd-page .sgd-toptable td { display:block; width:100%; }
  #sgd-page .sgd-toptable thead { display:none; }
  #sgd-page .sgd-toptable tr { border:1px solid var(--starter-border, #d7e3bf); border-radius:8px; margin-bottom:1em; padding:.4em .2em; }
  #sgd-page .sgd-toptable td { border:0; }
  #sgd-page .sgd-toptable td:last-child a { display:block; text-align:center; }
}