/* The guides for parents (/ghiduri and /ghiduri/<slug>, components/ghid.html). Loaded only by those pages, after
   site.css, so it uses its tokens (--navy, --mist, --yellow, --pink, --stack) and shared blocks (tag, panel, faq, cta,
   story cards). The structure follows elasticfunnels.io's blog: a reading column, a short answer, a contents list beside
   it on a wide screen, boxes for tips, the author, then other guides and the FAQ. */

/* the head: category, title, lead, byline */
.gd__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 860px; padding-top: clamp(14px, 3vw, 40px); }
.gd__title { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.08; }
.gd__lead { margin: 0; max-width: 40em; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.gd__by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 4px 0 0; font-size: 14px; color: var(--text-3); }
.gd__by a { color: var(--navy); font-weight: 700; text-decoration: none; }
.gd__by a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gd__by-img { width: 28px; height: 28px; border-radius: 50%; background: var(--mist); }
.gd__dot { opacity: 0.6; }

/* the picture: the storybook painting on a soft panel, never cropped */
.gd__cover { margin: clamp(22px, 3vw, 36px) 0 0; padding: clamp(14px, 3vw, 36px); border-radius: 28px; background: var(--mist); }
.gd__cover img { width: 100%; max-width: 760px; max-height: 520px; object-fit: contain; margin: 0 auto; }

/* the column and the contents list beside it */
.gd__grid { display: grid; grid-template-columns: minmax(0, 720px) 260px; justify-content: space-between; gap: 64px; margin-top: clamp(28px, 4vw, 48px); }
.gd__aside { order: 2; }
.gd__toc { position: sticky; top: 100px; padding: 20px 22px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.gd__toc-title { margin: 0 0 10px; font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--navy); }
.gd__toc ol { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.4; color: var(--text-2); }
.gd__toc a { color: inherit; text-decoration: none; }
.gd__toc a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* the words */
.gd__body { min-width: 0; font-size: 18px; line-height: 1.7; color: var(--text-2); }
.gd__body p, .gd__body ul, .gd__body ol { margin: 0 0 18px; }
.gd__body ul, .gd__body ol { padding-left: 24px; }
.gd__body li { margin-bottom: 8px; }
.gd__body li::marker { color: var(--navy); }
.gd__body a { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.gd__body strong { color: var(--navy); }
.gd__body h2 { margin: 0 0 14px; font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1.18; color: var(--text); text-wrap: balance; }
.gd__body h3 { margin: 26px 0 8px; font-family: var(--display); font-size: 21px; font-weight: 500; line-height: 1.3; color: var(--text); }
.gd__sec { padding-top: 22px; margin-top: 26px; scroll-margin-top: 90px; }
.gd__eyebrow { margin: 0 0 8px !important; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }

/* „Pe scurt”: the short answer, first thing under the picture */
.gd__short { padding: clamp(22px, 3vw, 30px); border-radius: 22px; background: var(--yellow); color: var(--navy); }
.gd__short p { font-size: 18px; }
.gd__short p:last-child { margin-bottom: 0; }
.gd__short a, .gd__short strong { color: var(--navy); }

/* gift ideas: a list of small cards, ours marked by colour only */
.gd-gifts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 !important; list-style: none; }
.gd-gift { display: flex; flex-direction: column; gap: 4px; margin: 0 !important; padding: 16px 18px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.gd-gift p { margin: 0 !important; font-size: 16px; line-height: 1.55; }
.gd-body .gd-gift__title, .gd__body .gd-gift__title { margin: 0; font-family: var(--sans); font-size: 17px; font-weight: 800; line-height: 1.35; color: var(--navy); }
.gd-gift--ours { background: var(--pink); box-shadow: none; }

/* a tip, the box at the end, a picture inside the words */
.gd-tip { margin: 0 0 18px; padding: 18px 22px; border-left: 4px solid var(--yellow); border-radius: 0 16px 16px 0; background: var(--mist); }
.gd-tip p { margin: 0 !important; font-size: 17px; }
.gd-tip__title { margin-bottom: 4px !important; font-weight: 800; color: var(--navy); }
.gd-poem { margin: 0 0 18px; padding: 20px 24px; border-radius: 18px; background: var(--mist); }
.gd-poem__title { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--navy); }
.gd-poem__lines { margin: 0 !important; font-size: 18px; line-height: 1.6; }
.gd-poem__lines span { display: block; }
.gd-take { margin: 36px 0 24px; padding: clamp(22px, 3vw, 30px); border-radius: 22px; background: var(--mist); }
.gd-take ul { margin: 0 !important; }
.gd-take li:last-child { margin-bottom: 0; }
.gd__close { font-size: 19px; color: var(--navy); }
.gd-fig { margin: 8px 0 26px; }
.gd-fig img { width: 100%; max-height: 460px; object-fit: contain; border-radius: 18px; background: var(--mist); padding: 14px; }
.gd-fig figcaption { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--text-3); }

/* who writes */
.gd-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding: 22px 24px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.gd-author img { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--mist); }
.gd-author p { margin: 0 0 8px !important; font-size: 16px; line-height: 1.55; }
.gd-author__name { font-family: var(--display); font-size: 18px !important; font-weight: 600; color: var(--navy); }
.gd-author .more { font-size: 16px; text-decoration: none; }

/* the hub: the newest guide wide, the rest as cards */
.gd-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(14px, 2vw, 22px); border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--navy); text-decoration: none; transition: box-shadow 200ms ease, transform 200ms ease; }
.gd-feature:hover { box-shadow: 0 18px 40px rgba(20, 30, 60, 0.12), inset 0 0 0 1px var(--border); transform: translateY(-2px); }
.gd-feature__img { display: block; padding: clamp(12px, 2vw, 24px); border-radius: 20px; background: var(--mist); }
.gd-feature__img img { width: 100%; }
.gd-feature__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px clamp(4px, 2vw, 24px) 8px 0; }
.gd-feature__title { font-family: var(--display); font-size: clamp(26px, 2.8vw, 38px); font-weight: 600; line-height: 1.15; text-wrap: balance; }
.gd-feature__text { font-size: 17px; line-height: 1.55; color: var(--text-2); }
.gd-feature__meta { font-size: 14px; font-weight: 700; color: var(--text-3); }
.gd-card__img { object-fit: contain !important; background: var(--mist); padding: 8px; }

@media (max-width: 1099px) {
  .gd__grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; gap: 28px; }
  .gd__aside { order: 0; }
  .gd__toc { position: static; }
}
@media (max-width: 800px) {
  .gd-feature { grid-template-columns: 1fr; }
  .gd-feature__body { padding: 4px 6px 10px; }
}
@media (max-width: 620px) {
  .gd__body { font-size: 17px; }
  .gd-gifts { grid-template-columns: 1fr; }
  .gd-author { flex-direction: column; gap: 12px; }
}
