/* One Flock · Katabi to Diocese
   Bark cloth (olubugo) umber, parchment, liturgical gold, and an accent that follows
   the Church year: green in Ordinary Time, violet in Advent and Lent, red in Holy Week
   and at Pentecost, gold at Christmas and Easter. */

:root {
  --of-umber: #5A2E17;        /* bark cloth */
  --of-umber-deep: #3E1E0E;
  --of-umber-soft: #8A5434;
  --of-gold: #B98A2E;
  --of-gold-soft: #E9D7A6;
  --of-parchment: #FBF7EE;
  --of-vellum: #F3EADA;
  --of-ink: #2B211A;
  --of-quiet: #6E5E52;
  --of-line: #E3D6C2;

  --season: #1F5C42;          /* set per season below */
  --season-soft: #E3EFE8;

  --of-serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --of-sans: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Django admin variables */
  --primary: var(--season);
  --secondary: var(--of-umber);
  --accent: var(--of-gold-soft);
  --primary-fg: #fff;
  --body-fg: var(--of-ink);
  --body-bg: var(--of-parchment);
  --body-quiet-color: var(--of-quiet);
  --body-medium-color: #4A3B30;
  --body-loud-color: var(--of-umber-deep);
  --header-color: var(--of-gold-soft);
  --header-branding-color: #FFF8E8;
  --header-bg: var(--of-umber);
  --header-link-color: #FFF8E8;
  --breadcrumbs-fg: #7A6656;
  --breadcrumbs-link-fg: var(--of-umber);
  --breadcrumbs-bg: var(--of-vellum);
  --link-fg: var(--of-umber-soft);
  --link-hover-color: var(--of-umber-deep);
  --link-selected-fg: var(--of-umber);
  --hairline-color: var(--of-line);
  --border-color: #D4C3A8;
  --error-fg: #9B1C1C;
  --message-success-bg: #E6F0E3;
  --message-warning-bg: #FBF1D6;
  --message-error-bg: #F8E3E0;
  --darkened-bg: var(--of-vellum);
  --selected-bg: #EFE3CC;
  --selected-row: #FBF1D6;
  --button-fg: #fff;
  --button-bg: var(--of-umber);
  --button-hover-bg: var(--of-umber-deep);
  --default-button-bg: var(--season);
  --default-button-hover-bg: var(--of-umber-deep);
  --close-button-bg: #8C7B6E;
  --close-button-hover-bg: #5C4D42;
  --delete-button-bg: #9B1C1C;
  --delete-button-hover-bg: #7A1414;
  --object-tools-fg: #fff;
  --object-tools-bg: var(--of-umber-soft);
  --object-tools-hover-bg: var(--of-umber-deep);
  --font-family-primary: var(--of-sans);
}

body.season-ordinary  { --season: #1F5C42; --season-soft: #E3EFE8; }
body.season-advent    { --season: #4B2A6B; --season-soft: #ECE5F3; }
body.season-lent      { --season: #4A2558; --season-soft: #EDE3F0; }
body.season-holyweek  { --season: #8E1B1B; --season-soft: #F5E1DE; }
body.season-pentecost { --season: #A3201A; --season-soft: #F7E2DC; }
body.season-christmas { --season: #9A7420; --season-soft: #F6EDD4; }
body.season-easter    { --season: #9A7420; --season-soft: #F6EDD4; }

/* ------------------------------------------------------------ page */
html, body { background: var(--of-parchment); }
body.of-landing { margin: 0; }
#content-related { background: transparent; }
#content-related .module h2 { background: var(--of-vellum); background-image: none; color: var(--of-umber); }
body {
  color: var(--of-ink);
  font-family: var(--of-sans);
  font-size: 15px;
  background-image:
    radial-gradient(circle at 12% 0%, rgba(185,138,46,.06), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(90,46,23,.05), transparent 45%);
  background-attachment: fixed;
}
h1, h2, h3, #site-name, .of-serif { font-family: var(--of-serif); }
#content h1 {
  font-size: 2rem; font-weight: 600; color: var(--of-umber-deep);
  letter-spacing: .01em; margin-bottom: .6em;
}
#content h1::after {
  content: ""; display: block; width: 72px; height: 3px; margin-top: .35em;
  background: linear-gradient(90deg, var(--of-gold), var(--season));
  border-radius: 2px;
}
#content h2 { font-size: 1.35rem; font-weight: 600; color: var(--of-umber); }
a:link, a:visited { color: var(--of-umber-soft); }
a:hover, a:focus { color: var(--of-umber-deep); }

/* ------------------------------------------------------------ header: bark cloth + woven band */
#header {
  position: relative;
  background-color: var(--of-umber);
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #643420, #4E2714);
  padding: 14px 32px 18px;
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
}
#header::after { /* mukeka weave: gold, season, umber */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background:
    repeating-linear-gradient(90deg,
      var(--of-gold) 0 14px, var(--season) 14px 22px,
      #F6EEDC 22px 25px, var(--of-umber-deep) 25px 33px);
}
#branding { display: flex; align-items: center; gap: 14px; }
.of-brand { display: flex; align-items: center; gap: 14px; text-decoration: none !important; }
.of-brand img { width: 46px; height: 46px; flex: none; }
.of-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.of-brand-name {
  font-family: var(--of-serif); font-size: 1.7rem; font-weight: 600;
  color: #FFF8E8; letter-spacing: .02em;
}
.of-brand-place {
  font-family: var(--of-sans); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .16em; color: var(--of-gold-soft);
}
#site-name { margin: 0; }
.of-season-pill {
  margin-left: 18px; padding: 3px 12px; border-radius: 999px;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--season); border: 1px solid rgba(255,255,255,.35);
  white-space: nowrap;
}
#user-tools { font-size: .78rem; letter-spacing: .06em; color: var(--of-gold-soft); }
#user-tools a { border-bottom-color: rgba(233,215,166,.5); }
#user-tools a:hover { color: #fff; border-bottom-color: #fff; }
.theme-toggle { display: none !important; } /* one consistent look */

/* ------------------------------------------------------------ breadcrumbs */
div.breadcrumbs {
  background: var(--of-vellum); color: var(--breadcrumbs-fg);
  border-bottom: 1px solid var(--of-line);
  padding: 10px 32px; font-size: .85rem;
}
div.breadcrumbs a { color: var(--of-umber); font-weight: 600; }

/* ------------------------------------------------------------ sidebar */
#nav-sidebar { background: var(--of-parchment); border-right: 1px solid var(--of-line); }
#nav-sidebar .module caption, #nav-sidebar .module th { font-family: var(--of-sans); }
#nav-sidebar .current-model { background: var(--season-soft); }
#nav-sidebar .current-model a { color: var(--season); font-weight: 700; }
.toggle-nav-sidebar { background: var(--of-vellum); border-color: var(--of-line); color: var(--of-umber); }

/* ------------------------------------------------------------ modules / cards */
.module {
  background: #fff; border: 1px solid var(--of-line); border-radius: 10px;
  overflow: hidden; box-shadow: 0 1px 2px rgba(62,30,14,.05), 0 6px 18px rgba(62,30,14,.04);
}
.module h2, .module caption, .inline-group h2 {
  background: var(--of-umber);
  background-image: linear-gradient(90deg, var(--of-umber), #6B3A22);
  color: #FFF8E8; font-family: var(--of-serif); font-size: 1.15rem; font-weight: 600;
  letter-spacing: .03em; text-transform: none; padding: 10px 14px;
  border-bottom: 3px solid var(--season);
}
.module h2 a, .module caption a { color: #FFF8E8; }
#content-main .module table { width: 100%; }
.dashboard .module table th { font-weight: 600; }
.dashboard .module table th a { color: var(--of-umber); }
#content-related .module h2 { font-size: 1rem; }

/* ------------------------------------------------------------ tables */
thead th, tfoot td, table thead th {
  background: var(--of-vellum); color: var(--of-umber);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid var(--of-line);
}
td, th { border-bottom-color: var(--of-line); }
#result_list tbody tr:nth-child(even) td, #result_list tbody tr:nth-child(even) th { background: #FDFAF3; }
#result_list tbody tr:hover td, #result_list tbody tr:hover th { background: var(--season-soft); }
#changelist .actions { background: var(--of-vellum); border-color: var(--of-line); }
#changelist-filter { background: #fff; border: 1px solid var(--of-line); border-radius: 10px; }
#changelist-filter h2 { background: var(--of-umber); color: #FFF8E8; font-family: var(--of-serif); border-radius: 10px 10px 0 0; }
#changelist-filter h3 { color: var(--of-umber); font-family: var(--of-serif); font-size: 1.05rem; }
#changelist-filter li.selected a { color: var(--season); }
#changelist #toolbar { background: var(--of-vellum); border-color: var(--of-line); border-radius: 8px; }

/* ------------------------------------------------------------ forms */
fieldset.module { padding-bottom: 6px; }
.form-row { border-bottom-color: var(--of-line); }
label { color: #4A3B30; }
.required label, label.required { color: var(--of-umber-deep); font-weight: 600; }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number],
input[type=tel], input[type=date], textarea, select, .vTextField {
  border: 1px solid #D4C3A8; border-radius: 6px; background: #fff; padding: 6px 8px;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--season);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--season) 18%, transparent);
}
.help, p.help, div.help { color: var(--of-quiet); font-size: .82rem; }
.errornote, ul.errorlist { border-radius: 6px; }

.button, input[type=submit], input[type=button], .submit-row input, a.button {
  border-radius: 6px; font-weight: 600; letter-spacing: .02em;
}
.submit-row { background: var(--of-vellum); border: 1px solid var(--of-line); border-radius: 10px; }
.submit-row input.default, input[type=submit].default {
  background: var(--season); box-shadow: inset 0 -2px 0 rgba(0,0,0,.15);
}
.submit-row input.default:hover { background: var(--of-umber-deep); }
.object-tools a:link, .object-tools a:visited { border-radius: 999px; }

/* ------------------------------------------------------------ messages */
ul.messagelist li { border-radius: 8px; margin: 0 0 8px; border-left: 4px solid var(--season); color: var(--of-ink); }
ul.messagelist li.error { border-left-color: #9B1C1C; }
ul.messagelist li.warning { border-left-color: var(--of-gold); }

/* ------------------------------------------------------------ footer */
#footer.of-footer {
  padding: 22px 32px 28px; margin-top: 30px; text-align: center;
  border-top: 1px solid var(--of-line); color: var(--of-quiet); font-size: .82rem;
}
.of-footer .of-verse { font-family: var(--of-serif); font-style: italic; font-size: 1.05rem; color: var(--of-umber); }
.of-footer .of-cross { color: var(--of-gold); margin: 0 6px; }

/* ------------------------------------------------------------ login */
body.login { background: var(--of-parchment); }
.login #container {
  margin-top: 8vh; border-radius: 14px; overflow: hidden; border: 1px solid var(--of-line);
  box-shadow: 0 18px 50px rgba(62,30,14,.14);
}
.login #header { padding: 22px 24px 26px; }
.login #header #branding { justify-content: center; }
.login .of-season-pill { display: none; }
.login #content { padding: 24px 28px 28px; background: #fff; }
.login .submit-row { background: none; border: 0; padding: 1em 0 0; margin: 0; }
.login .submit-row input { width: 100%; padding: 10px; font-size: 1rem; }
.login .of-login-note { text-align: center; color: var(--of-quiet); font-size: .82rem; margin-top: 14px; }

/* ------------------------------------------------------------ landing page */
.of-landing { min-height: 100vh; display: flex; flex-direction: column; }
.of-landing #header { padding: 22px 40px 26px; }
.of-hero { flex: 1; display: grid; place-items: center; padding: 48px 20px; text-align: center; }
.of-hero-inner { max-width: 680px; }
.of-hero img { width: 96px; height: 96px; margin-bottom: 18px; }
.of-hero h1 { font-family: var(--of-serif); font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--of-umber-deep); margin: 0; font-weight: 600; }
.of-hero .of-tag { font-size: .85rem; letter-spacing: .3em; text-transform: uppercase; color: var(--of-gold); margin: 6px 0 22px; }
.of-hero p.of-lede { font-size: 1.1rem; line-height: 1.6; color: #4A3B30; }
.of-ladder { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 30px; }
.of-ladder span {
  padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--of-line);
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--of-umber);
}
.of-ladder span + span::before { content: none; }
.of-ladder i { color: var(--of-gold); font-style: normal; align-self: center; }
a.of-cta {
  display: inline-block; padding: 12px 30px; border-radius: 999px; text-decoration: none;
  background: var(--season); color: #fff !important; font-weight: 600; letter-spacing: .04em;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--season) 35%, transparent);
}
a.of-cta:hover { background: var(--of-umber-deep); }

/* ------------------------------------------------------------ small screens (katabi leaders on phones) */
@media (max-width: 767px) {
  #header { padding: 12px 16px 16px; }
  .of-brand-name { font-size: 1.35rem; }
  .of-brand img { width: 38px; height: 38px; }
  .of-season-pill { display: none; }
  div.breadcrumbs { padding: 8px 16px; }
  input[type=text], select, textarea { font-size: 16px; } /* stops phones zooming in */
}

@media print {
  #header, div.breadcrumbs, #nav-sidebar, .submit-row, #footer { display: none !important; }
  body { background: #fff; }
}

/* ============================================================ home screen (dashboard) */
body.of-dash #content { max-width: 1180px; margin: 0 auto; padding-top: 28px; }
body.of-dash #content-main { float: none; width: auto; }
.of-welcome { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 18px; margin-bottom: 22px; }
.of-eyebrow { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--of-gold); font-weight: 600; }
h1.of-hello { font-family: var(--of-serif); font-size: 2.3rem; font-weight: 600; color: var(--of-umber-deep); margin: 4px 0 2px; }
h1.of-hello::after { display: none; }
.of-scope { color: var(--of-quiet); font-size: .9rem; }
.of-scope strong { color: var(--season); }
.of-actions { display: flex; flex-wrap: wrap; gap: 8px; }
a.of-action, a.of-action:visited {
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem; text-decoration: none;
  background: #fff; color: var(--of-umber); border: 1px solid var(--of-line);
  box-shadow: 0 1px 2px rgba(62,30,14,.06);
}
a.of-action:hover { border-color: var(--of-gold); color: var(--of-umber-deep); }
a.of-action.primary, a.of-action.primary:visited { background: var(--season); color: #fff; border-color: var(--season); }
a.of-action.primary:hover { background: var(--of-umber-deep); }

.of-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.of-stat, a.of-stat:visited {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; text-decoration: none;
  background: #fff; border: 1px solid var(--of-line); border-radius: 12px; position: relative; overflow: hidden;
  box-shadow: 0 1px 2px rgba(62,30,14,.05), 0 8px 22px rgba(62,30,14,.05);
}
.of-stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--of-gold), var(--season)); }
a.of-stat:hover { border-color: var(--of-gold); transform: translateY(-1px); }
.of-stat-value { font-family: var(--of-serif); font-size: 2.4rem; font-weight: 600; line-height: 1; color: var(--of-umber-deep); }
.of-stat-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--of-quiet); }

.of-grid2 { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; }
.of-panel {
  background: #fff; border: 1px solid var(--of-line); border-radius: 12px; padding: 18px 22px 20px; margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(62,30,14,.05);
}
.of-panel h2 { font-family: var(--of-serif); font-size: 1.3rem; font-weight: 600; color: var(--of-umber-deep);
  margin: 0 0 14px; padding: 0; background: none; border: 0; text-transform: none; letter-spacing: 0; }
.of-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--of-vellum); }
.of-bar span { display: block; height: 100%; }
.of-legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.of-legend li { list-style: none; padding: 0; font-size: .9rem; color: #4A3B30; }
.of-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.of-legend small { color: var(--of-quiet); }
.of-ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; float: left; margin-right: 18px;
  background: conic-gradient(var(--season) calc(var(--p) * 1%), var(--of-vellum) 0); }
.of-ring span { width: 70px; height: 70px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  font-family: var(--of-serif); font-size: 1.4rem; font-weight: 600; color: var(--of-umber-deep); }
.of-note, .of-empty { color: var(--of-quiet); line-height: 1.55; margin: 0; }
.of-empty em { color: var(--of-umber); font-style: normal; font-weight: 600; }

table.of-table { width: 100%; border-collapse: collapse; }
.of-table th { background: none; text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--of-quiet); border-bottom: 2px solid var(--of-line); padding: 8px 10px; }
.of-table td { padding: 10px; border-bottom: 1px solid var(--of-line); font-size: .92rem; }
.of-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.of-table tbody tr:hover td { background: var(--season-soft); }

.of-sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 4px; }
.of-card { background: #fff; border: 1px solid var(--of-line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(62,30,14,.05); }
.of-card-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 3px solid var(--season);
  background: linear-gradient(90deg, var(--of-umber), #6B3A22); }
.of-card-head h2 { font-family: var(--of-serif); font-size: 1.15rem; font-weight: 600; color: #FFF8E8;
  margin: 0; padding: 0; background: none; border: 0; text-transform: none; letter-spacing: .02em; }
.of-card-head p { margin: 2px 0 0; font-size: .78rem; color: var(--of-gold-soft); }
.of-card ul { list-style: none; margin: 0; padding: 6px 0; }
.of-card li { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; }
.of-card li + li { border-top: 1px solid var(--of-line); }
.of-card li a:first-child { font-weight: 600; color: var(--of-umber); }
.of-card li a:first-child:hover { color: var(--season); }
a.of-add, a.of-add:visited { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  background: var(--season-soft); color: var(--season); font-weight: 700; }
a.of-add:hover { background: var(--season); color: #fff; }

.of-icon { width: 38px; height: 38px; flex: none; border-radius: 10px; background-color: rgba(255,248,232,.12);
  border: 1px solid rgba(233,215,166,.35); position: relative; }
.of-icon::after { content: ""; position: absolute; inset: 8px; background: var(--of-gold-soft);
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.of-icon-people   { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6'/%3E%3Ccircle cx='17.5' cy='9.5' r='2.5'/%3E%3Cpath d='M16 14.4c3 .3 5 2.6 5 5.6'/%3E%3C/svg%3E"); }
.of-icon-calendar { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4M9 15l2 2 4-4'/%3E%3C/svg%3E"); }
.of-icon-map      { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 8l9 5 9-5-9-5zM3 12.5l9 5 9-5M3 17l9 5 9-5'/%3E%3C/svg%3E"); }
.of-icon-crook    { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 22V8a4 4 0 1 1 8 0c0 1.8-1.2 3-3 3'/%3E%3C/svg%3E"); }
.of-icon-list     { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Ccircle cx='4.5' cy='6' r='1'/%3E%3Ccircle cx='4.5' cy='12' r='1'/%3E%3Ccircle cx='4.5' cy='18' r='1'/%3E%3C/svg%3E"); }
.of-icon-shield   { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4.5 6v5.5c0 4.6 3.2 8.2 7.5 9.5 4.3-1.3 7.5-4.9 7.5-9.5V6L12 3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }

@media (max-width: 1000px) {
  .of-stats { grid-template-columns: repeat(2, 1fr); }
  .of-grid2, .of-sections { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  body.of-dash #content { padding: 16px; }
  h1.of-hello { font-size: 1.7rem; }
  .of-stat-value { font-size: 1.9rem; }
  .of-table th:nth-child(3), .of-table td:nth-child(3) { display: none; }
}
/* dashboard fixes: full width (Django's dashboard.css fixes it at 600px) and light titles on brown */
body.of-dash.dashboard #content { width: auto; max-width: 1180px; }
#content .of-card-head h2 { color: #FFF8E8; }
#content .of-panel h2 { color: var(--of-umber-deep); }
.of-table th { white-space: nowrap; }
@media (max-width: 767px) { .of-table th { font-size: .62rem; letter-spacing: .05em; padding: 8px 6px; } .of-table td { padding: 9px 6px; } }

/* ============================================================ update 2 */
/* bolder edges on every fill-in box */
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number],
input[type=tel], input[type=date], input[type=search], textarea, select, .vTextField,
.vDateField, .vTimeField {
  border: 2px solid #A88B66 !important; border-radius: 7px; background: #fff;
}
input:hover, textarea:hover, select:hover { border-color: var(--of-umber-soft) !important; }
input:focus, textarea:focus, select:focus {
  border-color: var(--season) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--season) 20%, transparent) !important;
}
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--season); vertical-align: middle; }

/* section titles inside forms: light text on brown */
#content fieldset.module h2, #content .inline-group h2, #content .module h2, #content .module caption {
  color: #FFF8E8;
}

/* a box around every clickable word, same text size */
a.of-box, a.of-box:visited, span.of-box {
  display: inline-block; padding: 5px 12px; border-radius: 8px; text-decoration: none;
  border: 1.5px solid var(--of-line); background: var(--of-parchment);
  color: var(--of-umber); font-weight: 600; line-height: 1.35;
}
a.of-box:hover, a.of-box:focus { border-color: var(--of-gold); background: #fff; color: var(--of-umber-deep); }
a.of-box.current { background: var(--season); border-color: var(--season); color: #fff; }
span.of-box.off { color: var(--of-quiet); font-weight: 400; }
.of-card li { padding: 7px 14px; }
.of-card li + li { border-top: 0; }

/* header links as boxes too */
#user-tools a, #user-tools a:visited {
  display: inline-block; padding: 3px 9px; margin-left: 4px; border-radius: 6px;
  border: 1px solid rgba(233,215,166,.55) !important; color: #FFF8E8; text-decoration: none;
}
#user-tools a:hover { background: rgba(255,248,232,.12); border-color: #FFF8E8 !important; }
#user-tools form#logout-form { display: inline; }
#user-tools #logout-form button {
  padding: 3px 9px; margin-left: 4px; border-radius: 6px; border: 1px solid rgba(233,215,166,.55);
  color: #FFF8E8; background: transparent; text-transform: uppercase; letter-spacing: .06em; font-size: inherit;
}
#user-tools #logout-form button:hover { background: rgba(255,248,232,.12); border-color: #FFF8E8; }

/* One Flock side menu */
#nav-sidebar.of-nav { background: var(--of-vellum); padding: 14px 12px 24px; border-right: 1px solid var(--of-line); }
.of-nav-home, .of-nav-home:visited {
  display: block; text-align: center; padding: 8px 12px; margin-bottom: 10px; border-radius: 8px; text-decoration: none;
  background: var(--of-umber); color: #FFF8E8 !important; font-weight: 600; letter-spacing: .04em;
}
.of-nav-home:hover { background: var(--of-umber-deep); }
#nav-sidebar.of-nav #nav-filter { width: 100%; box-sizing: border-box; margin: 0 0 12px; padding: 7px 10px; }
.of-nav-sec { margin-bottom: 14px; }
.of-nav-title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 0 2px;
  font-family: var(--of-serif); font-size: 1.05rem; font-weight: 600; color: var(--of-umber-deep);
}
.of-nav-title .of-icon { width: 24px; height: 24px; border-radius: 7px; background-color: var(--of-umber); border: 0; }
.of-nav-title .of-icon::after { inset: 5px; }
.of-nav-row { display: flex; align-items: center; gap: 6px; margin: 0 0 5px; }
.of-nav-row .of-box { flex: 1; font-size: .88rem; }
.of-nav-row .of-add { width: 28px; height: 28px; flex: none; }

/* how they usually take part */
ul.of-attend { list-style: none; margin: 0; padding: 0; }
.of-attend li { list-style: none; display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: center; padding: 6px 0; }
.of-attend-name { font-size: .9rem; color: #4A3B30; }
.of-attend-bar { height: 10px; border-radius: 999px; background: var(--of-vellum); overflow: hidden; }
.of-attend-bar i { display: block; height: 100%; border-radius: 999px; }
.of-attend b { font-family: var(--of-serif); font-size: 1.15rem; color: var(--of-umber-deep); min-width: 2ch; text-align: right; }
.of-grid2 { grid-template-columns: 1fr 1fr; }

/* ============================================================ update 3: find a Christian */
.of-find-box {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid #A88B66;
  border-radius: 12px; padding: 6px 8px 6px 14px; margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(62,30,14,.06), 0 8px 22px rgba(62,30,14,.05);
}
.of-find-box:focus-within { border-color: var(--season); box-shadow: 0 0 0 3px color-mix(in srgb, var(--season) 20%, transparent); }
.of-find-box input[type=search] {
  flex: 1; border: 0 !important; box-shadow: none !important; outline: none; background: transparent;
  font-size: 1.1rem; padding: 10px 4px; min-width: 0;
}
.of-find-box button.of-box { cursor: pointer; font-size: .95rem; }
.of-find-icon { width: 22px; height: 22px; flex: none; background: var(--of-umber-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.5-4.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.5-4.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.of-home-find { margin: 0 0 18px; }

.of-find { max-width: 1180px; }
.of-filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin-bottom: 16px; }
.of-filters label { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--of-quiet); font-weight: 600; }
.of-filters select { min-width: 140px; padding: 6px 8px; font-size: .92rem; text-transform: none; letter-spacing: 0; }
.of-filters button.of-box { cursor: pointer; height: 38px; }
.of-find-count { margin: 4px 0 10px; color: var(--of-quiet); }
.of-find-count b { color: var(--of-umber-deep); font-family: var(--of-serif); font-size: 1.2rem; }
#of-results { background: #fff; border: 1px solid var(--of-line); border-radius: 12px; padding: 14px 18px; }
.of-find-table td { vertical-align: middle; }
.of-find-table .of-box { font-size: .9rem; padding: 4px 10px; }
.of-quiet { color: var(--of-quiet); }
.of-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; }

@media (max-width: 767px) {
  .of-filters label { flex: 1 1 45%; }
  .of-filters select { min-width: 0; width: 100%; }
  .of-hide-sm, .of-find-table th:nth-child(3), .of-find-table td:nth-child(3),
  .of-find-table th:nth-child(4), .of-find-table td:nth-child(4) { display: none; }
  #of-results { padding: 10px; }
}
.of-filters select { height: auto !important; min-height: 38px; line-height: 1.3; padding: 7px 30px 7px 10px !important; }
button.of-box, .of-filters button.of-box {
  background: var(--of-parchment); border: 1.5px solid var(--of-line); color: var(--of-umber);
  font-weight: 600; font-family: var(--of-sans); border-radius: 8px; padding: 7px 14px; height: auto; min-height: 38px;
}
button.of-box:hover { border-color: var(--of-gold); background: #fff; }

/* update 4: compact notes in table rows (committee seats, attendance) */
.inline-group .tabular td textarea { height: 2.6em; min-height: 2.6em; width: 100%; resize: vertical; }

/* ============================================================ update 5: parish work modules */
.of-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: var(--season-soft); color: var(--season); white-space: nowrap; }
.of-icon-cross { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 3v18M6 8.5h12'/%3E%3C/svg%3E"); }
.of-icon-coins { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cellipse cx='9' cy='7' rx='6' ry='3'/%3E%3Cpath d='M3 7v5c0 1.7 2.7 3 6 3s6-1.3 6-3V7'/%3E%3Cpath d='M15 11.5c3.3 0 6 1.3 6 3v3c0 1.7-2.7 3-6 3-2.4 0-4.5-.7-5.4-1.8'/%3E%3C/svg%3E"); }
.of-icon-tools { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 6.5a4 4 0 0 0 5 5L12 19a2.1 2.1 0 0 1-3-3l7.5-7.5'/%3E%3Cpath d='M3 21l4-4'/%3E%3C/svg%3E"); }
/* modules page: big tick boxes */
.model-parishmodule #result_list td.field-active input[type=checkbox] { width: 22px; height: 22px; }
.model-parishmodule #result_list td.field-description { color: var(--of-quiet); max-width: 640px; }

/* ---------- diocese edition ---------- */
.dz-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.dz-stat-note { font-size: .82rem; color: var(--of-quiet); }
.dz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.dz-head h2 { margin-bottom: 4px !important; }
.dz-quiet { color: var(--of-quiet); font-size: .9rem; margin: 0; }
.dz-warn { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #F6E3D8; color: #8A2E12; font-weight: 700; text-align: center; }
.dz-meter { display: inline-block; vertical-align: middle; width: 110px; height: 9px; border-radius: 999px; background: var(--of-vellum); overflow: hidden; border: 1px solid var(--of-line); }
.dz-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--of-gold), var(--season)); }
.of-table tfoot th { border-top: 2px solid var(--of-umber); padding-top: 10px; color: var(--of-umber-deep); text-transform: none; letter-spacing: 0; font-size: .95rem; }
.of-table td.num, .of-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.dz-diary { list-style: none; margin: 0; padding: 0; }
.dz-diary li { display: flex; gap: 12px; align-items: stretch; padding: 8px 0; border-bottom: 1px solid var(--of-line); }
.dz-diary li:last-child { border-bottom: 0; }
.dz-date { flex: 0 0 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px;
  background: var(--of-umber); color: var(--of-gold-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding: 6px 0; }
.dz-date b { font-family: var(--of-serif); font-size: 1.6rem; line-height: 1; color: #FFF8E8; letter-spacing: 0; }
a.dz-entry, a.dz-entry:visited { flex: 1; display: block; color: var(--of-ink); text-decoration: none; padding: 4px 10px; border: 1.5px solid var(--of-line); border-radius: 10px; }
a.dz-entry:hover { border-color: var(--of-gold); background: var(--of-parchment); }
.dz-entry small { display: block; color: var(--of-quiet); margin-top: 2px; }
.dz-attn { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dz-attn a, .dz-attn a:visited { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--of-line);
  border-radius: 10px; color: var(--of-ink); text-decoration: none; }
.dz-attn a:hover { border-color: var(--of-gold); background: var(--of-parchment); }
.dz-attn b { font-family: var(--of-serif); font-size: 1.5rem; color: var(--season); min-width: 34px; text-align: right; }
.dz-year { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.dz-year div { padding: 12px 14px; border-radius: 10px; background: var(--of-parchment); border: 1px solid var(--of-line); }
.dz-year b { display: block; font-family: var(--of-serif); font-size: 1.9rem; color: var(--of-umber-deep); line-height: 1.1; }
.dz-year span { font-size: .85rem; color: var(--of-quiet); }
button.dz-pull { font: inherit; font-weight: 600; cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--season);
  background: var(--season); color: #fff; }
.of-actions form button.of-action { font: inherit; cursor: pointer; }
.of-profile th { width: 40%; text-transform: none; letter-spacing: 0; font-size: .9rem; }
@media (max-width: 767px) {
  .dz-ladder th:nth-child(3), .dz-ladder td:nth-child(3) { display: table-cell; }
  .dz-ladder th:nth-child(2), .dz-ladder td:nth-child(2) { display: none; }
  .dz-meter { width: 60px; }
}

/* ---------- demo banner (sample data) ---------- */
.of-demo { background: repeating-linear-gradient(135deg, #FFF3CF 0 14px, #FBE9B7 14px 28px); color: #5A3A05;
  border-bottom: 2px solid var(--of-gold); padding: 7px 16px; text-align: center; font-size: .9rem; }
.of-demo b { letter-spacing: .12em; text-transform: uppercase; margin-right: 6px; }
button.of-action { padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem; border: 1px solid var(--season); }
button.of-action.primary { background: var(--season); color: #fff; }
button.of-action.primary:hover { background: var(--of-umber-deep); }
.of-install { margin-left: 10px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; padding: 5px 12px;
  border-radius: 999px; border: 1px solid var(--of-gold); background: transparent; color: var(--of-gold-soft); }
.of-install:hover { background: var(--of-gold); color: var(--of-umber-deep); }
.dz-attn li, .dz-diary li { list-style: none; } .dz-attn, .dz-diary { padding-left: 0 !important; margin-left: 0 !important; }
@media (max-width: 767px) {
  #content .of-grid2 { grid-template-columns: 1fr; }
  .dz-year { grid-template-columns: 1fr 1fr; }
  .of-actions form, .of-actions form button { width: 100%; }
}
