/* Charter of the day (mu-plugin kemble-charter-of-the-day) */
.cotd { margin: 30px 0 26px; padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, #fbf8ef 0%, #f3f6f9 100%); box-shadow: var(--shadow-sm); font-family: var(--font-ui); transition: opacity 0.18s var(--ease); }
.cotd.is-switching { opacity: 0.35; }
.cotd-head h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 26px; color: var(--accent-strong); }
.cotd-sub { margin: 4px 0 16px !important; font-size: 13.5px; color: var(--ink-soft); max-width: none; }
.cotd-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .cotd-body { grid-template-columns: 1fr; } }
.cotd-carousel { position: relative; }
.cotd-slides { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #e9e3d4; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.cotd-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.6s var(--ease); }
.cotd-slide.is-active { opacity: 1; }
.cotd-slide a { display: block; width: 100%; height: 100%; background-image: none; padding: 0; margin: 0; }
.cotd-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cotd-slide figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(18,26,36,0.75); color: #fff; font-size: 11.5px; letter-spacing: 0.4px; text-transform: uppercase; }
.cotd-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.85); color: var(--ink); font-size: 26px; line-height: 36px; cursor: pointer; box-shadow: var(--shadow-sm); transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.cotd-arrow:hover { background: var(--accent); color: #fff; }
.cotd-prev { left: 10px; } .cotd-next { right: 10px; }
.cotd-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.cotd-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #c2ccd6; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.cotd-dots button.is-active { background: var(--accent); transform: scale(1.25); }
.cotd-kicker { margin: 0 !important; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.cotd-charter { margin: 2px 0 10px !important; font-family: var(--font-serif); font-size: 22px; line-height: 1.25; color: var(--ink); }
.cotd-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 0 0 12px; font-size: 13px; }
.cotd-facts div { padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.7); }
.cotd-facts dt { font-size: 10.5px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink-soft); }
.cotd-facts dd { margin: 0; color: var(--ink); }
.cotd-notes { margin: 0 0 12px !important; font-family: var(--font-serif); font-size: 15px; line-height: 1.55; max-width: none; }
.cotd-actions { margin: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.cotd-btn { display: inline-block; padding: 7px 13px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; background-image: none; cursor: pointer; transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.cotd-btn:hover { background: var(--accent-strong); color: #fff; transform: translateY(-1px); }
.cotd-btn-quiet { background: var(--accent-soft); color: var(--accent-strong); }
