/* DOR Saints Library — matches catholicchurchcontent.com design */

/* ============================================================
   ARCHIVE
   ============================================================ */

.dor-saints-archive {
    max-width: 860px;
    margin: 0 auto;
    font-family: 'DM Sans', -apple-system, sans-serif;
}

/* Toolbar */
.dor-saints-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.dor-saints-month-select {
    padding: 9px 12px;
    border: 1.5px solid #e0d8cc;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    outline: none;
    cursor: pointer;
    min-width: 160px;
    transition: border-color .15s;
}
.dor-saints-search {
    flex: 1;
    min-width: 200px;
    padding: 9px 12px;
    border: 1.5px solid #e0d8cc;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    outline: none;
    transition: border-color .15s;
}
.dor-saints-month-select:focus,
.dor-saints-search:focus { border-color: #1a2744; }

/* Month section */
.dor-saints-month { margin-bottom: 40px; }

.dor-saints-month__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: #1a2744;
    border-bottom: 1px solid #e0d8cc;
    padding-bottom: 10px;
    margin-bottom: 4px;
}
.dor-saints-month__count {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #aaa;
}

/* Saint row — single line, CCC style */
.dor-saints-list { display: flex; flex-direction: column; }

.dor-saint-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 8px;
    border-bottom: 1px solid #f0ece6;
    text-decoration: none;
    transition: background .1s;
    border-radius: 4px;
    min-width: 0;
}
.dor-saint-row:hover { background: #faf8f4; text-decoration: none; }

/* Small thumbnail */
.dor-saint-row__thumb-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f0e8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dor-saint-row__thumb-wrap--empty { color: #c8b99a; font-size: 18px; }
.dor-saint-row__thumb { width: 100%; height: 100%; object-fit: cover; }

/* Graphic count badge */
.dor-saint-row__count {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: #b8962e;
    background: #fef3d0;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.dor-saint-row__count--empty {
    color: #bbb;
    background: #f5f0e8;
}

/* Date */
.dor-saint-row__date {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    min-width: 80px;
    white-space: nowrap;
}

/* Name + bio */
.dor-saint-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.dor-saint-row__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a2744;
    white-space: nowrap;
    flex-shrink: 0;
}
.dor-saint-row:hover .dor-saint-row__title { color: #b8962e; }
.dor-saint-row__bio {
    font-size: 13px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* Format labels */
.dor-saint-row__formats {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
    align-items: center;
}
.dor-saint-row__format {
    font-size: 10px;
    color: #667085;
    background: #ece8e2;
    padding: 1px 7px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Arrow */
.dor-saint-row__arrow {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #1a2744;
    white-space: nowrap;
}
.dor-saint-row:hover .dor-saint-row__arrow { color: #b8962e; }

/* Empty state */
.dor-saints-empty {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 0;
    font-size: 14px;
}

/* Mobile */
@media (max-width: 600px) {
    .dor-saint-row__bio { display: none; }
    .dor-saint-row__date { min-width: 60px; font-size: 11px; }
    .dor-saint-row__title { font-size: 15px; }
    .dor-saint-row { gap: 8px; padding: 10px 4px; }
    .dor-saint-row__thumb-wrap { width: 36px; height: 36px; }
}

/* ============================================================
   SINGLE SAINT
   ============================================================ */

.dor-saint-single__breadcrumb {
    background: #f5f0e8;
    padding: 10px 0;
    font-size: 12px;
    color: #888;
    border-bottom: 1px solid #e0d8cc;
}
.dor-saint-single__breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.dor-saint-single__breadcrumb a { color: #1a2744; text-decoration: none; }
.dor-saint-single__breadcrumb a:hover { color: #b8962e; }
.dor-saint-single__breadcrumb span { color: #ccc; }

.dor-saint-single__header {
    background: #1a2744;
    padding: 36px 0 30px;
    border-bottom: 3px solid #b8962e;
}
.dor-saint-single__feast {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #b8962e;
    margin: 0 0 10px;
}
.dor-saint-single__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 40px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.1;
}
.dor-saint-single__patron {
    font-size: 14px;
    color: rgba(255,255,255,.55);
    margin: 0;
    font-style: italic;
}

.dor-saint-single__body { padding: 40px 0 64px; }

.dor-saint-single__layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 48px;
    align-items: start;
}
@media (max-width: 768px) {
    .dor-saint-single__layout { grid-template-columns: 1fr; }
    .dor-saint-single__sidebar { order: -1; }
}

.dor-saint-single__bio {
    font-size: 17px;
    line-height: 1.8;
    color: #3d3830;
    margin-bottom: 28px;
    border-bottom: 1px solid #e0d8cc;
    padding-bottom: 24px;
}
.dor-saint-single__content {
    font-size: 15px;
    line-height: 1.75;
    color: #3d3830;
    margin-bottom: 36px;
}
.dor-saint-single__content p { margin-bottom: 1em; }

/* Assets */
.dor-saint-single__assets { margin-top: 0; }
.dor-saint-single__assets-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0d8cc;
}
.dor-saint-single__assets-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: #1a2744;
    margin: 0;
}
.dor-saint-single__assets-count { font-size: 12px; color: #aaa; }

/* Gate */
.dor-saint-gate {
    background: #faf8f4;
    border: 1px solid #e0d8cc;
    border-radius: 12px;
    padding: 28px 24px;
    margin-bottom: 20px;
    text-align: center;
}
.dor-saint-gate__title { font-size: 16px; font-weight: 700; color: #1a2744; margin: 0 0 6px; }
.dor-saint-gate__sub { font-size: 13px; color: #667085; line-height: 1.55; margin: 0 0 16px; }
.dor-saint-gate__form {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}
.dor-saint-gate__input {
    padding: 10px 14px;
    border: 1.5px solid #cfc6b4;
    border-radius: 8px;
    font-size: 14px;
    width: 220px;
    max-width: 100%;
    outline: none;
    font-family: inherit;
}
.dor-saint-gate__input:focus { border-color: #1a2744; }
.dor-saint-gate__btn {
    padding: 10px 20px;
    background: #1a2744;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .14s;
}
.dor-saint-gate__btn:hover:not(:disabled) { background: #253560; }
.dor-saint-gate__btn:disabled { opacity: .6; }
.dor-saint-gate__fine { font-size: 11px; color: #aaa; margin: 10px 0 0; }

/* Assets grid */
.dor-saint-assets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}
.dor-saint-assets-grid--locked {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
    opacity: .6;
}
@media (max-width: 500px) { .dor-saint-assets-grid { grid-template-columns: 1fr 1fr; } }

.dor-saint-asset {
    background: #fff;
    border: 1px solid #e0d8cc;
    border-radius: 10px;
    overflow: hidden;
}
.dor-saint-asset__preview {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    background: #f5f0e8;
}
.dor-saint-asset__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dor-saint-asset__icon {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px;
}
.dor-saint-asset__lock {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    background: rgba(255,255,255,.4);
}
.dor-saint-asset__info {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.dor-saint-asset__label { font-size: 11px; color: #888; font-weight: 500; }
.dor-saint-asset__dl {
    font-size: 11px;
    font-weight: 600;
    background: #1a2744;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background .14s;
}
.dor-saint-asset__dl:hover { background: #253560; color: #fff; text-decoration: none; }
.dor-saint-asset__dl--locked { background: #e0d8cc; color: #aaa; cursor: default; }
.dor-saint-no-assets { font-size: 13px; color: #aaa; font-style: italic; padding: 12px 0 24px; }

/* Same feast day */
.dor-saint-same-day {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0d8cc;
}
.dor-saint-same-day__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a2744;
    margin-bottom: 12px;
}
.dor-saint-same-day__list { display: flex; flex-direction: column; gap: 8px; }
.dor-saint-same-day__item {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    padding: 10px;
    border: 1px solid #e0d8cc;
    border-radius: 8px;
    transition: background .12s;
}
.dor-saint-same-day__item:hover { background: #faf8f4; text-decoration: none; }
.dor-saint-same-day__thumb {
    width: 44px; height: 44px;
    border-radius: 6px; object-fit: cover; flex-shrink: 0;
}
.dor-saint-same-day__thumb--empty {
    width: 44px; height: 44px;
    background: #f5f0e8;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #c8b99a; flex-shrink: 0;
}
.dor-saint-same-day__item div { flex: 1; }
.dor-saint-same-day__item strong { font-size: 14px; color: #1a2744; display: block; }
.dor-saint-same-day__item p { font-size: 12px; color: #888; margin: 2px 0 4px; }
.dor-saint-same-day__item span { font-size: 11px; font-weight: 600; color: #b8962e; }

/* Sidebar */
.dor-saint-single__sidebar { position: sticky; top: 80px; }
.dor-saint-sidebar-card {
    background: #fff;
    border: 1px solid #e0d8cc;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}
.dor-saint-sidebar-card__img {
    width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
}
.dor-saint-sidebar-card__body { padding: 14px; }
.dor-saint-sidebar-card__row {
    display: flex;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f0ece6;
    font-size: 13px;
    color: #3d3830;
    align-items: flex-start;
}
.dor-saint-sidebar-card__row:last-child { border-bottom: none; padding-bottom: 0; }
.dor-saint-sidebar-card__label {
    font-weight: 600; color: #aaa; flex-shrink: 0; min-width: 65px; font-size: 11px;
    text-transform: uppercase; letter-spacing: .04em; padding-top: 1px;
}
.dor-saint-sidebar-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.dor-saint-sidebar-card__tag {
    font-size: 10px; background: #e8ecf4; color: #1a2744; padding: 2px 7px; border-radius: 20px;
}
.dor-saint-sidebar-back {
    display: block; font-size: 12px; font-weight: 600;
    color: #888; text-decoration: none; padding: 4px 0;
}
.dor-saint-sidebar-back:hover { color: #1a2744; }
