/* Shared visual language inspired by Dag voor dag (asnd.nl).
   Loaded after the public and portal styles; content and state stay separate. */
:root {
  --paper: #f8f9f5;
  --surface: #eef2e9;
  --green: #315c48;
  --ink: #263d32;
  --muted: #647264;
  --sage: #e4ecdc;
  --line: #dfe5d9;
  --card: #fffefa;
  --radius: 12px;
  --shadow: 0 4px 22px #24372106;
}
body { background: var(--paper); }
h1,h2,h3,h4 { color: #263f32; }
:where(a,button,input,select,textarea,summary):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.button {
  border-radius: 7px;
  min-height: 44px;
  box-shadow: 0 2px 3px #263d3208;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.button:hover:not(:disabled) { background: #254b38; transform: translateY(-1px); box-shadow: 0 5px 14px #263d3212; }
.button.soft { background: #eaf0e4; border-color: #e3eadc; color: #31553c; box-shadow: none; }
.button.soft:hover:not(:disabled) { background: #dfe9d7; }
.button.danger:hover:not(:disabled) { background: #853b30; }
button:disabled { cursor: default; transform: none; box-shadow: none; }
.button:active:not(:disabled) { transform: translateY(1px); }
input:not([type=checkbox]):not([type=hidden]):not([type=file]),select,textarea {
  border-radius: 8px;
  border-color: #dce3d6;
  background-color: #ffffffbd;
  transition: border-color .18s, box-shadow .18s;
}
input:not([type=checkbox]):focus,textarea:focus,select:focus {
  border-color: #8a9e76;
  box-shadow: 0 0 0 3px #315c480b;
}
.eyebrow { color: #61745a; letter-spacing: 1.5px; }
.pill,.tag,.status,.image-tag { background: #edf2e6; color: #46603c; border-radius: 5px; }
.status.published { background: #e1ecd8; color: #39592e; }
#toast,#portal-toast { border-radius: 9px; box-shadow: 0 8px 30px #263d3220; }

/* Public pages */
.site-header { background: #f8f9f5f2; }
.header-inner nav a { padding: 10px 17px; border: 1px solid transparent; border-radius: 7px; }
.header-inner nav a:hover,.header-inner nav a[aria-current] { background: #eaf0e4; border-color: #e0e7d9; }
.hero { padding-block: 68px 68px; }
.hero>div::before { content: ''; display: block; width: 46px; height: 3px; border-radius: 3px; background: #8ca17b; margin-bottom: 26px; }
.hero h1 { font-weight: 430; letter-spacing: -.04em; text-wrap: balance; }
.hero-note { color: #687b5e; }
.featured { border: 1px solid var(--line); border-radius: 16px; background: #f0f4eb; box-shadow: var(--shadow); }
.featured-copy { padding: 44px; }
.featured-copy .eyebrow { width: fit-content; background: #e5eddd; border-radius: 5px; padding: 5px 9px; }
.post-card { background: var(--card); border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s, transform .2s; }
.post-card:hover { border-color: #bfccb3; box-shadow: 0 10px 28px #263d320d; transform: translateY(-3px); }
.card-body { padding: 26px; }
.card-foot { padding-top: 18px; border-top: 1px solid #e9ede3; }
.card-foot>span:last-child { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green); }
.pillars>a { border-radius: var(--radius); background: #f0f3eb; border-color: #e1e7d9; box-shadow: var(--shadow); }
.pillars>a:nth-child(2) { background: #edf3e9; }
.pillars>a:nth-child(3) { background: #f3f1e8; }
.pillar-icon { width: 46px; height: 46px; display: grid; place-items: center; font-size: 25px; background: #ffffffa6; border: 1px solid #ffffffdc; border-radius: 10px; margin-bottom: 27px; color: #57734a; }
.archive-sidebar { background: #f0f3eb; border: 1px solid var(--line); border-radius: 10px; padding: 23px 16px; align-self: start; }
.archive-sidebar>a { border-radius: 6px; padding: 10px 12px; }
.archive-sidebar>a.active { background: #e0e9d6; }
.search-form { gap: 10px; }
.article-cover img,.about-art { border-radius: var(--radius); }
.article-header h1 { text-wrap: balance; }
.article-margin nav { border-left: 2px solid #d6e0ca; padding-left: 17px; }
.prose blockquote { background: #eff4e8; border-left: 3px solid #91a780; border-radius: 0 9px 9px 0; padding: 22px 26px; }
.article-actions { border-radius: 8px; }
.comment-form,.contact-form,.login-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.comment { border-color: var(--line); }
.avatar { background: #e5eddc; color: #48623c; }
.footer { background: #eff3e9; border-top: 1px solid var(--line); }
.footer-quote { border-left-color: #aabc97; }

/* Portal surfaces and navigation */
.portal-body { background: #f7f8f4; }
.portal-nav { background: #f0f3eb; border-color: var(--line); }
.portal-nav nav a { display: flex; align-items: center; gap: 11px; color: #596d52; border-radius: 7px; min-height: 44px; padding: 11px 12px; transition: background .18s,color .18s; }
.portal-nav nav a:hover { background: #e8eee0; }
.portal-nav nav a.active { background: #e1ead7; color: #315639; box-shadow: inset 3px 0 #6f8c60; }
.portal-nav .nav-icon { width: 20px; flex: 0 0 20px; text-align: center; font: 19px/1 var(--sans); color: #718564; }
.portal-nav nav a.active .nav-icon { color: #315c48; }
.portal-nav-bottom { padding-top: 24px; }
.portal-heading { margin-bottom: 30px; }
.portal-heading h1 { font-weight: 430; }
.panel,.stat,.editor-paper,.verse-card,.office-paper,.media-card { background: var(--card); border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { position: relative; overflow: hidden; padding: 25px 27px; }
.stat::before { content: ''; height: 3px; width: 32px; background: #93a980; border-radius: 3px; position: absolute; top: 0; left: 27px; }
.stat strong { color: #36563e; }
.panel-heading { padding-bottom: 15px; border-bottom: 1px solid #edf0e8; }
.table-scroll tbody tr:hover { background: #f1f5eb80; }
.status { padding: 6px 9px; }
.writing-note { border-top: 1px solid var(--line); padding-top: 25px; margin-top: 30px; }
.ql-toolbar.ql-snow { border-radius: 8px 8px 0 0; background: #f0f4ea; }
.ql-container.ql-snow { border-radius: 0 0 8px 8px; background: var(--card); }
.title-input { border-radius: 0!important; background: transparent!important; }
.upload-box { border-radius: 10px; background: #eef4e6; border-color: #acbf99; }
.media-dialog { border-radius: 14px; }
.verse-tag { border-radius: 5px; background: #eaf0e3; padding: 6px 9px; }
.verse-card .study-toolbar { padding-top: 14px; border-top: 1px solid #edf0e8; }
.verse-heading h2 { font-size: 25px; }
.verse-note { background: #f3f6ee; border-left-color: #a4b994; padding: 12px 16px; border-radius: 0 6px 6px 0; }
.message-row:hover { border-color: #aebf9d; box-shadow: 0 6px 22px #263d320a; }

/* ASND reading rows, round day controls and a distinct study focus. */
.reading-progress { appearance: none; border: 0; border-radius: 5px; background: #e4e9dd; height: 5px; }
.reading-progress::-webkit-progress-bar { background: #e4e9dd; border-radius: 5px; }
.reading-progress::-webkit-progress-value { background: #6c8b5b; border-radius: 5px; }
.reading-progress::-moz-progress-bar { background: #6c8b5b; border-radius: 5px; }
.reading-paper { padding: 30px; }
.reading-paper>[class=study-toolbar] { margin-top: 0; gap: 13px; }
.reading-paper [data-prev],.reading-paper [data-next] { border-radius: 50%; width: 36px; height: 36px; min-height: 36px; padding: 0; background: transparent; border-color: var(--line); }
.reading-paper [data-prev]:hover:not(:disabled),.reading-paper [data-next]:hover:not(:disabled) { background: #eaf0e2; }
.reading-paper .reading-passages { display: block; margin: 24px 0 30px; }
.reading-step { border-top: 1px solid #e7ecdf; padding: 21px 0; position: relative; }
.reading-step dt { display: flex; align-items: center; gap: 17px; font: 500 11px/1.5 var(--sans); color: #627259; }
.reading-step-number { width: 23px; flex-shrink: 0; font-size: 10px; letter-spacing: 1px; color: #75896b; }
.reading-step dd { margin: 8px 0 0 40px; font: 25px/1.5 var(--serif); }
.reading-focus { margin-top: 17px; border-left: 2px solid #adbf9c; background: #f3f6ec; padding: 12px 17px; border-radius: 0 6px 6px 0; }
.reading-focus span { display: block; font: 600 10px/1.7 var(--sans); color: #536d44; }
.reading-focus p { font: 13px/1.9 var(--sans); color: #55664d; margin: 5px 0 0; }
.reading-step .reading-recap { padding: 0; border: 0; }
.reading-recap-source { margin-top: 9px; line-height: 1.8; }
.reading-paper textarea { border-radius: 8px; font-size: 14px; line-height: 1.9; background: #fbfcf8; }
.reading-days { gap: 9px; }
.reading-days button { min-height: 44px; border-radius: 6px; background: #fbfcf8; font-size: 12px; transition: background .18s; }
.reading-days button:hover { background: #eaf0e2; }
.reading-days .done { background: #e2ecd8; border-color: #d7e3cb; color: #4b6b3a; }
.reading-days .current { border-width: 1px; box-shadow: inset 0 0 0 1px var(--green); }

/* The same segmented prayer selector and paper surface as ASND. */
.office-switcher { padding: 4px; gap: 2px; background: #e9eee2; border-radius: 9px; }
.office-switcher button { border: 0; border-radius: 6px; background: transparent; color: #5c6f51; min-height: 38px; }
.office-switcher button.selected { background: #fffefa; color: #315c48; box-shadow: 0 1px 5px #263d3212; font-weight: 600; }
.office-switcher button:hover:not(.selected) { background: #ffffff80; }
.office-paper { padding: 35px; }
.office-service-heading { border-color: #e1e7d9; }
.office-prayer { font-size: 21px; line-height: 1.9; }
.office-references { border-left: 2px solid #b4c6a3; padding-left: 17px; }
.office-pause { border-color: #ccdabc; background: #f4f7ef; padding-block: 15px; border-radius: 0 6px 6px 0; }
.office-time-update { border-radius: 8px; background: #eaf1e2; }
.office-language-control select,.office-date-control input { border-radius: 7px; }

@media (max-width: 950px) {
  .featured-copy { padding: 30px; }
  .card-body { padding: 22px; }
}
@media (max-width: 680px) {
  .hero { padding-block: 42px 45px; }
  .hero>div::before { margin-bottom: 23px; width: 36px; }
  .hero h1 { font-size: clamp(42px,10.8vw,60px); }
  .featured { border-radius: 12px; }
  .featured-copy { padding: 27px 24px; }
  .header-inner nav a { padding: 8px 11px; }
  .portal-nav { padding: 19px 18px 13px; }
  .portal-nav nav { padding-bottom: 7px; gap: 6px; scrollbar-width: thin; scrollbar-color: #b6c5a8 transparent; }
  .portal-nav nav a { flex-shrink: 0; gap: 7px; min-height: 40px; padding: 9px 11px; background: #ffffff80; }
  .portal-nav nav a.active { box-shadow: inset 0 -2px #6f8c60; }
  .portal-nav .nav-icon { font-size: 16px; width: 17px; flex-basis: 17px; }
  .portal-nav-bottom { padding-top: 0; }
  .panel,.editor-paper,.verse-card { border-radius: 10px; }
  .reading-paper { padding: 23px 20px; }
  .reading-step { padding-block: 18px; }
  .reading-step dt { gap: 11px; }
  .reading-step dd { margin-left: 34px; font-size: 23px; }
  .reading-focus { padding: 11px 13px; }
  .reading-focus p { font-size: 12px; }
  .reading-recap-source { font-size: 10px; }
  .office-switcher { width: 100%; flex-wrap: nowrap; }
  .office-switcher button { flex: 1; min-width: 0; padding: 9px 8px; min-height: 42px; }
  .office-paper { padding: 25px 22px; }
  .office-prayer { font-size: 20px; }
  .archive-sidebar { padding: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .reading-paper,.office-paper,.message-detail { animation: paper-appear .24s ease-out; }
  @keyframes paper-appear { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}
