/* The Rose Society of India: site styles. Brand: emerald, royal maroon, gold accents on cream. No external fonts or scripts. */
:root {
  --emerald: #1b5e3b;
  --emerald-dark: #134a2e;
  --maroon: #7a1f2b;
  --maroon-dark: #5e1620;
  --gold: #b8860b;
  --gold-soft: #f6ecd2;
  --cream: #fbf7ee;
  --tint: #f3ece0;
  --ink: #1c1a17;
  --muted: #4b4640;
  --line: #e2d8c6;
  --card: #ffffff;
  --link: #7a1f2b;
}
* { box-sizing: border-box; }
html { font-size: 125%; -webkit-text-size-adjust: 100%; } /* 20px base for easy reading */
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover, a:focus { color: var(--emerald); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-head { background: var(--card); border-bottom: 4px solid var(--gold); }
.head-inner { padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.brand img { width: 88px; height: auto; border-radius: 50%; background: #fff; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.6rem; font-weight: bold; color: var(--maroon); line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; }
.brand-sub { font-size: .8rem; color: var(--muted); font-family: Arial, Helvetica, sans-serif; }

/* Navigation */
.site-nav { background: var(--emerald); }
.site-nav ul { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2px; padding-top: 6px; padding-bottom: 6px; }
.site-nav a {
  display: block; padding: 10px 6px; color: #fff; text-decoration: none;
  font-family: Arial, Helvetica, sans-serif; font-size: .8rem; font-weight: bold; border-radius: 6px;
}
.site-nav a:hover, .site-nav a:focus { background: rgba(255,255,255,.18); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--gold-soft); color: #5e1620; }

/* Become a Member strip (every page) */
.member-strip { display: block; background: #7a1f2b; color: #fff; text-decoration: none; border-top: 4px solid #d4a017; border-bottom: 4px solid #d4a017; font-family: Arial, Helvetica, sans-serif; }
.member-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 10px; padding-bottom: 10px; font-size: .95rem; }
.member-strip strong { font-size: 1.15rem; color: #ffd75e; letter-spacing: .02em; }
.strip-cta { margin-left: auto; background: #ffd75e; color: #5e1620; padding: 6px 14px; border-radius: 6px; font-weight: bold; white-space: nowrap; }
.member-strip:hover .strip-cta, .member-strip:focus .strip-cta { background: #fff; }
@media (max-width: 640px) { .strip-text { display: none; } .member-strip .wrap { flex-wrap: nowrap; justify-content: space-between; } }

/* Main */
main.wrap { padding-top: 28px; padding-bottom: 48px; }
h1 { font-size: 2rem; line-height: 1.25; color: var(--maroon); margin: 0 0 16px; }
h2 { font-size: 1.45rem; line-height: 1.3; color: var(--emerald); margin: 36px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--gold); }
h3 { font-size: 1.1rem; margin: 0 0 6px; color: var(--muted); font-family: Arial, Helvetica, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
h3.sub { margin-top: 18px; }
p { margin: 0 0 14px; }
.big-list { padding-left: 1.2em; margin: 0 0 14px; }
.big-list li { margin-bottom: 10px; }
.button {
  display: inline-block; background: var(--maroon); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 8px; font-family: Arial, Helvetica, sans-serif; font-weight: bold;
}
.button:hover, .button:focus { background: var(--maroon-dark); color: #fff; }
.button-alt { background: var(--emerald); }
.button-alt:hover, .button-alt:focus { background: var(--emerald-dark); }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 18px; }

/* Hero */
.hero {
  background: var(--card); border: 2px solid var(--line); border-left: 10px solid var(--maroon);
  border-radius: 12px; padding: 24px;
}
.eyebrow { font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-transform: uppercase; letter-spacing: .06em; color: var(--emerald); margin-bottom: 6px; }
.hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.venue { font-size: 1.15rem; font-weight: bold; }
.org { color: var(--muted); }
.key-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.fact { background: var(--tint); border: 2px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; }
.fact-label { font-family: Arial, Helvetica, sans-serif; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: bold; }
.fact-value { font-size: 1.2rem; font-weight: bold; }
.fact-alert { border-color: var(--maroon); background: var(--card); }
.fact-alert .fact-value { color: var(--maroon); }

/* Banners */
.banners { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 22px 0 6px; }
.banner {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: 12px;
  text-decoration: none; color: #fff; border: 3px solid var(--gold);
}
.banner-entries { background: #7a1f2b; }
.banner-member { background: #1b5e3b; }
.banner:hover, .banner:focus { color: #fff; filter: brightness(1.12); }
.banner-title { font-size: 1.3rem; font-weight: bold; line-height: 1.3; }
.banner-title::after { content: " \2192"; }
.banner-sub { font-family: Arial, Helvetica, sans-serif; font-size: .9rem; opacity: .95; }

/* Tables */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; background: var(--card); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th { background: var(--emerald); color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: .9rem; }
tbody tr:nth-child(even) { background: var(--tint); }
.classes th[scope="row"] { color: var(--maroon); white-space: nowrap; }
.timeline td:first-child { font-weight: bold; white-space: nowrap; }

/* Phones */
.phones { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 10px; }
.phone { background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column; }
.tel { font-size: 1.15rem; font-weight: bold; margin-top: 4px; }

/* President's message */
.message { background: var(--card); border: 2px solid var(--line); border-top: 6px solid var(--gold); border-radius: 12px; padding: 4px 24px 12px; margin-top: 36px; }
.message h2 { border-bottom-color: var(--line); }
.sign { margin-top: 18px; }

/* Phone layout */
@media (max-width: 640px) {
  html { font-size: 112.5%; } /* 18px on phones */
  .brand img { width: 64px; }
  .brand-name { font-size: 1.2rem; }
  .hero { padding: 18px; }
  .hero h1 { font-size: 1.6rem; }
  h1 { font-size: 1.6rem; }
  .site-nav a { padding: 8px 10px; font-size: .85rem; }
  .banner-title { font-size: 1.15rem; }
  .message { padding: 4px 16px 10px; }
  .classes thead { display: none; }
  .classes, .classes tbody, .classes tr, .classes th, .classes td { display: block; width: 100%; }
  .classes tr { border: 2px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 8px 4px; }
  .classes th[scope="row"], .classes td { border: 0; padding: 4px 10px; }
  .classes th[scope="row"]::before { content: "Class "; }
  .classes td:nth-of-type(2)::before { content: "Who: "; font-weight: bold; }
  .classes td:nth-of-type(3)::before { content: "Fee per section: "; font-weight: bold; }
  .timeline td:first-child { white-space: normal; }
}

/* People */
.person { background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 4px 20px 10px; margin-bottom: 18px; }
.person h2 { border: 0; margin-top: 14px; padding-bottom: 0; color: var(--maroon); }
.role { font-weight: bold; color: var(--muted); }

/* Roses */
.rose-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.rose-grid li { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--maroon); border-radius: 8px; padding: 10px 14px; font-weight: bold; }
.rose-grid li::before { content: "\2740\00a0"; color: var(--maroon); }

/* Council */
.ob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; align-items: start; }
.ob { background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.ob-person, .phone { display: flex; flex-direction: column; }
.ob-person { margin-top: 6px; }
.ob-person + .ob-person { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ob-name { font-weight: bold; font-size: 1.1rem; }
.ob-desig { color: var(--muted); }
.gc-list { columns: 2 280px; column-gap: 32px; padding-left: 1.6em; }
.gc-list li { margin-bottom: 8px; break-inside: avoid; }

/* Contact */
.contact-card { background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 4px 22px 12px; }
.contact-card h2 { margin-top: 18px; }
.contact-card .phone { background: var(--tint); }
.contact-big { font-size: 1.2rem; overflow-wrap: anywhere; }

/* Footer */
.site-foot { background: var(--maroon-dark); color: #fff; padding: 24px 0; font-family: Arial, Helvetica, sans-serif; font-size: .9rem; border-top: 4px solid #b8860b; }
.site-foot p { margin: 0 0 6px; }
.site-foot a { color: #fff; overflow-wrap: anywhere; }
.small { font-size: .8rem; opacity: .85; }

@media print {
  .site-nav, .skip, .banners { display: none; }
  body { background: #fff; color: #000; }
}

/* Online payment block */
.pay { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 4px 18px 16px; margin-bottom: 10px; }
.bank th { background: var(--tint); width: 38%; font-family: Arial, Helvetica, sans-serif; font-size: .9rem; }
.bank td { font-weight: bold; overflow-wrap: anywhere; }
.qr-placeholder { width: 180px; max-width: 100%; aspect-ratio: 1; border: 3px dashed var(--gold); border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-weight: bold; }
.tariff td:last-child { font-weight: bold; white-space: nowrap; }
.share { margin-top: 10px; }
@media (max-width: 640px) { .pay { grid-template-columns: 1fr; } }

/* Outline sections (details to come) */
.outline { border: 2px dashed var(--gold); border-radius: 12px; padding: 4px 18px 12px; margin: 18px 0; background: var(--card); }
.outline h2 { border: 0; }
.tba { display: inline-block; background: #fff4cc; color: #5e1620; font-family: Arial, Helvetica, sans-serif; font-weight: bold; font-size: .9rem; padding: 4px 10px; border-radius: 6px; }

/* Publications and Souvenir reader */
.pubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 16px 0; }
.pub { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 14px; text-decoration: none; color: inherit; }
.pub img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.pub-title { font-size: 1.25rem; font-weight: bold; color: var(--maroon); }
.pub-sub { font-family: Arial, Helvetica, sans-serif; font-size: .9rem; color: var(--muted); }
.pub .button { align-self: flex-start; }
.sv-jump { position: sticky; top: 0; z-index: 5; background: var(--cream); border-bottom: 2px solid var(--line); padding: 8px 0; font-family: Arial, Helvetica, sans-serif; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sv-jump a { display: inline-block; min-width: 2.4em; text-align: center; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); text-decoration: none; font-weight: bold; }
.sv-book { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 2px; max-width: 1100px; margin: 16px auto; }
.sv-book .sv-page:first-child { grid-column: 2; }
.sv-page { margin: 0; scroll-margin-top: 60px; }
.sv-page img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); -webkit-user-drag: none; user-select: none; }
.sv-page figcaption { text-align: center; font-family: Arial, Helvetica, sans-serif; font-size: .8rem; color: var(--muted); }
.crumb { margin-top: 12px; font-family: Arial, Helvetica, sans-serif; }
@media (max-width: 700px) { .sv-book { grid-template-columns: 1fr; } .sv-book .sv-page:first-child { grid-column: 1; } }

/* Flip-book reader */
.fb-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin: 12px 0; font-family: Arial, Helvetica, sans-serif; }
.fb-bar button { font: inherit; font-weight: bold; font-size: 1rem; padding: 10px 16px; border-radius: 8px; border: 0; background: var(--emerald); color: #fff; cursor: pointer; }
.fb-bar button:hover, .fb-bar button:focus { background: var(--maroon); }
#fb-count { font-weight: bold; min-width: 9em; text-align: center; }
.fb-go input { width: 4.5em; font-size: 1rem; padding: 6px; }
.fb-wrap { background: linear-gradient(#efe6d2, #e2d6bb); border-radius: 12px; padding: 20px 10px; margin: 0 auto 10px; max-width: 1200px; overflow: hidden; }
#fb-book { margin: 0 auto; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 12px 0 20px; }
.way { border: 2px solid var(--emerald); border-top: 6px solid var(--maroon); border-radius: 8px; padding: 12px 16px; background: #fff; }
.way p { margin: 6px 0 0; }
.portrait { float: right; width: 200px; height: auto; margin: 4px 0 12px 20px; border: 3px solid var(--gold, #d4a017); border-radius: 6px; background: #fff; }
.person::after, .message::after { content: ""; display: block; clear: both; }
@media (max-width: 560px) { .portrait { float: none; display: block; width: 180px; margin: 8px auto 14px; } }
