/*
Theme Name: Uto Discover Canvas
Theme URI: https://streetartutopia.com
Author: Uto
Author URI: https://streetartutopia.com
Description: Superenkelt, snabbt och bilddrivet tema för Google Discover med kort text.
Version: 1.49-social-sharing
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: uto-discover-canvas
*/

:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #121722;
  --muted: #5b6678;
  --accent: #2f6fff;
  --line: #dde3ee;
  --max: 690px;
  --radius: 14px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto !important;
  width: auto;
  height: auto;
  margin: 0;
  padding: .5rem .75rem;
  position: static !important;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 100000;
}

.site-wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.site-header { padding: .85rem 0; border-bottom: 1px solid var(--line); background: #fff; }

.header-row { display: flex; align-items: center; gap: .8rem; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; letter-spacing: .2px; white-space: nowrap; }
.brand-logo { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; border: 1px solid var(--line); }
.brand-text { font-size: .94rem; }

.site-header .mini-tools { margin-left: auto; min-width: 0; display: inline-flex !important; align-items: center; gap: .55rem; flex-wrap: nowrap !important; }
.site-header .mini-tools .mini-search { min-width: 0; display: block; }
.site-header .mini-tools .search-form { display: inline-flex !important; gap: .55rem; align-items: center; flex-wrap: nowrap !important; margin: 0 !important; }
.site-header .mini-tools .search-form label { margin: 0 !important; display: block !important; }
.site-header .search-field {
  background: #fff;
  border: 2px solid #bfcde2;
  color: var(--text);
  border-radius: 999px;
  padding: .38rem .72rem;
  width: 150px;
  max-width: 34vw;
}
.site-header .search-submit {
  border: 2px solid #bfcde2;
  background: #fff;
  color: #243247;
  border-radius: 999px;
  padding: .33rem .62rem;
  cursor: pointer;
  white-space: nowrap;
}

.floating-dice {
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 130;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #c9d6ee;
  background: linear-gradient(180deg,#ffffff,#f3f7ff);
  color: #233754;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 6px 18px rgba(22,42,76,.18);
}
.floating-dice:active { transform: translateY(1px); }

.sau-auto-links {
  margin: 1rem 0;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.sau-auto-links strong { display: block; margin: 0 0 .35rem; font-size: .86rem; color: #3d4f68; }
.sau-auto-links ul { margin: 0; padding-left: 1rem; }
.sau-auto-links li { margin: .2rem 0; }

@media (max-width: 760px) {
  .header-row { flex-wrap: nowrap; gap: .45rem; }
  .brand-text { display: inline; font-size: .86rem; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-header .mini-tools { gap: .35rem; flex-wrap: nowrap !important; }
  .site-header .mini-tools .search-form { gap: .35rem; flex-wrap: nowrap !important; }
  .search-field { width: 80px; }

  .single-hero,
  .single-content img {
    width: calc(100% + 1.2rem);
    max-width: calc(100% + 1.2rem);
    margin-left: -.6rem;
    margin-right: -.6rem;
    border-radius: 6px;
  }
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 99;
  background: rgba(47,111,255,.08);
}
.read-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  background: linear-gradient(90deg,#2f6fff,#6b55db);
}


.global-vibe-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.vibe-row {
  padding: .55rem 0 .62rem;
}
.vibe-main-actions {
  display: flex;
  gap: .42rem;
  flex-wrap: wrap;
}
.index-random-btn {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  border: 1px solid #c9d6ee;
  border-radius: 999px;
  background: linear-gradient(180deg,#ffffff,#f3f7ff);
  color: #233754;
  font-weight: 800;
  letter-spacing: .01em;
  font-size: .83rem;
  padding: .38rem .65rem;
  box-shadow: 0 3px 10px rgba(22,42,76,.08);
}
.index-random-btn:hover { animation: glitch-shake .18s linear 2; }
.index-random-btn--ghost {
  background: #fff;
  color: #314761;
  border-style: dashed;
}
.index-random-btn:active { transform: translateY(1px); }
.index-oracle {
  margin: .48rem 0 .35rem;
  color: #4a5870;
  font-size: .82rem;
}
/* Tiny punk detail under brand */
.brand-text {
  position: relative;
}
.brand-text::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg,#2f6fff,#8d3bff,#ff4d6d);
  opacity: .5;
  transform-origin: left center;
  animation: punk-underline 12s steps(1,end) infinite;
}

@keyframes glitch-shake {
  0% { transform: translate(0,0); }
  25% { transform: translate(-1px,0); }
  50% { transform: translate(1px,0); }
  75% { transform: translate(-1px,0); }
  100% { transform: translate(0,0); }
}

@keyframes punk-underline {
  0%, 74% { transform: scaleX(.35); opacity: .25; }
  75%, 82% { transform: scaleX(1); opacity: .85; }
  83%, 100% { transform: scaleX(.5); opacity: .35; }
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: clip;
}
.card-top-reaction-badge,
.card-total-reaction-badge {
  position: absolute;
  z-index: 2;
  background: rgba(255,255,255,.92);
  color: #243247;
  font-size: .67rem;
  font-weight: 700;
  padding: .18rem .42rem;
  border-radius: 999px;
  border: 1px solid #d2dbeb;
  box-shadow: 0 3px 10px rgba(24,42,77,.10);
}
.card-top-reaction-badge { top: .45rem; left: .45rem; }
.card-total-reaction-badge { top: .45rem; right: .45rem; }
.card-media img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card-body { padding: .8rem .9rem 1rem; }
@media (max-width: 760px) {
  .card-top-reaction-badge,
  .card-total-reaction-badge { font-size: .63rem; padding: .16rem .36rem; }
}
.card h2 { margin: 0 0 .45rem; font-size: 1.05rem; line-height: 1.25; }
.card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.38;
  max-height: 2.76em !important;
  min-height: 2.76em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.index-feed-divider {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .4rem 0 .25rem;
  color: #5e6a7d;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.index-feed-divider::before,
.index-feed-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1 1 auto;
}

.single {
  width: min(100% - 2rem, 690px);
  margin-inline: auto;
  padding: 1.25rem 0 3rem;
}

.wiki-wrap {
  width: min(100% - 2rem, 1120px);
  margin: 1rem auto 3rem;
  display: grid;
  grid-template-columns: minmax(0, 690px) 280px;
  justify-content: center;
  gap: 1.1rem;
}
.wiki-main { width: 100%; max-width: 690px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.wiki-header h1 { margin: 0 0 .35rem; }
.wiki-subtitle { margin: 0 0 .8rem; color: var(--muted); }
.wiki-hero img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.wiki-aside {
  position: sticky;
  top: 72px;
  align-self: start;
  display: grid;
  gap: .8rem;
  max-height: calc(100vh - 84px);
  overflow: auto;
  padding-right: .2rem;
}
.wiki-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; }
.wiki-box h3 { margin: 0 0 .55rem; font-size: .95rem; }
.wiki-box dl { margin: 0; display: grid; grid-template-columns: 84px 1fr; row-gap: .35rem; column-gap: .4rem; }
.wiki-box dt { color: var(--muted); font-size: .82rem; }
.wiki-box dd { margin: 0; font-size: .9rem; }
.wiki-sources p { margin: 0 0 .45rem; font-size: .9rem; }
@media (max-width: 900px) {
  .wiki-wrap { grid-template-columns: 1fr; }
  .wiki-main,
  .wiki-aside {
    width: min(100%, 690px);
    margin-inline: auto;
  }
  .wiki-aside { position: static; max-height: none; overflow: visible; padding-right: 0; }
}
.single h1 { line-height: 1.15; margin: 0 0 .8rem; font-size: clamp(1.6rem, 3.5vw, 2.35rem); }
.drop-kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8e2f3;
  color: #2c4261;
  background: #f5f8ff;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  padding: .16rem .48rem;
  margin: 0 0 .55rem;
}
.single-meta-row { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin-bottom: .9rem; }
.single-meta { color: var(--muted); font-size: .92rem; }
.author-chip { display: inline-flex; align-items: center; gap: .38rem; color: #2f3f58; font-size: .82rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .14rem .5rem .14rem .18rem; }
.author-chip img, .author-chip .avatar { width: 24px; height: 24px; border-radius: 50%; }
.single-hero { margin: 0 0 1rem; border-radius: var(--radius); overflow: clip; border: 1px solid var(--line); }
.single-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.single-content { font-size: 1.04rem; }
.single-content p { margin: 0 0 1rem; }
.single-content figure { margin: .2rem auto .9rem; text-align: center; }
.single-content img { border-radius: 10px; margin: .25rem auto .85rem; }

.single-content a {
  color: #1f64ff;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(31,100,255,.65);
  text-decoration-skip-ink: auto;
  font-weight: 600;
}
.single-content a:visited { color: #6b55db; }
.single-content a:hover,
.single-content a:focus-visible {
  text-decoration-thickness: 3px;
  background: rgba(31,100,255,.08);
  border-radius: 4px;
  outline: none;
}
.single-content a[href^="http"]:not([href*="streetartutopia.com"])::after { content: " ↗"; font-size: .85em; }
.single-content h3 + p a:first-of-type,
.single-content h2 + p a:first-of-type {
  background: rgba(47,111,255,.08);
  border: 1px solid rgba(47,111,255,.2);
  border-radius: 6px;
  padding: .05rem .28rem;
}
.single-content p.more-line { color: #33435d; font-weight: 600; }
.single-content p.more-line a { font-weight: 700; }

.social-proof {
  display: inline-block;
  margin: .05rem 0 .85rem;
  padding: .36rem .62rem;
  border: 1px solid #d3dced;
  border-radius: 999px;
  background: linear-gradient(180deg,#ffffff,#f5f8ff);
  color: #244a9b;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.social-proof:hover { background: #eef4ff; }

.share-row {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  margin: .35rem 0 1rem;
  color: var(--muted);
  font-size: .86rem;
}
.share-row__prompt {
  flex: 0 0 100%;
  color: #334861;
  font-size: .82rem;
  font-weight: 800;
}
.share-action,
.share-row a,
.share-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .36rem;
  border: 1px solid #d2dbeb;
  background: #fff;
  color: #243247;
  border-radius: 999px;
  min-height: 40px;
  padding: .34rem .72rem;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}
.share-action--facebook,
.share-row .share-action--facebook {
  border-color: #2864c7;
  background: #2864c7;
  color: #fff;
}
.share-action--facebook:hover,
.share-row .share-action--facebook:hover { border-color: #1e50a4; background: #1e50a4; color: #fff; }
.share-action--native:hover,
.share-row .share-action--native:hover { border-color: #aebed6; background: #f5f8fc; }
.share-action:focus-visible { outline: 3px solid rgba(47,111,255,.28); outline-offset: 2px; }

@media (max-width: 600px) {
  .share-row { display: grid; grid-template-columns: minmax(0,1fr); gap: .42rem; }
  .share-row__prompt { width: 100%; }
  .share-row .share-action { width: 100%; min-height: 46px; }
}

.reality-proof { margin: .65rem 0 1rem; border:1px solid var(--line); border-radius:12px; background:#f8fbff; padding:.65rem .75rem; }
.reality-proof__head { display:flex; justify-content:space-between; gap:.5rem; flex-wrap:wrap; align-items:center; }
.reality-proof__score { font-size:.82rem; color:#4b617f; }
.reality-proof details { margin-top:.35rem; }
.reality-proof summary { cursor:pointer; color:#24486f; font-weight:600; }
.reality-proof__body { margin-top:.5rem; font-size:.92rem; }
.reality-proof__body ul { margin:.3rem 0 .5rem 1rem; }

.related-stories {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.related-stories h2 { margin: 0 0 .8rem; font-size: 1rem; color: #243247; }
.related-grid { display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0,1fr)); }
.related-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.related-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.pick-badge { position: absolute; top: .45rem; left: .45rem; z-index: 2; background: rgba(18,23,34,.78); color: #fff; font-size: .67rem; font-weight: 700; padding: .18rem .4rem; border-radius: 999px; letter-spacing: .01em; }
.reaction-badge { position: absolute; top: .45rem; right: .45rem; z-index: 2; background: rgba(255,255,255,.9); color: #243247; font-size: .67rem; font-weight: 700; padding: .18rem .4rem; border-radius: 999px; border: 1px solid #d2dbeb; }
.related-card h3 { margin: .55rem .6rem .7rem; font-size: .88rem; line-height: 1.25; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }

.subscribe-custom {
  margin: 1.35rem 0 .4rem;
  padding: .95rem .95rem;
  border: 1px solid #d5e0f5;
  border-radius: 14px;
  background: linear-gradient(180deg,#f7faff,#edf4ff);
  box-shadow: 0 6px 18px rgba(31,58,104,.06);
}
.subscribe-custom h3 {
  margin: 0 0 .35rem;
  font-size: .9rem;
  color: #44556f;
}
.subscribe-custom p {
  margin: 0 0 .45rem;
  color: #556781;
  font-size: .84rem;
}
.subscribe-custom input[type="email"],
.subscribe-custom input[type="text"] {
  border: 1px solid #ccd7e8;
  border-radius: 999px;
  padding: .45rem .7rem;
}
.subscribe-custom input[type="submit"],
.subscribe-custom button {
  border: 1px solid #ccd7e8;
  border-radius: 999px;
  background: #fff;
  color: #243247;
  padding: .42rem .8rem;
}

.single-keep-exploring { margin-top: 1.35rem; }
.single-keep-exploring .index-feed-divider { margin-bottom: .75rem; }

.single-view-switch { display: flex; gap: .35rem; flex-wrap: wrap; margin: .55rem 0 .75rem; }
.single-view-switch a { border: 1px solid #d0dbed; border-radius: 999px; padding: .22rem .54rem; font-size: .75rem; color: #35506f; }
.single-view-switch a.active { background: #eef4ff; border-color: #a9bfe2; font-weight: 700; }
.gallery-note { margin: .2rem 0 .65rem; font-size: .78rem; color: #4b5f79; }

.single-content--gallery img { border-radius: 14px; margin-bottom: .35rem; }
.single-content [id^="photo-"] { scroll-margin-top: 1rem; }
.single-content .uto-photo-target {
  outline: 4px solid rgba(242,202,85,.9);
  outline-offset: 5px;
  border-radius: 14px;
  box-shadow: 0 0 0 9px rgba(242,202,85,.2);
  transition: outline-color .35s ease, box-shadow .35s ease;
}
@media (prefers-reduced-motion:reduce) {
  .single-content .uto-photo-target { transition: none; }
}
.single-content .wp-block-image {
  margin: .75rem 0 .35rem;
}
.single-content .wp-block-image:not(:first-of-type) {
  border-top: 2px solid #e6edf8;
  padding-top: .65rem;
  margin-top: 1rem;
}
.single-content--mag p:first-of-type { font-size: 1.08rem; color: #2a3b52; }

.img-like-row { margin: .10rem 0 .82rem; display: flex; align-items: center; gap: .48rem; flex-wrap: wrap; }

/* Wall Topic (Street Art News) single: compact like row */
.wall-topic-like-row{margin:.25rem 0 .9rem}
.wall-topic-title{font-size:1.65rem;line-height:1.12;margin:.25rem 0 .45rem}

.img-like-actions { width: 100%; display: flex; gap: .55rem; flex-wrap: nowrap; align-items: center; justify-content: flex-start; }
.img-like-actions .img-like-btn, .img-like-actions .img-comment-link, .img-like-actions .img-share-btn { display: inline-flex; align-items: center; justify-content: center; }

.img-like-btn, .img-comment-link, .img-share-btn {
  border: 1px solid rgba(36,50,71,.14);
  background: #fff;
  border-radius: 999px;
  font-size: .98rem;
  padding: .34rem .70rem;
  color: #243247;
  font-weight: 900;
  min-height: 38px;
  letter-spacing: .01em;
  gap: .45rem;
}
.single-content .img-share-btn {
  color: #243247;
  font-weight: 900;
  text-decoration: none;
}
.single-content .img-share-btn::after { content: none; }
.img-like-btn:hover, .img-comment-link:hover, .img-share-btn:hover { background: rgba(36,50,71,.04); }
.img-like-btn:disabled { opacity: .78; cursor: default; }
.img-comment-link:disabled{opacity:.65;cursor:wait}

.img-like-btn.is-liked{color:#d63b3b;border-color:rgba(214,59,59,.28);background:rgba(214,59,59,.06)}

.img-like-btn.is-pop{animation:utoHeartPop .22s ease-out}
@keyframes utoHeartPop{0%{transform:scale(1)}60%{transform:scale(1.18)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.img-like-btn.is-pop{animation:none}}

.img-like-icon{font-size:1.05em;line-height:1}
.img-like-label, .img-comment-label, .img-share-label{font-weight:900}
.img-comment-icon{display:inline-flex;align-items:center;line-height:1}
.img-comment-icon svg{width:18px;height:18px;display:block}
.img-share-icon{display:inline-flex;align-items:center;justify-content:center;font-size:1.02em;line-height:1}

.img-like-btn[data-count]:not([data-count="0"])::after,
.img-comment-link[data-count]:not([data-count="0"])::after{content:attr(data-count);margin-left:.35rem;min-width:1.3rem;height:1.3rem;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:rgba(36,50,71,.08);border:1px solid rgba(36,50,71,.15);font-size:.72rem;font-weight:900;line-height:1;color:#243247;padding:0 .12rem;flex:0 0 auto}

@media (max-width: 520px) {
  /* Keep photo Love + Comment + Share on one row with equal touch targets. */
  .img-like-actions{justify-content:center}
  .img-like-btn, .img-comment-link, .img-share-btn {
    font-size: .92rem;
    padding: .42rem .35rem;
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }
  .img-like-actions { gap: .32rem; }
}

.post-share-cta {
  width: 100%;
  margin: .35rem 0 1rem;
  padding: .62rem;
  border: 1px solid #d8e2f1;
  border-radius: 12px;
  background: linear-gradient(180deg,#fff,#f7faff);
}
.post-share-cta__prompt { margin: 0 0 .45rem; color: #334861; font-size: .82rem; font-weight: 850; }
.post-share-cta__actions { display: flex; flex-wrap: wrap; gap: .42rem; }
.single-content .post-share-cta .share-action {
  color: #243247;
  font-weight: 800;
  text-decoration: none;
}
.single-content .post-share-cta .share-action--facebook { color: #fff; }
.single-content .post-share-cta .share-action::after { content: none; }
@media (max-width: 600px) {
  .post-share-cta { padding: .58rem; }
  .post-share-cta__actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .post-share-cta .share-action { width: 100%; min-height: 46px; }
}

.img-comment-nudge{width:100%;font-size:.74rem;color:#2f4361;background:#fff7dd;border:1px solid #f1df9b;border-radius:10px;padding:.32rem .5rem;margin-top:.25rem;display:flex;gap:.4rem;align-items:center;justify-content:space-between}
.img-comment-nudge__btn{border:1px solid rgba(36,50,71,.25);background:#fff;border-radius:999px;padding:.22rem .6rem;font-weight:900;cursor:pointer;font-size:.74rem;white-space:nowrap}
.img-comment-nudge.is-fade{opacity:.0;transition:opacity 1.2s ease}
@media (prefers-reduced-motion:reduce){.img-comment-nudge.is-fade{transition:none}}

.img-reality-proof { width: 100%; font-size: .66rem; color: #4f607b; background: #f5f9ff; border: 1px dashed #cfdced; border-radius: 8px; padding: .2rem .4rem; }
.img-comment-hint { width: 100%; font-size: .72rem; color: #5e6f88; margin-top: -.1rem; }
.img-comments-preview { width: 100%; display: grid; gap: .3rem; min-width: 0; }
.img-comment-preview-item {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: .88rem;
  line-height: 1.48;
  color: #2f4361;
  background: #f8fbff;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  padding: .42rem .5rem;
}
.img-comment-preview-item > b,
.img-comment-item > b { color: #243b5a; }
.img-comment-preview-cta{justify-self:start;border:0;background:transparent;color:#355d92;padding:.08rem 0;font-size:.74rem;font-weight:900;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.img-comment-preview-cta:hover{color:#173f75}
.img-comments-box { width: 100%; border: 1px solid #dbe5f2; border-radius: 12px; background: #f9fbff; padding: .55rem; margin-top: .28rem; }

/* Bottom-sheet comments (mobile) */
.img-sheet-overlay{position:fixed;inset:0;background:rgba(15,20,32,.38);z-index:9998}
body.img-sheet-open{overflow:hidden}
.img-comments-box .img-sheet-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:.45rem;padding-bottom:.35rem;border-bottom:1px solid rgba(219,229,242,.8)}
.img-comments-box.is-sheet{position:fixed;left:0;right:0;bottom:0;z-index:9999;margin:0;border-radius:16px 16px 0 0;max-height:78vh;max-height:78dvh;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scroll-padding-bottom:calc(4.5rem + env(safe-area-inset-bottom));box-shadow:0 -18px 40px rgba(15,20,32,.22);padding:.55rem .55rem max(.7rem,env(safe-area-inset-bottom))}
.img-comments-box.is-sheet .img-sheet-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:.4rem;position:sticky;top:0;z-index:2;background:rgba(249,251,255,.97);backdrop-filter:saturate(1.1) blur(10px);padding:.28rem .1rem .38rem;border-bottom:1px solid rgba(219,229,242,.9)}
.img-sheet-title{font-weight:900;color:#243247}
.img-sheet-close{border:0;background:transparent;border-radius:999px;width:38px;height:38px;font-size:1.4rem;line-height:1;cursor:pointer;color:#243247}
.img-sheet-close:hover{background:rgba(36,50,71,.06)}
.img-comments-summary{font-size:.7rem;color:#6a7890;margin:.5rem 0 .25rem;font-weight:700}
.img-comments-list { display: grid; gap: .42rem; margin-bottom: .35rem; min-width: 0; }
.img-comment-item {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: .88rem;
  line-height: 1.48;
  color: #2f4361;
  background: #fff;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  padding: .48rem .55rem;
}
.img-comment-item.muted { color: #6b7891; }
.img-comment-item.pending { color: #5b4d2b; background: #fff9e8; border-color: #eadb9e; }
.img-comment-form { display: grid; gap: .4rem; }
.img-comment-form textarea,.img-comment-form input { width:100%;border:1px solid #cfdced;border-radius:10px;padding:.58rem .65rem;font:inherit;font-size:.88rem;background:#fff;color:#243247;box-sizing:border-box }
.img-comment-form textarea{min-height:72px;resize:vertical;line-height:1.35}
.img-comment-form textarea:focus,.img-comment-form input:focus{outline:2px solid rgba(53,93,146,.22);outline-offset:1px;border-color:#8eaad0}
.img-comment-identity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}
.img-comment-identity-toggle{justify-self:start;border:0;background:transparent;color:#355d92;padding:.1rem 0;font-size:.72rem;font-weight:800;cursor:pointer}
.img-comment-submit{justify-self:start;min-height:40px;border:1px solid #355d92;border-radius:999px;background:#355d92;color:#fff;padding:.42rem .82rem;font-size:.78rem;font-weight:900;cursor:pointer}
.img-comment-submit:hover{background:#284b7a}
.img-comment-submit:disabled{opacity:.6;cursor:wait}
.img-comment-status{min-height:1.05rem;margin-top:.28rem;font-size:.74rem;font-weight:800;color:#355d92}
.img-comment-note { margin-top: .05rem; font-size: .68rem; color: #6a7890; }

@media (max-width:720px){
  .img-comments-box.is-sheet{max-height:84vh;max-height:84dvh;padding:.58rem .68rem max(.8rem,env(safe-area-inset-bottom))}
  .img-comment-form textarea,.img-comment-form input{font-size:16px}
  .img-comment-identity{grid-template-columns:1fr}
  .img-comment-submit{min-height:44px}
  .img-sheet-close{width:44px;height:44px;min-width:44px;min-height:44px}
  .img-comment-preview-cta{min-height:32px}
}


.top-images-strip { margin: .9rem 0 .75rem; }
.top-images-strip h3 { margin: 0 0 .45rem; font-size: .9rem; color: #415772; }
.top-images-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .45rem; }
.top-images-grid article { background: #fff; border: 1px solid #d8e2f1; border-radius: 10px; overflow: hidden; }
.top-images-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.top-images-grid div { font-size: .73rem; color: #41546e; padding: .25rem .4rem; }

.reaction-bar { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 .45rem; }
.reaction-pill {
  border: 1px solid #d2dbeb;
  background: #fff;
  color: #34445b;
  border-radius: 999px;
  padding: .22rem .52rem;
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
}
.reaction-pill b { font-weight: 600; color: #4e5d74; }
.reaction-pill.active { border-color: #9fb8ef; background: #eef4ff; }


.story-divider { height: 1px; background: linear-gradient(90deg, transparent, #ccd7e8, transparent); margin: 1.2rem 0 1rem; }
.comments-area { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.comments-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; font-size: 1.08rem; margin: 0 0 .8rem; }
.comments-title-count { color: var(--muted); font-size: .78rem; font-weight: 700; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.comment { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .75rem; }
.comment-list .children {
  list-style: none;
  display: grid;
  gap: .65rem;
  margin: .7rem 0 0;
  padding-left: .8rem;
  border-left: 2px solid #e4eaf3;
}
.comment .avatar { border-radius: 50%; border: 1px solid #d9e2f1; }
.comment-meta { color: var(--muted); font-size: .85rem; margin-bottom: .4rem; }
.comment-metadata a { color: #5b6a83; font-size: .8rem; }
.comment-photo-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
  min-height: 48px;
  margin: .15rem 0 .65rem;
  padding: .48rem .58rem;
  color: #263d5c;
  background: #f6f9fe;
  border: 1px solid #d8e3f2;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.comment-photo-context.has-thumbnail { grid-template-columns: 56px minmax(0, 1fr); }
.comment-photo-context:hover { color: #173f75; background: #f0f6ff; border-color: #b8cce7; }
.comment-photo-context:focus-visible { outline: 3px solid rgba(47,111,255,.28); outline-offset: 2px; border-color: #7da5e4; }
.comment-photo-context__thumbnail {
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid #d4deed;
  border-radius: 8px;
  background: #fff;
}
.comment-photo-context__image { width: 100%; height: 100%; object-fit: cover; }
.comment-photo-context__copy { display: grid; min-width: 0; line-height: 1.25; }
.comment-photo-context__eyebrow { color: #5c6e87; font-size: .66rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.comment-photo-context__label { margin-top: .08rem; color: #203653; font-size: .84rem; overflow-wrap: anywhere; }
.comment-photo-context__action { margin-top: .15rem; color: #355d92; font-size: .7rem; font-weight: 800; }
.comment-author,
.comment-content,
.latest-comment-card { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.comment-content p { margin: .35rem 0; }
.comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin-top: .42rem;
}
.comment-reply-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid #d3dceb;
  border-radius: 999px;
  padding: .16rem .56rem;
  font-size: .75rem;
  font-weight: 800;
  color: #334861;
}
.comment-love-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .28rem;
  min-height: 32px;
  margin: 0;
  border: 1px solid #d3dceb;
  border-radius: 999px;
  background: #fff;
  color: #355d92;
  padding: .16rem .56rem;
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.comment-love-btn .comment-love-icon {
  display: inline-flex;
  align-items: center;
  color: #2f6fff;
  font-size: 1.08em;
  line-height: 1;
}
.comment-love-btn .comment-love-count {
  min-width: 1.08rem;
  padding: 0 .17rem;
  border-radius: 999px;
  background: rgba(36,50,71,.08);
  color: #355d92;
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.08rem;
  text-align: center;
}
.comment-love-btn .comment-love-count[hidden] { display: none; }
.comment-love-btn[aria-pressed="true"],
.comment-love-btn.is-loved {
  border-color: #9cbcf0;
  background: #edf4ff;
  color: #174fba;
}
.comment-love-btn[aria-pressed="true"] .comment-love-count,
.comment-love-btn.is-loved .comment-love-count {
  background: rgba(47,111,255,.12);
  color: #174fba;
}
.comment-love-btn[aria-pressed="true"] .comment-love-icon,
.comment-love-btn.is-loved .comment-love-icon { color: #174fba; }
.comment-love-btn.is-loading,
.comment-love-btn:disabled { opacity: .62; cursor: wait; }
.comment-love-btn:focus-visible,
.comment-reply-link:focus-visible,
.img-sheet-close:focus-visible,
.img-comment-preview-cta:focus-visible {
  outline: 3px solid rgba(47,111,255,.28);
  outline-offset: 2px;
}

/* Latest Comments keeps the post context separate from the compact actions. */
.latest-comment-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem .75rem;
}
.latest-comment-source {
  min-width: 0;
  color: #2f4e76;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.latest-comment-source:hover { color: #1f5bd6; text-decoration: underline; text-underline-offset: 2px; }
.latest-comment-actions { flex: 0 0 auto; margin-top: 0; }
.latest-comment-reply { font-size: .75rem; text-decoration: none; }

/* Trusted location and local-source references attached by SAU editors. */
.comment-reference-links {
  display: grid;
  gap: .32rem;
  min-width: 0;
  margin: .45rem 0 .18rem;
}
.comment-reference-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .2rem .65rem;
  min-width: 0;
  min-height: 38px;
  max-width: 100%;
  box-sizing: border-box;
  padding: .34rem .58rem;
  border: 1px solid #cbdcf4;
  border-radius: 10px;
  background: #f3f8ff;
  color: #244d84;
  font-size: .76rem;
  line-height: 1.35;
  font-weight: 800;
  text-decoration: none;
}
.comment-reference-link--source { background: #f7faff; }
.comment-reference-main {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.comment-reference-action {
  flex: 0 0 auto;
  margin-left: auto;
  color: #245fae;
  font-size: .72rem;
  font-weight: 900;
  white-space: nowrap;
}
.comment-reference-link:hover {
  border-color: #9ebbe3;
  background: #eaf3ff;
  color: #173f75;
}
.comment-reference-link:focus-visible {
  outline: 3px solid rgba(47,111,255,.3);
  outline-offset: 2px;
  border-color: #77a4e5;
}
.img-comment-preview-item .comment-reference-links,
.img-comment-item .comment-reference-links { margin-block: .38rem .08rem; }
.img-comment-preview-item .comment-reference-link,
.img-comment-item .comment-reference-link { font-size: .75rem; }
.latest-comment-card .comment-reference-links { margin-bottom: .55rem; }

/* Compact comment Like controls inside per-photo previews and the mobile sheet. */
.img-comment-preview-actions,
.img-comment-item__actions,
.img-comment-love-action,
.img-comment-preview-item .comment-actions,
.img-comment-item .comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  margin-top: .32rem;
}
.img-comment-preview-item .img-comment-preview-actions,
.img-comment-item .img-comment-item__actions {
  padding-top: .3rem;
  border-top: 1px solid rgba(207,220,238,.72);
}
.comment-love-btn--compact,
.img-comment-preview-item .comment-love-btn,
.img-comment-item .comment-love-btn,
.img-comment-preview-actions .comment-love-btn,
.img-comment-item__actions .comment-love-btn,
.img-comment-love-action .comment-love-btn {
  min-height: 32px;
  padding: .12rem .48rem;
  font-size: .75rem;
}
.img-comments-box.is-sheet .comment-love-btn,
.img-comments-box.is-sheet .comment-reply-link { min-height: 40px; }

@media (hover:hover) {
  .comment-love-btn:hover,
  .comment-reply-link:hover { border-color: #b9c8dd; background: #f5f8fc; }
  .comment-love-btn[aria-pressed="true"]:hover,
  .comment-love-btn.is-loved:hover { border-color: #78a5eb; background: #e4efff; }
}

@media (pointer:coarse) {
  .comment-love-btn,
  .comment-reply-link { min-height: 40px; padding-inline: .65rem; }
  .comment-reference-link { min-height: 44px; padding-block: .42rem; }
}

@media (max-width:720px) {
  .comment-reference-link {
    min-height: 44px;
    padding: .42rem .55rem;
    font-size: .84rem;
  }
  .comment-reference-action { font-size: .76rem; }
}

@media (max-width:520px) {
  .img-comments-box.is-sheet {
    border-radius: 14px 14px 0 0;
    padding-inline: .58rem;
    scroll-padding-top: 3.25rem;
  }
  .img-comments-box.is-sheet .img-sheet-header { margin-bottom: .3rem; }
  .img-comments-summary { margin: .35rem 0 .22rem; }
  .img-comments-list { gap: .35rem; margin-bottom: .28rem; }
  .img-comment-item,
  .img-comment-preview-item {
    padding: .42rem .48rem;
    font-size: .9rem;
    line-height: 1.48;
  }
  .img-comment-form { gap: .28rem; }
  .img-comment-form textarea,
  .img-comment-form input { padding: .46rem .56rem; }
  .img-comment-form textarea { min-height: 56px; }
  .img-comment-identity { gap: .28rem; }
  .img-comment-submit { min-height: 44px; padding: .38rem .75rem; }
  .img-comment-status { min-height: .9rem; margin-top: .18rem; }
  .img-comment-note { margin-top: 0; line-height: 1.3; }
  .comment { padding: .65rem; }
  .comment-list .children { margin-top: .55rem; padding-left: .42rem; }
  .latest-comment-footer { align-items: flex-start; flex-direction: column; }
  .latest-comment-actions { width: 100%; }
  .latest-comment-actions .comment-love-btn,
  .latest-comment-actions .comment-reply-link { min-height: 40px; }
  .img-comments-box.is-sheet .comment-love-btn,
  .img-comments-box.is-sheet .comment-reply-link { min-height: 40px; }
}
.comment-notes { color: #5d6b84; font-size: .82rem; }
.comment-form input, .comment-form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #ccd7e8;
  color: var(--text);
  border-radius: 10px;
  padding: .55rem .65rem;
}
.comment-form-media { margin-top: .45rem; }
.comment-media {
  display: inline-flex;
  flex-direction: column;
  gap: .35rem;
  border: 1px solid #d7e1f0;
  border-radius: 10px;
  background: #f9fbff;
  padding: .35rem;
  margin-top: .5rem;
  max-width: 320px;
}
.comment-media img { width: 100%; border-radius: 8px; }
.comment-media--video span {
  font-size: .75rem;
  font-weight: 700;
  color: #2b3f5b;
}
.comment-media--link {
  display: inline-flex;
  font-size: .78rem;
  color: #29496e;
  padding: .3rem .45rem;
}
.comment-form .submit {
  border: 1px solid #ccd7e8;
  background: #fff;
  color: #243247;
  border-radius: 999px;
  padding: .45rem .8rem;
  cursor: pointer;
}

@media (max-width:420px) {
  .comment-photo-context.has-thumbnail { grid-template-columns: 48px minmax(0, 1fr); }
  .comment-photo-context__thumbnail { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion:reduce) {
  .comment-photo-context,
  .comment-love-btn { transition: none; }
  .img-comments-box.is-sheet { scroll-behavior: auto; }
}

/* wpDiscuz 7 light-touch polish (keep native layout) */
#wpdcom {
  margin-top: .5rem;
  --wpd-primary-color: #2f6fff;
}
#wpdcom .wpd-comment-author,
#wpdcom .wpd-comment-text,
#wpdcom .wpd-thread-info {
  color: #243247;
}
#wpdcom .wpd-comment-date,
#wpdcom .wpd-comment-footer,
#wpdcom .wpd-vote,
#wpdcom .wpd-sbs-title {
  color: #5b6678;
}
#wpdcom textarea,
#wpdcom input[type="text"],
#wpdcom input[type="email"] {
  border-color: #ccd7e8;
}

.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding: 1rem 0 2rem; font-size: .9rem; }
.footer-main { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; align-items: baseline; }
.footer-copy { font-weight: 600; letter-spacing: .02em; }
.footer-links { display: flex; gap: .8rem; flex-wrap: wrap; padding-top: .45rem; color: #4e5d74; font-size: .82rem; }
.footer-links a { color: #4e5d74; }
.footer-links a:hover { color: #1f64ff; text-decoration: underline; }

.pagination { display: flex; justify-content: space-between; margin: 1rem 0 2rem; color: var(--muted); }
.feed-header { margin: .6rem 0 .8rem; }
.wall-talk-auth,
.wall-talk-cta { margin: .35rem 0 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .75rem; }
.wall-talk-auth .login-username,
.wall-talk-auth .login-password,
.wall-talk-auth .login-remember { margin: .32rem 0; }
.wall-talk-auth input[type="text"],
.wall-talk-auth input[type="password"] {
  width: 100%; border: 1px solid #c8d3e7; border-radius: 9px; padding: .4rem .56rem; font-size: .9rem;
}
.wall-talk-auth .button { border: 1px solid #ccd7e8; border-radius: 999px; background: #fff; color: #243247; padding: .28rem .62rem; font-size: .84rem; }
.wall-talk-auth-compact { padding: .42rem .55rem; margin-bottom: .45rem; }
.wall-talk-auth-compact h3 { margin: 0 0 .2rem; font-size: .88rem; }
.wall-talk-auth-compact label { font-size: .78rem; }
.wall-talk-auth-compact .wall-auth-links { margin: .25rem 0 0; font-size: .74rem; }
.wall-topic-form { display: grid; gap: .55rem; }
.wall-topic-form input,
.wall-topic-form textarea {
  width: 100%;
  border: 1px solid #c8d3e7;
  border-radius: 10px;
  padding: .55rem .65rem;
  font: inherit;
  background: #fff;
}
.wall-topic-form label { font-size: .86rem; color: #31445f; display: grid; gap: .3rem; }
.wall-topic-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.wall-topic-card .card-media img { aspect-ratio: auto; max-height: 420px; object-fit: contain; background: #eef2f7; }
.wall-topic-card h2 { display: none; }
.wall-topic-single .wall-talk-replies { margin-top: 1.2rem; }
.wall-related-links { margin: .9rem 0 .3rem; background:#fff; border:1px solid var(--line); border-radius:12px; padding:.7rem .8rem; }
.wall-related-links h3 { margin:.35rem 0 .3rem; font-size:.86rem; color:#304760; }
.wall-related-links ul { margin:.2rem 0 .45rem 1rem; }
.wall-related-links li { margin:.15rem 0; font-size:.82rem; }
.wall-related-links a {
  color: #1f4d8b;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}
.wall-related-links a::after {
  content: ' ↗';
  font-size: .75em;
}

.uto-toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  background: rgba(18,23,34,.92);
  color: #fff;
  padding: .46rem .62rem;
  border-radius: 8px;
  font-size: .78rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all .18s ease;
  z-index: 120;
}
.uto-toast.show { opacity: 1; transform: translateY(0); }

/* Browser-local photo favorites */
.index-favorites-btn[hidden] { display: none !important; }
.index-favorites-btn { border-style: solid; color: #9f303d; }
.img-favorite-status {
  width: 100%;
  margin-top: -.08rem;
  color: #455a76;
  font-size: .74rem;
  font-weight: 750;
}
.img-favorite-status[hidden] { display: none; }
.img-favorite-status a { color: #275b9c; text-decoration: underline; text-underline-offset: 2px; }

.favorites-page { padding-top: 1.15rem; padding-bottom: 2.5rem; }
.favorites-page__header h1 { margin: 0 0 .25rem; font-size: clamp(1.75rem, 6vw, 2.25rem); line-height: 1.1; }
.favorites-page__intro { margin: .35rem 0 .18rem; color: #334861; }
.favorites-page__community-note { margin: 0; color: #66758b; font-size: .84rem; }
.favorites-page__loading { margin: 1.25rem 0; color: #5b6678; }
.favorites-page__unavailable,
.favorites-empty {
  margin: 1.2rem 0;
  padding: 1rem;
  border: 1px solid #d8e2f1;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.favorites-page__unavailable h2,
.favorites-empty h2 { margin: 0 0 .25rem; font-size: 1.1rem; }
.favorites-page__unavailable p,
.favorites-empty p { margin: .2rem 0 .7rem; color: #5b6678; }
.favorites-page__explore,
.favorites-action,
.favorite-card__open,
.favorite-card__remove,
.favorites-status__undo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #c7d4e8;
  border-radius: 999px;
  background: #fff;
  color: #29496e;
  padding: .42rem .72rem;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
}
.favorites-page__explore,
.favorite-card__open { background: #2f6fff; border-color: #2f6fff; color: #fff; }
.favorites-action--primary { background: #2f6fff; border-color: #2f6fff; color: #fff; }
.favorites-action:hover,
.favorite-card__remove:hover,
.favorites-status__undo:hover { background: #f1f5fb; }
.favorites-page__explore:hover,
.favorite-card__open:hover,
.favorites-action--primary:hover { background: #2459d7; color: #fff; }
.favorites-action:focus-visible,
.favorite-card a:focus-visible,
.favorite-card button:focus-visible,
.favorites-status__undo:focus-visible {
  outline: 3px solid rgba(47,111,255,.28);
  outline-offset: 2px;
}
.favorites-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 1rem 0 .7rem;
  padding: .6rem .7rem;
  border: 1px solid #dbe4f1;
  border-radius: 12px;
  background: #fff;
}
.favorites-toolbar[hidden] { display: none; }
.favorites-toolbar__count { margin: 0; color: #3e526e; font-size: .82rem; font-weight: 800; }
.favorites-toolbar__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.favorites-action--danger,
.favorite-card__remove { color: #91313a; }
.favorites-status {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: .6rem 0;
  padding: .5rem .65rem;
  border: 1px solid #ead996;
  border-radius: 10px;
  background: #fff8df;
}
.favorites-status[hidden] { display: none; }
.favorites-status__message { flex: 1; margin: 0; color: #5f5123; font-size: .8rem; font-weight: 750; }
.favorites-share-panel {
  margin: .65rem 0 .85rem;
  padding: .8rem;
  border: 1px solid #cddbf0;
  border-radius: 12px;
  background: #f8fbff;
}
.favorites-share-panel[hidden],
.favorites-share-panel__actions[hidden],
.favorites-share-panel__url-wrap[hidden] { display: none; }
.favorites-share-panel[aria-busy="true"] { opacity: .72; }
.favorites-share-panel[aria-busy="true"] button { cursor: wait; }
.favorites-share-panel__title { margin: 0 0 .2rem; font-size: 1rem; line-height: 1.25; }
.favorites-share-panel__message { margin: .2rem 0 0; color: #455a76; font-size: .8rem; line-height: 1.45; }
.favorites-share-panel__actions {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: .65rem;
}
.favorites-share-panel__actions .favorites-action { width: 100%; min-height: 44px; }
.favorites-share-panel__url-wrap { margin-top: .65rem; }
.favorites-share-panel__url-wrap label {
  display: block;
  margin-bottom: .25rem;
  color: #455a76;
  font-size: .75rem;
  font-weight: 800;
}
.favorites-share-panel__url {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b8c9e0;
  border-radius: 9px;
  background: #fff;
  color: #263b58;
  padding: .55rem .65rem;
  font: inherit;
  font-size: .78rem;
}
.favorites-share-panel__title:focus-visible,
.favorites-share-panel__url:focus-visible {
  outline: 3px solid rgba(47,111,255,.28);
  outline-offset: 2px;
}
.favorites-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.favorite-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8e2f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(28,48,78,.05);
}
.favorite-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f7;
}
.favorite-card__image { width: 100%; height: 100%; object-fit: contain; }
.favorite-card__placeholder { color: #7a8799; font-size: .76rem; }
.favorite-card__body { padding: .58rem; }
.favorite-card__title { margin: 0; font-size: .9rem; line-height: 1.3; overflow-wrap: anywhere; }
.favorite-card__title a:hover { color: #1f5bd6; text-decoration: underline; text-underline-offset: 2px; }
.favorite-card__source { margin: .25rem 0 0; color: #6a7890; font-size: .7rem; line-height: 1.35; }
.favorite-card__actions { display: flex; gap: .38rem; margin-top: .55rem; }
.favorite-card__open,
.favorite-card__remove { flex: 1 1 0; min-width: 0; }
.favorites-show-more { display: flex; justify-content: center; margin: 1rem 0; }
.favorites-show-more[hidden] { display: none; }
.favorites-action--show-more { min-width: min(100%, 220px); }
.favorites-page__storage-note { margin: 1rem 0 0; color: #6b7890; font-size: .74rem; text-align: center; }

@media (max-width: 560px) {
  .favorites-toolbar { align-items: flex-start; flex-direction: column; }
  .favorites-toolbar__actions { width: 100%; justify-content: flex-start; }
  .favorites-toolbar__actions .favorites-action { width: 100%; min-height: 44px; }
  .favorites-grid { grid-template-columns: minmax(0, 1fr); }
  .favorite-card__media { aspect-ratio: 16 / 11; }
}

@media (min-width: 561px) {
  .favorites-share-panel__actions { flex-direction: row; }
  .favorites-share-panel__actions .favorites-action { width: auto; min-width: 132px; }
}

@media (max-width: 410px) {
  .favorites-link-label { display: none; }
}

/* Anonymous, read-only shared favorites */
.shared-favorites-page { padding-top: 1.15rem; padding-bottom: 2.8rem; }
.shared-favorites-page__header { margin-bottom: 1rem; }
.shared-favorites-page__eyebrow {
  margin: 0 0 .25rem;
  color: #9f303d;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.shared-favorites-page__header h1,
.shared-favorites-state h1 {
  margin: 0 0 .35rem;
  font-size: clamp(1.72rem, 7vw, 2.3rem);
  line-height: 1.08;
}
.shared-favorites-page__intro { margin: 0; color: #334861; font-size: 1rem; }
.shared-favorites-page__privacy-note {
  margin: .38rem 0 0;
  color: #66758b;
  font-size: .84rem;
  line-height: 1.45;
}
.shared-favorites-page__notice {
  margin: .8rem 0;
  padding: .68rem .75rem;
  border: 1px solid #ead996;
  border-radius: 10px;
  background: #fff8df;
  color: #5f5123;
  font-size: .8rem;
  font-weight: 750;
}
.shared-favorites-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .85rem;
}
.shared-favorite-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8e2f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(28,48,78,.05);
}
.shared-favorite-card[hidden] { display: none; }
.shared-favorite-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #eef2f7;
}
.shared-favorite-card__image { width: 100%; height: 100%; object-fit: contain; }
.shared-favorite-card__placeholder { color: #6d7b90; font-size: .8rem; }
.shared-favorite-card__body { padding: .68rem; }
.shared-favorite-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.shared-favorite-card__title a:hover {
  color: #1f5bd6;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.shared-favorite-card__source {
  margin: .25rem 0 0;
  color: #69778d;
  font-size: .76rem;
  line-height: 1.4;
}
.shared-favorite-card__open,
.shared-favorites-show-more__button,
.shared-favorites-cta__primary,
.shared-favorites-cta__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #c7d4e8;
  border-radius: 999px;
  padding: .48rem .85rem;
  font: inherit;
  font-size: .82rem;
  font-weight: 850;
  text-align: center;
  cursor: pointer;
}
.shared-favorite-card__open {
  width: 100%;
  margin-top: .62rem;
  border-color: #2f6fff;
  background: #2f6fff;
  color: #fff;
}
.shared-favorite-card__open:hover,
.shared-favorites-cta__primary:hover { background: #2459d7; color: #fff; }
.shared-favorites-show-more {
  display: flex;
  justify-content: center;
  margin: 1rem 0 0;
}
.shared-favorites-show-more[hidden] { display: none; }
.shared-favorites-show-more__button {
  width: 100%;
  max-width: 260px;
  background: #fff;
  color: #29496e;
}
.shared-favorites-show-more__button:hover,
.shared-favorites-cta__secondary:hover { background: #f1f5fb; }
.shared-favorites-cta,
.shared-favorites-state {
  margin: 1.35rem 0 0;
  padding: 1rem;
  border: 1px solid #d8e2f1;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.shared-favorites-cta h2 { margin: 0 0 .25rem; font-size: 1.16rem; }
.shared-favorites-cta p,
.shared-favorites-state > p { margin: .25rem auto .85rem; max-width: 560px; color: #5b6678; }
.shared-favorites-cta__actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.shared-favorites-cta__primary { border-color: #2f6fff; background: #2f6fff; color: #fff; }
.shared-favorites-cta__secondary { background: #fff; color: #29496e; }
.shared-favorite-card a:focus-visible,
.shared-favorites-show-more__button:focus-visible,
.shared-favorites-cta a:focus-visible,
.shared-favorites-state a:focus-visible {
  outline: 3px solid rgba(47,111,255,.28);
  outline-offset: 2px;
}

@media (min-width: 560px) {
  .shared-favorites-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shared-favorite-card__media { aspect-ratio: 4 / 3; }
  .shared-favorites-cta__actions { flex-direction: row; justify-content: center; }
  .shared-favorites-cta__primary,
  .shared-favorites-cta__secondary { min-width: 170px; }
}
