/* Shining Heart Community - responsive shell.
   Same artwork, colours and proportions as the original table layout
   (751px wide: 153 sidebar + 592 content + 6 edge), rebuilt without tables
   so it reflows on a phone. Breakpoint: 780px. */

:root {
  --green: #31594D;
  --brown: #663300;
  --rose: #936E6E;
  --peach: #FBE0B0;
  --cream: #FFEFD0;
  --rule: #B6B18E;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 5px 0 40px;
  background: var(--rose);
  color: var(--green);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 22px;
}

img { border: 0; max-width: 100%; height: auto; }

a { color: var(--brown); }
a:hover { color: var(--rule); }

.page {
  width: 751px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--peach);
  position: relative;
  border: 1px solid #fff;
  outline: 1px solid #7a5a5a;
}

/* ---------- masthead: vector wordmark + emblem, no baked-in backgrounds ---------- */
.masthead {
  position: relative;
  height: 140px;
  /* cream sidebar strip on the left, lighter band behind the title, as in the original */
  background:
    linear-gradient(to right, #FFF4E0 0, #FEECCB 152px, #fff 152px 153px, transparent 153px),
    linear-gradient(to bottom, #FCE5BC 0 99px, var(--peach) 99px);
}
.m-area {
  position: absolute; left: 7px; top: 9px; margin: 0;
  font: bold 10px/1 Verdana, Arial, Helvetica, sans-serif;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: #9A9F84;
}
/* true size of the original lettering; the tail of the S hangs over the sidebar */
.m-word { position: absolute; left: 13px; top: 33px; width: 511px; z-index: 2; display: block; }
.m-word img { display: block; width: 100%; height: auto; }
.m-heart {
  position: absolute; right: 22px; top: 12px; width: 190px; height: auto; max-width: none;
  padding: 0;
  filter: drop-shadow(0 0 14px #fff);
}
.masthead::after {            /* soft glow behind the emblem */
  content: ""; position: absolute; right: 0; top: 0; width: 236px; height: 140px;
  background: radial-gradient(closest-side at 50% 42%, rgba(255,255,255,.95), rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.m-heart { z-index: 1; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- body: sidebar + content ---------- */
.columns { display: flex; align-items: stretch; }

.sidebar {
  flex: 0 0 153px;
  background: linear-gradient(to right, #FFF4E0 0, #FEECCB 152px, #fff 152px 153px);
  padding-top: 88px;               /* 63px S-tail + 25px gap, as in the original */
}

.menu-toggle { display: none; }

.nav { list-style: none; margin: 0; padding: 0; }
.nav li { background: linear-gradient(to right, transparent 25%, #77756a) top left / 100% 1px no-repeat; }
.nav a {
  display: block;
  padding: 13px 12px 12px 6px;
  text-align: right;
  font-weight: bold;
  line-height: 15px;
}
.nav a[aria-current="page"] { color: var(--green); }

.content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 50px 30px 40px 50px;
}
.content::after { content: ""; display: block; clear: both; }

.header, .content h1, .content h2 {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1pt;
  line-height: 20px;
  margin: 0 0 1.5em;
  padding-bottom: 0;
  border-bottom: 2px solid var(--rule);
}

.content p { margin: 0 0 1em; }

/* right-hand photo + caption column */
.aside {
  float: right;
  width: 158px;
  margin: -27px 0 20px 15px;
  text-align: right;
  font-size: 11px;
  font-style: italic;
  line-height: 12px;
}
.aside img { display: block; margin: 0 0 46px auto; }
.aside p { margin: 0; }

.with-aside { overflow: hidden; }   /* keeps text in its own column beside the photo */

/* ---------- legacy content markup (kept as written in the old pages) ---------- */
.header p { margin: 0; }
.body { min-width: 0; }
.from-rumi .body { font-size: 14px; }
.content table { max-width: 100%; border-collapse: separate; }
.content img, .content iframe, .content input[type="image"] { max-width: 100%; height: auto; }
.content blockquote { margin: 1em 0 1em 2em; }
.content h3 { font-size: 13px; margin: 1.4em 0 .4em; }
.aside div { text-align: inherit; }
.subhd { font-size: 14px; font-weight: bold; letter-spacing: 1pt; }
.border { border: 2px solid #333; }
.pborder { border: 5px solid var(--rose); padding: 10px 10px 0; }
.indent { padding-left: 5px; border-top: 1px solid #839075; }
.indentTop { padding: 15px 0 0 5px; border-bottom: 1px solid #839075; }
.indentCopy { padding: 3px 0 3px 5px; }
.Btmpadding { padding-bottom: 8px; border-bottom: 1px solid #E7CFA4; }
.home { line-height: 8px; padding-left: 15px; padding-right: 10px; }
.btnSub { font-weight: bold; padding: 5px 5px 8px; border: 1px solid #FDECCF; text-align: left; background-color: #FDE9C6; }
.specEvt { font-weight: bold; padding: 3px 3px 8px; text-align: center; background-color: var(--peach); }
.tbll, .tblc, .tblr { font-weight: bold; padding: 12px 12px 12px 6px; }
.tbll { color: #839075; text-align: left; }
.tblc, .tblr { color: var(--rose); text-align: center; }

/* ---------- phone / narrow ---------- */
@media (max-width: 780px) {
  body { padding: 0; font-size: 16px; line-height: 1.6; }

  .page { border: 0; outline: 0; }

  .masthead {
    height: auto;
    padding: 88px 16px 14px;            /* emblem sits on its own row above the lettering */
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
  }
  .m-area { left: 16px; top: 66px; font-size: 9px; }   /* tucked just above the lettering, as on desktop */
  .m-word { position: relative; left: auto; top: auto; width: 100%; max-width: 511px; }
  .m-heart { right: 14px; top: 8px; width: 114px; filter: none; }
  .masthead::after { display: none; }

  .columns { display: block; }

  .sidebar { padding-top: 0; background: var(--cream); }

  .menu-toggle {
    display: flex; align-items: center; gap: 10px;
    position: absolute; right: 12px; bottom: 10px; z-index: 3;
    min-height: 44px;
    margin: 0; padding: 0 12px;
    border: 1px solid var(--rule); border-radius: 4px;
    background: var(--cream);
    color: var(--brown);
    font: bold 16px Arial, Helvetica, sans-serif;
    letter-spacing: 1pt;
    cursor: pointer;
  }
  .menu-toggle .bars { width: 20px; height: 14px; border-top: 2px solid; border-bottom: 2px solid; position: relative; }
  .menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid; }

  /* collapsed only when the script has run; with JS off the menu stays open */
  .js .nav { display: none; }
  .js .nav.open { display: block; }

  .nav li { background: none; border-bottom: 1px solid var(--rule); }
  .nav a { padding: 14px 16px; line-height: 20px; font-size: 16px; }

  .content { display: flex; flex-direction: column; padding: 28px 20px 36px; background: none; }
  .content::after { display: none; }
  .aside { order: 2; }

  .header, .content h1, .content h2 { font-size: 18px; line-height: 1.4; padding-bottom: 4px; }

  .aside {
    float: none; width: auto;
    margin: 32px 0 0;
    text-align: center;
    font-size: 14px; line-height: 1.5;
  }
  .aside img { margin: 0 auto 20px; }

  .with-aside { overflow: visible; }

  .from-rumi .body { font-size: 16px; }
  .content table { width: 100% !important; }
  .content td, .content th { width: auto !important; }
  .content blockquote { margin-left: 1em; margin-right: 0; }
  .content h3 { font-size: 16px; }
  .subhd { font-size: 16px; }
  .content font[size] { font-size: inherit; }
  .body { overflow-wrap: anywhere; }
}

/* Call-to-action link, e.g. festival registration */
.register { text-align: center; margin: 1.2em 0; }
.register a { display: inline-block; padding: .6em 1.2em; background: #07583e; color: #fff; border: 2px solid #d99a16; border-radius: 6px; text-decoration: none; }
.register a:hover, .register a:focus { background: #0a6e4e; }
