/* Upgrade 3: the morning summary (#morning) and its market banner. Prefix: .mn-
   A warm sunrise-gold variant of the app's glass card: gold top edge, a rising sun and slow rays. */
.mn-head { text-align: center; margin: 8px auto 18px; max-width: 640px; }
.mn-title { font-size: clamp(32px, 5.2vw, 52px); margin: 12px 0 6px; }
.mn-sub { color: var(--ink-2); margin: 0 auto; max-width: 520px; font-size: 14.5px; }

/* day picker (last 30 days) */
.mn-days { max-width: 880px; margin: 0 auto 16px; display: flex; align-items: center; gap: 12px; }
.mn-days-l { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
/* the scroller clips at its padding box: 16 px of room on every side for the selected day's glow
   (0 0 22px -6px reaches ~16 px out), given back with negative margins so the layout is unchanged */
.mn-days-row { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 16px 14px; margin: -10px -12px;
  scroll-snap-type: x proximity; scroll-padding-inline: 14px; }
.mn-days-row::-webkit-scrollbar { display: none; }
.mn-day { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; min-width: 60px; padding: 6px 8px 7px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); font-size: 11px; color: var(--ink-3); line-height: 1.35; transition: border-color .2s, background .2s; }
.mn-day:hover { border-color: rgba(242, 196, 109, .4); }
.mn-day-n { font-size: 17px; color: var(--ink); line-height: 1.25; text-align: center !important; }
.mn-day.on { border-color: rgba(242, 196, 109, .65); background: linear-gradient(rgba(242, 196, 109, .2), rgba(242, 196, 109, .04)); color: #F8DDA4; box-shadow: 0 0 22px -6px rgba(242, 196, 109, .55); }

/* the card */
.mn-card { position: relative; isolation: isolate; max-width: 880px; margin: 0 auto; padding: 26px clamp(16px, 4vw, 32px) 22px; border-radius: 24px;
  background: rgba(10, 10, 13, .86); background-image: linear-gradient(rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
  border: 1px solid rgba(255, 236, 200, .12); box-shadow: var(--shadow-in), 0 40px 120px -40px rgba(0, 0, 0, .9), 0 -20px 80px -50px rgba(246, 179, 90, .55); }
.mn-card.glow-top > .gt-line { background: radial-gradient(50% 100% at 50% 50%, #F6C46A, rgba(246, 196, 106, 0)); }
.mn-card.glow-top > .gt-glow { box-shadow: inset 0 2px 20px 0 #F2B65A, 0 -10px 50px 1px #F2B65A; opacity: .75; }
.mn-sun { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: -1; pointer-events: none; }
.mn-sun::before { content: ""; position: absolute; left: -10%; right: -10%; top: 0; height: 75%;
  background: radial-gradient(55% 60% at 50% 0%, rgba(255, 186, 96, .30), rgba(255, 140, 60, .08) 50%, transparent 75%); }
.mn-sun-disc { position: absolute; top: -118px; left: 50%; width: 236px; height: 236px; margin-left: -118px; border-radius: 50%;
  background: radial-gradient(circle at 50% 62%, #FFF0CC 0%, #F8C574 30%, rgba(246, 150, 70, .22) 52%, rgba(246, 140, 60, .06) 62%, rgba(246, 140, 60, 0) 70%); opacity: .6; animation: mnRise 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.mn-sun-rays { position: absolute; top: -300px; left: 50%; width: 600px; height: 600px; margin-left: -300px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 140, .09) 0deg 4deg, transparent 4deg 13deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 78%); mask-image: radial-gradient(closest-side, #000 25%, transparent 78%); animation: mnSpin 120s linear infinite; }
@keyframes mnRise { from { transform: translateY(46px); opacity: 0; } to { transform: none; } }
@keyframes mnSpin { to { rotate: 360deg; } }

.mn-older { max-width: 880px; margin: 0 auto 12px; padding: 9px 14px; border-radius: 12px; font-size: 13px; color: var(--ink-2); border: 1px dashed rgba(242, 196, 109, .35); text-align: center; }
.mn-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.mn-hello { margin: 0; font-size: 14px; color: #F8DDA4; }
.mn-date { margin: 4px 0 0; font-size: clamp(20px, 3vw, 27px); font-weight: 500; color: var(--ink); line-height: 1.3; }
.mn-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mn-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-ctl); font-size: 12px; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--ink-2); background: rgba(255, 255, 255, .03); }
.mn-chip i { width: 7px; height: 7px; border-radius: 50%; background: #8A8A8A; }
.mn-chip.open { color: var(--mint); border-color: rgba(16, 188, 131, .45); background: rgba(16, 188, 131, .07); }
.mn-chip.open i { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.mn-warn { margin: 12px 0 0; font-size: 13px; color: #F6CF8C; }

/* ounce */
.mn-ounce { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px 16px; margin: 22px 0 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mn-lbl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.mn-sym { font-family: "Schibsted Grotesk", system-ui, sans-serif; font-size: 11px; font-weight: 400; color: #F8DDA4; padding: 2px 8px; border-radius: var(--r-ctl);
  background: rgba(60, 40, 8, .55); border: 1px solid rgba(242, 196, 109, .35); }
.mn-big { font-size: clamp(42px, 7vw, 66px); font-weight: 400; line-height: 1.08; margin-top: 8px;
  background: linear-gradient(180deg, #FFF5DE 10%, #F2C46D 62%, #C08A33); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mn-big.mn-na { font-size: 22px; background: none; color: var(--ink-3); }
.mn-u { font-size: 12.5px; color: var(--ink-3); }
.mn-ounce-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: end; }
.mn-ounce-r small { color: var(--ink-3); font-size: 12px; }
.mn-chg { font-size: 14px; white-space: nowrap; }
.mn-chg .num { display: inline; }
.mn-na { color: var(--ink-3); font-size: 13px; }

/* sections */
.mn-sec { margin-top: 22px; }
.mn-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.mn-h small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.mn-more { margin-inline-start: auto; font-size: 12.5px; font-weight: 400; color: var(--mint); }
.mn-fwd { display: inline-block; }
.mn-missing { margin: 0; padding: 14px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 13.5px; }

/* karats: four gold tiles with a 3D lift */
.mn-karats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; perspective: 900px; }
.mn-k { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px; border-radius: 16px; color: var(--ink);
  border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .015)); box-shadow: var(--shadow-in);
  transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s; }
.mn-k:hover, .mn-k:focus-visible { transform: translateY(-4px) rotateX(8deg); border-color: rgba(242, 196, 109, .55); box-shadow: var(--shadow-in), 0 22px 30px -20px rgba(242, 180, 90, .7); }
.mn-k.hl { border-color: rgba(242, 196, 109, .5); background: linear-gradient(160deg, rgba(242, 196, 109, .2), rgba(242, 196, 109, .03)); }
.mn-k-t { font-size: 12.5px; color: #F8DDA4; }
.mn-k-v { font-size: clamp(21px, 2.7vw, 27px); line-height: 1.2; }
.mn-k-u { font-size: 11px; color: var(--ink-3); }
.mn-k .mn-chg { font-size: 12px; margin-top: 6px; }

/* silver + ratio */
.mn-duo { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 10px; margin-top: 22px; }
.mn-tile { padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .025); }
.mn-tile .mn-h { margin-bottom: 10px; }
.mn-ag { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 8px; }
.mn-ag small { display: block; font-size: 11.5px; color: var(--ink-3); }
.mn-ag b { font-weight: 400; font-size: 23px; }
.mn-silver .mn-sym { color: #DDE3EC; background: rgba(200, 210, 225, .08); border-color: rgba(200, 210, 225, .3); }
.mn-ratio-v { font-size: 30px; line-height: 1.15; margin-bottom: 4px; }
.mn-ratio .mn-u { display: block; margin-top: 6px; }

/* 52-week position */
.mn-yr { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.mn-yr + .mn-yr { margin-top: 8px; }
.mn-yr-h { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 14px; font-size: 13px; color: var(--ink-2); }
.mn-yr-h b { font-weight: 500; color: var(--ink); }
.mn-yr-bar { position: relative; height: 8px; border-radius: var(--r-ctl); background: rgba(255, 255, 255, .08); }
.mn-yr-fill { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(242, 196, 109, .2), #F2C46D); }
html[dir="rtl"] .mn-yr-fill { background: linear-gradient(270deg, rgba(242, 196, 109, .2), #F2C46D); }
.mn-yr-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin-inline-start: -8px; translate: 0 -50%; border-radius: 50%;
  background: #FFF3D6; box-shadow: 0 0 0 4px rgba(242, 196, 109, .28), 0 0 16px rgba(242, 196, 109, .85); }
.mn-yr-ends { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: 13px; }
.mn-yr-ends small { color: var(--ink-3); font-size: 11.5px; }
.mn-yr-ends > span:last-child { text-align: end; }

/* movers */
.mn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mn-mv { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--ink); transition: border-color .2s; }
.mn-mv:hover { border-color: var(--line-2); }
.mn-mv-n { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.mn-mv-n b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-mv-n bdi { font-size: 11.5px; color: var(--ink-3); }
.mn-mv-p { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.mn-mv-p small { color: var(--ink-3); }

/* headlines */
.mn-news { list-style: none; margin: 0; padding: 0; }
.mn-news li { display: flex; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.mn-news li:last-child { border-bottom: 0; }
.mn-news-i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; text-align: center !important; color: #F8DDA4; border: 1px solid rgba(242, 196, 109, .4); }
.mn-news-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mn-news-t { font-size: 14.5px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.mn-news-t:hover { color: #F8DDA4; }
.mn-news-m { font-size: 12px; color: var(--ink-3); }
.mn-src { color: var(--mint); white-space: nowrap; }

.mn-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.mn-foot .fine { margin: 0; max-width: 440px; }
.mn-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* empty / loading / errors */
.mn-empty { text-align: center; padding: 120px 20px 40px; }
.mn-skel, .mn-card:not(.glow-top).mn-empty { padding: 40px 20px; text-align: center; }
.mn-empty-h { font-size: clamp(20px, 3vw, 26px); font-weight: 500; margin: 0 0 8px; }
.mn-empty-p { color: var(--ink-2); max-width: 460px; margin: 0 auto 18px; line-height: 1.7; }

/* market banner */
.mn-banner { position: relative; display: flex; align-items: center; width: 100%; max-width: 560px; margin: 0 auto 20px; border-radius: 18px; text-align: start;
  border: 1px solid rgba(242, 196, 109, .45); background: linear-gradient(100deg, rgba(64, 42, 10, .8), rgba(22, 17, 10, .75));
  box-shadow: inset 0 1px 0 rgba(255, 228, 170, .12), 0 18px 40px -18px rgba(242, 180, 90, .55); backdrop-filter: blur(8px); animation: fadeUp .5s ease both; }
.mn-banner-a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 14px; color: var(--ink); border-radius: 18px; }
html[dir="rtl"] .mn-banner-a { padding: 10px 14px 10px 6px; }
.mn-banner-sun { flex: none; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 50% 58%, #FFF3D6, #F6B35A 55%, rgba(246, 140, 60, 0) 72%); box-shadow: 0 0 22px rgba(246, 179, 90, .65); }
.mn-banner-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.mn-banner-t b { font-weight: 500; font-size: 14px; }
.mn-banner-t small { color: var(--ink-3); font-size: 12px; }
.mn-banner-go { flex: none; font-size: 13px; color: #F8DDA4; padding: 5px 12px; border-radius: var(--r-ctl); border: 1px solid rgba(242, 196, 109, .45); white-space: nowrap; }
.mn-banner-x { flex: none; width: 40px; height: 40px; margin-inline-end: 6px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 14px; }
.mn-banner-x:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }

@media (max-width: 640px) {
  .mn-karats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mn-duo { grid-template-columns: minmax(0, 1fr); }
  .mn-days { flex-direction: column; align-items: stretch; gap: 4px; }
  .mn-card { padding-top: 22px; border-radius: 20px; }
  .mn-sun-disc { width: 190px; height: 190px; top: -96px; margin-left: -95px; }
  .mn-sun-rays { width: 460px; height: 460px; top: -230px; margin-left: -230px; }
  .mn-ounce-r { align-items: flex-start; text-align: start; }
  .mn-foot .btn { width: 100%; }
  .mn-banner-t small { display: none; }
  .mn-mv { gap: 10px; padding: 10px 12px; }
  .mn-mv-n { flex-direction: column; align-items: flex-start; gap: 0; }
  .mn-mv-n b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.35; }
}
/* phones and touch screens: small text links get a 40 px tall hit area, and no two hit areas overlap */
@media (max-width: 600px), (pointer: coarse) {
  .mn-more { padding-block: 11px; margin-block: -11px; }
  /* a headline row is one target: the whole row (number, title, publisher line) opens #news, so even a
     one-line title is 70+ px tall. Only the source link sits on top of it, as its own 40 px box. */
  .mn-news li { position: relative; padding-bottom: 14px; }
  .mn-news-t::after { content: ""; position: absolute; inset: 0; }
  /* the source box = the gap under the title (7) + its line (18) + the row's bottom padding and line (14 + 1):
     40 px that never reaches the title's text above or the next row below */
  .mn-news-b { gap: 7px; }
  .mn-news-m { line-height: 18px; }
  .mn-src { position: relative; z-index: 1; display: inline-block; padding: 7px 0 15px; margin: -7px 0 -15px; }
}

/* light theme: a soft morning on paper */
html[data-theme="light"] .mn-card { background: rgba(255, 255, 255, .72); background-image: linear-gradient(rgba(255, 250, 238, .9), rgba(255, 255, 255, .55));
  border-color: rgba(169, 119, 31, .18); box-shadow: var(--shadow-in), 0 40px 100px -40px rgba(120, 80, 20, .35); }
html[data-theme="light"] .mn-sun::before { background: radial-gradient(55% 60% at 50% 0%, rgba(255, 186, 96, .38), rgba(255, 160, 80, .10) 50%, transparent 75%); }
html[data-theme="light"] .mn-sun-rays { background: repeating-conic-gradient(from 0deg, rgba(230, 160, 60, .12) 0deg 4deg, transparent 4deg 13deg); }
html[data-theme="light"] .mn-hello, html[data-theme="light"] .mn-k-t, html[data-theme="light"] .mn-news-i, html[data-theme="light"] .mn-banner-go { color: #8A5A12; }
html[data-theme="light"] .mn-sym { color: #7A5310; background: rgba(240, 190, 100, .16); border-color: rgba(169, 119, 31, .35); }
html[data-theme="light"] .mn-silver .mn-sym { color: #3E4A5C; background: rgba(90, 110, 140, .08); border-color: rgba(90, 110, 140, .3); }
html[data-theme="light"] .mn-big { background: linear-gradient(180deg, #C58A2A, #8E5E14); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .mn-k, html[data-theme="light"] .mn-tile, html[data-theme="light"] .mn-yr, html[data-theme="light"] .mn-mv { background: rgba(255, 255, 255, .7); border-color: rgba(16, 48, 36, .1); }
html[data-theme="light"] .mn-k.hl { background: linear-gradient(160deg, rgba(240, 190, 100, .28), rgba(255, 255, 255, .7)); border-color: rgba(169, 119, 31, .4); }
html[data-theme="light"] .mn-k:hover, html[data-theme="light"] .mn-k:focus-visible { border-color: rgba(169, 119, 31, .5); box-shadow: var(--shadow-in), 0 20px 28px -20px rgba(169, 119, 31, .6); }
html[data-theme="light"] .mn-yr-bar { background: rgba(16, 48, 36, .1); }
html[data-theme="light"] .mn-yr-fill { background: linear-gradient(90deg, rgba(214, 150, 50, .25), #D69632); }
html[data-theme="light"] .mn-yr-dot { background: #fff; box-shadow: 0 0 0 4px rgba(214, 150, 50, .3), 0 2px 8px rgba(120, 80, 20, .4); }
html[dir="rtl"][data-theme="light"] .mn-yr-fill { background: linear-gradient(270deg, rgba(214, 150, 50, .25), #D69632); }
html[data-theme="light"] .mn-news-t:hover { color: #8A5A12; }
html[data-theme="light"] .mn-day { background: rgba(255, 255, 255, .6); }
html[data-theme="light"] .mn-day.on { color: #7A5310; background: linear-gradient(rgba(240, 190, 100, .3), rgba(255, 255, 255, .6)); border-color: rgba(169, 119, 31, .5); }
html[data-theme="light"] .mn-chip { background: rgba(255, 255, 255, .6); }
html[data-theme="light"] .mn-chip.open { color: #0B7552; }
html[data-theme="light"] .mn-warn { color: #8A5A12; }
html[data-theme="light"] .mn-older { border-color: rgba(169, 119, 31, .4); background: rgba(255, 250, 238, .7); }
html[data-theme="light"] .mn-banner { background: linear-gradient(100deg, rgba(255, 240, 210, .95), rgba(255, 250, 240, .9)); border-color: rgba(169, 119, 31, .4); box-shadow: 0 16px 36px -18px rgba(169, 119, 31, .5); }
html[data-theme="light"] .mn-banner-x:hover { background: rgba(16, 48, 36, .06); }

@media (prefers-reduced-motion: reduce) {
  .mn-sun-disc, .mn-sun-rays, .mn-banner { animation: none; }
  .mn-k, .mn-day { transition: none; }
  .mn-k:hover, .mn-k:focus-visible { transform: none; }
}
