/* Western Swing Society - responsive prototype styles */
:root {
  --green: #123d31;
  --green-dark: #0b2a21;
  --rust: #b4511f;
  --rust-dark: #8f3d14;
  --gold: #e0b04f;
  --cream: #faf5ea;
  --paper: #ffffff;
  --ink: #2a2622;
  --muted: #6b635a;
  --line: #e4dccb;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif; font-size: 18px; line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--rust-dark); }
h1, h2, h3 { font-family: "Rye", Georgia, serif; font-weight: 400; color: var(--green); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
h3 { font-size: 1.25rem; }

/* Header */
.site-header { background: var(--green); color: #fff; border-bottom: 5px solid var(--rust); position: sticky; top: 0; z-index: 50; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex: 0 0 auto; }
.brand img { height: 58px; width: auto; border-radius: 6px; background: #8ec5e8; padding: 2px; }
.brand span { font-family: "Rye", Georgia, serif; font-size: 1.25rem; line-height: 1.1; }
.brand small { display: block; font-family: "Source Sans 3", Arial, sans-serif; font-size: .8rem; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }
.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid rgba(255,255,255,.6); color: #fff; border-radius: 8px; font-size: 1.6rem; line-height: 1; padding: 6px 12px; cursor: pointer; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
.nav a { display: block; color: #fff; text-decoration: none; padding: 8px 11px; border-radius: 6px; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--rust); }

/* Layout */
main { max-width: 1200px; margin: 0 auto; padding: 28px 20px 48px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 2fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.hero { background: linear-gradient(rgba(11,42,33,.78), rgba(11,42,33,.78)), url("images/dance-floor.jpg") center/cover; color: #fff; border-radius: var(--radius); padding: 48px 32px; margin-bottom: 28px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.15rem; max-width: 46em; }
.btn { display: inline-block; background: var(--rust); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 8px; font-weight: 700; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--rust-dark); }
.btn.light { background: #fff; color: var(--green); }
.event { border-left: 6px solid var(--rust); }
.event .date { font-family: "Rye", Georgia, serif; color: var(--rust); font-size: 1.3rem; }
.schedule { list-style: none; padding: 0; margin: 12px 0; }
.schedule li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.schedule b { display: inline-block; min-width: 8.5em; color: var(--green); }
.photo-card { text-align: center; }
.photo-card img { border-radius: 8px; }
.nl-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.nl-list a { display: block; padding: 12px 14px; border: 2px solid var(--line); border-radius: 8px; background: #fff; font-weight: 700; text-decoration: none; color: var(--green); }
.nl-list a:hover { border-color: var(--rust); color: var(--rust); }
.nl-list small { display: block; font-weight: 400; color: var(--muted); }
.famers { grid-template-columns: 1fr 1fr; gap: 16px; }
.famers figure { margin: 0; }
.famers img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; display: block; }
.muted { color: var(--muted); }

/* Footer */
.site-footer { background: var(--green-dark); color: #d9e3de; margin-top: 20px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 28px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: .95rem; }
.site-footer h3 { color: var(--gold); font-size: 1.05rem; }
.site-footer a { color: #fff; }
.copyright { text-align: center; padding: 12px; font-size: .85rem; border-top: 1px solid rgba(255,255,255,.12); }

/* Hall of Fame directory */
.hof-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0 8px; }
.hof-tools input, .hof-tools select { font-size: 1.05rem; padding: 10px 12px; border: 2px solid var(--line); border-radius: 8px; background: #fff; }
.hof-tools input { flex: 1 1 260px; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 16px; }
.letters button { border: 1px solid var(--line); background: #fff; border-radius: 6px; min-width: 36px; padding: 6px; font-weight: 700; color: var(--green); cursor: pointer; }
.letters button.on { background: var(--green); color: #fff; }
.count { color: var(--muted); margin: 4px 0 12px; }
.hof-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.hof-table th { background: var(--green); color: #fff; text-align: left; padding: 10px; font-weight: 600; }
.hof-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hof-table tr:nth-child(even) td { background: #fbf8f1; }
.hof-table a { font-weight: 700; }
.hof-table .num { color: var(--muted); white-space: nowrap; }
.biotag { display: inline-block; font-size: .75rem; background: var(--gold); color: var(--ink); border-radius: 4px; padding: 0 6px; margin-left: 6px; vertical-align: middle; }
.story-box { margin-top: 28px; border: 2px dashed var(--rust); background: #fff8ef; }

/* Monthly Dance page */
.hero-short { padding-top: 36px; padding-bottom: 32px; }
aside.grid { align-content: start; }
.flyer { margin-top: 14px; border-radius: 8px; display: block; max-width: 560px; width: 100%; }
.price-list { list-style: none; padding: 0; margin: 0 0 12px; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 1.15rem; }
.price-list b { font-family: "Rye", Georgia, serif; font-weight: 400; color: var(--rust); font-size: 1.5rem; }
.place { margin-top: 28px; scroll-margin-top: 100px; }
#admission { scroll-margin-top: 100px; }
.place-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; }
.address { font-size: 1.2rem; line-height: 1.5; }
.note { background: #fff8ef; border-left: 5px solid var(--gold); padding: 10px 14px; border-radius: 6px; }
.map-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.map-buttons .btn.light { border: 2px solid var(--line); }
.map-pic { margin: 0; text-align: center; }
.map-pic img { width: 100%; max-width: 420px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.map-pic figcaption { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.place h3 { margin-top: 28px; }
.directions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 28px; }
.directions h4 { margin: 10px 0 4px; font-size: 1.1rem; color: var(--green); }
.directions ol { margin: 0; padding-left: 1.3em; }
.directions li { margin-bottom: 6px; }
.after-place { margin-top: 28px; }
@media (max-width: 980px) { .place-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .map-buttons .btn { flex: 1 1 100%; text-align: center; } }

/* Hall of Fame: senior-friendly finder */
.lead { font-size: 1.1em; max-width: 48em; }
.hof-find { margin: 18px 0 26px; }
.find-label { display: block; font-weight: 700; font-size: 1.15rem; color: var(--green); margin-bottom: 6px; }
.find-row { display: flex; gap: 10px; flex-wrap: wrap; }
.find-row input { flex: 1 1 260px; font-size: 1.25rem; padding: 14px 16px; border: 3px solid var(--line); border-radius: 10px; background: #fff; min-height: 56px; }
.find-row input:focus { border-color: var(--rust); outline: none; }
.find-row .btn { border: 2px solid var(--line); min-height: 56px; font-size: 1.1rem; }
.find-head { font-family: "Source Sans 3", Arial, sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--green); margin: 22px 0 8px; }
.year-buttons, .hof-find .letters { display: grid; gap: 8px; margin: 0; }
.year-buttons { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.hof-find .letters { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
.year-buttons button, .hof-find .letters button {
  min-height: 50px; font-size: 1.1rem; font-weight: 700; color: var(--green); background: #fff;
  border: 2px solid var(--line); border-radius: 8px; cursor: pointer; padding: 6px;
}
.year-buttons button:hover, .hof-find .letters button:hover { border-color: var(--rust); }
.year-buttons button.on, .hof-find .letters button.on { background: var(--green); border-color: var(--green); color: #fff; }
.hof-find .letters button:disabled { opacity: .35; cursor: default; }
#results { scroll-margin-top: 110px; }
#results h2 { margin-top: 6px; }
.small { font-size: .6em; font-family: "Source Sans 3", Arial, sans-serif; }
.count { font-size: 1.05rem; }
.hof-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.hof-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
a.hof-card:hover { border-color: var(--rust); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
a.hof-card, a.hof-card:visited, a.hof-card:hover { color: var(--ink); }
.hof-card img, .no-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; display: block; background: #eee6d6; }
.no-photo { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; font-family: "Rye", Georgia, serif; font-size: 3rem; color: #fff; background: linear-gradient(160deg, var(--green), var(--green-dark)); }
.hof-card-body { padding: 12px 14px 14px; }
.hof-card-name { font-weight: 700; font-size: 1.15rem; line-height: 1.25; color: var(--green); }
.hof-card-meta { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.read-bio { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--rust-dark); }
.hof-rows { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.hof-rows li { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.hof-rows li:last-child { border-bottom: 0; }
.row-name { font-size: 1.15rem; font-weight: 600; }
.row-meta { color: var(--muted); }

/* Bio page */
.back-btn { border: 2px solid var(--line); }
.bio-head { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.bio-head img { border-radius: var(--radius); border: 6px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.facts { list-style: none; padding: 0; margin: 10px 0 0; }
.facts li { padding: 4px 0; }
.facts b { color: var(--green); display: inline-block; min-width: 6.5em; }
.bio-text p { margin: 0 0 1em; }
.bio-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Override Web Builder's default link colors (its a:visited / a:hover rules would otherwise win) */
a:visited, a:active { color: var(--rust-dark); }
a:hover { color: var(--rust); }
.btn, .btn:visited, .btn:hover, .btn:active { color: #fff; text-decoration: none; }
.btn.light, .btn.light:visited, .btn.light:hover { color: var(--green); }
.nav a:visited, .nav a:hover, .site-footer a:visited, .site-footer a:hover, .brand:visited, .brand:hover { color: #fff; }
.nav a:hover { text-decoration: none; }

/* Large desktop monitors: use more of the width and slightly larger text */
@media (min-width: 1400px) {
  .header-inner, main, .footer-inner { max-width: 1500px; }
  body { font-size: 19px; }
  .brand img { height: 66px; }
  .brand span { font-size: 1.45rem; }
  .nav a { font-size: 1.02rem; padding: 9px 13px; }
}
@media (min-width: 1900px) {
  .header-inner, main, .footer-inner { max-width: 1760px; }
  body { font-size: 20px; }
}

/* Tablet */
@media (max-width: 980px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav a { padding: 7px 8px; font-size: .9rem; }
}
/* Phone and small tablet: menu becomes a button */
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; margin: 0; }
  .nav.open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .nav ul { flex-direction: column; padding: 8px 0 4px; }
  .nav a { padding: 12px 10px; font-size: 1.05rem; border-top: 1px solid rgba(255,255,255,.1); border-radius: 0; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  main { padding: 18px 14px 36px; }
  .card { padding: 18px; }
  .hero { padding: 30px 20px; }
  .header-inner { padding: 8px 12px; gap: 10px; }
  .brand { flex: 1 1 auto; min-width: 0; gap: 8px; }
  .brand img { height: 42px; }
  .brand span { font-size: 1rem; }
  .brand small { font-size: .68rem; letter-spacing: .02em; }
  .menu-btn { flex: 0 0 auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .bio-head { grid-template-columns: 1fr; }
  .bio-head img { max-width: 260px; }
  .hof-table .hide-sm { display: none; }
  .hof-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hof-card-name { font-size: 1.05rem; }
  .no-photo { font-size: 2.3rem; }
  .year-buttons { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
}

/* Staff page role lists */
.staff-list { list-style: none; padding: 0; margin: 8px 0 0; }
.staff-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.staff-list li span { color: var(--muted); }
.staff-list li b { font-weight: 700; color: var(--ink, #222); text-align: right; }
.staff-list li b a { color: var(--green); }
.staff-list .open b { font-weight: 400; color: var(--muted); font-style: italic; }
.staff-list.names li span { color: var(--ink); font-weight: 700; }
.staff-list li b:has(.em-text) { margin-left: auto; }
.staff-list li b small.em-text { display: block; font-weight: 400; font-size: .9em; color: var(--muted); word-break: break-all; }
.contact-list li span small.em-text { word-break: break-all; }

/* Events / Photos / Contact / Links pages */
.flyers { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
.flyers figure { margin: 0; text-align: center; }
.flyers img { width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block; }
.flyers figcaption { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.grid-even { grid-template-columns: 1fr 1fr; }
.album-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.album-list a { display: block; padding: 12px 14px; border: 2px solid var(--line); border-radius: 8px; background: #fff; font-weight: 700; text-decoration: none; color: var(--green); }
.album-list a:hover { border-color: var(--rust); color: var(--rust); }
.album-list small { display: block; font-weight: 400; color: var(--muted); }
.photo-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.photo-grid figcaption { font-size: .95rem; color: var(--muted); margin-top: 6px; }
.contact-list { list-style: none; padding: 0; margin: 8px 0 0; }
.contact-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-list li span { font-weight: 700; }
.contact-list li span small { display: block; font-weight: 400; color: var(--muted); }
.contact-list .btn { padding: 8px 16px; }
.link-list { list-style: none; padding: 0; margin: 8px 0 0; }
.link-list li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.link-list a { font-weight: 700; font-size: 1.1rem; }
.link-list small { display: block; color: var(--muted); }
@media (max-width: 820px) {
  .flyers, .grid-even { grid-template-columns: 1fr; }
  .flyers img { max-width: 420px; margin: 0 auto; }
}

/* ===== Pages built with Web Builder objects (Layout Grid + Text) so they can be edited in page view =====
   Give a Layout Grid the Class "card" (white box) or "hero hero-short" (dark title banner).
   Text objects keep Web Builder's own formatting tools; these rules just apply the site fonts and colors. */
body > div[id^="wb_LayoutGrid"] {
  display: block !important; position: relative !important; left: auto !important; top: auto !important;
  width: auto !important; max-width: 1160px; margin: 0 auto 24px !important;
  background-color: transparent !important; box-sizing: border-box; text-align: left !important;
}
body > div[id^="wb_LayoutGrid"]:first-of-type { margin-top: 28px !important; }
body > div[id^="wb_LayoutGrid"].card { background-color: var(--paper) !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; padding: 24px !important; }
body > div[id^="wb_LayoutGrid"].hero { background: linear-gradient(rgba(11,42,33,.78), rgba(11,42,33,.78)), url("images/dance-floor.jpg") center/cover !important; border-radius: var(--radius) !important; padding: 36px 32px 32px !important; color: #fff; }
div[id^="wb_LayoutGrid"] > div > .row > div { font-size: 18px !important; padding-left: 0 !important; padding-right: 24px !important; }
div[id^="wb_LayoutGrid"] > div { padding: 0 !important; }
div[id^="wb_LayoutGrid"] > div > .row { margin: 0 !important; }
div[id^="wb_LayoutGrid"] div[id^="wb_Text"] { position: relative !important; left: auto !important; top: auto !important; width: auto !important; height: auto !important; line-height: 1.75; }
div[id^="wb_Text"] span { font-family: inherit !important; font-size: inherit !important; color: inherit !important; }
div[id^="wb_Text"] h1, div[id^="wb_Text"] h2, div[id^="wb_Text"] h3 { display: block !important; font-family: "Rye", Georgia, serif !important; font-weight: 400 !important; color: var(--green) !important; margin: 0 0 .5em !important; line-height: 1.2 !important; }
div[id^="wb_Text"] h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem) !important; }
div[id^="wb_Text"] h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem) !important; }
div[id^="wb_Text"] h1 br, div[id^="wb_Text"] h2 br { display: none; }
.hero div[id^="wb_Text"], .hero div[id^="wb_Text"] h1, .hero div[id^="wb_Text"] h2 { color: #fff !important; }
.hero div[id^="wb_Text"] { font-size: 1.15rem; }
div[id^="wb_Text"] a { color: var(--rust-dark) !important; }
.hero div[id^="wb_Text"] a { color: #fff !important; }
@media (min-width: 1400px) { body > div[id^="wb_LayoutGrid"] { max-width: 1460px; } }
@media (max-width: 1200px) { body > div[id^="wb_LayoutGrid"] { margin-left: 20px !important; margin-right: 20px !important; } }
@media (max-width: 768px) {
  div[id^="wb_LayoutGrid"] > div > .row > div { padding-right: 0 !important; margin-bottom: 18px; }
}
@media (max-width: 600px) {
  body > div[id^="wb_LayoutGrid"] { margin-left: 14px !important; margin-right: 14px !important; margin-bottom: 18px !important; }
  body > div[id^="wb_LayoutGrid"].card { padding: 18px !important; }
  body > div[id^="wb_LayoutGrid"].hero { padding: 28px 20px !important; }
  div[id^="wb_LayoutGrid"] > div > .row > div { font-size: 17px !important; }
}
.cols-2 { column-count: 2; column-gap: 48px; }
.cols-2 h2 { column-span: all; }
@media (max-width: 768px) { .cols-2 { column-count: 1; } }
