/* Advice article (Tanácsadás), after platinum.com's /en/Dog/Advice/… pages; builds on pn-showcase.css. */

/* Header picture with the script title at the bottom left. */
.pn-advice-hero { position: relative; overflow: hidden; background: #6f8a6c; }
.pn-advice-hero__image { display: block; width: 100%; height: clamp(200px, 30vw, 440px); object-fit: cover; }
/* The text stands where the sliders' does: top left (not at the bottom of the picture). */
.pn-advice-hero__text { position: absolute; inset: 0; padding-top: clamp(1rem, 4vw, 3.5rem); pointer-events: none; }
.pn-advice-hero--plain .pn-advice-hero__text { position: static; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pn-advice-hero__title { margin: 0; font-family: "Dancing Script", Times, serif; font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 600; line-height: 1.1; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.pn-advice-hero__subtitle { margin: .15rem 0 0; font-family: "Roboto Condensed", Roboto, sans-serif; font-size: clamp(1rem, 1.8vw, 1.5rem); font-weight: 600; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }

/* Title between lines, date and lead. */
.pn-advice .pn-advice__title { margin: 1.5rem 0 .5rem; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.25; }
.pn-advice .pn-advice__title span { max-width: 52rem; text-align: center; }
.pn-advice__date { margin: 0 0 1rem; text-align: center; font-size: .8rem; color: #8a8a8a; }
.pn-advice__lead { max-width: 60rem; margin: 0 auto 1.75rem; font-size: 1rem; font-weight: 500; text-align: center; white-space: pre-line; }

/* Contents box: full-width green-grey band with a white card. */
.pn-advice-toc { padding: 2rem 0; background: #d2d6cd; }
.pn-advice-toc__card { padding: 1.5rem 1.75rem; background: #fff; }
.pn-advice-toc__title { margin: 0 0 .75rem; font-family: "Roboto Condensed", Roboto, sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--pn-green, #547351); }
.pn-advice-toc__list { margin: 0; padding-left: 1.25rem; columns: 2 22rem; column-gap: 2.5rem; }
.pn-advice-toc__list li { margin-bottom: .35rem; break-inside: avoid; }
.pn-advice-toc__list a { color: var(--pn-text, #474746); text-decoration: none; border-bottom: 1px solid rgba(84, 115, 81, .35); }
.pn-advice-toc__list a:hover { color: var(--pn-orange, #c6460e); border-color: currentColor; }

/* The text. */
.pn-advice-body { padding: 2rem 0 1rem; }
.pn-advice-body__text { max-width: 60rem; margin: 0 auto; font-size: .95rem; line-height: 1.7; }
.pn-advice-body__text h2 { margin: 2rem 0 .75rem; scroll-margin-top: 7rem; font-family: "Roboto Condensed", Roboto, sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--pn-green, #547351); }
.pn-advice-body__text h3 { margin: 1.5rem 0 .5rem; font-family: "Roboto Condensed", Roboto, sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--pn-green-light, #7d9074); }
.pn-advice-body__text img { max-width: 100%; height: auto; }
.pn-advice-body__text a { color: var(--pn-orange, #c6460e); }
.pn-advice-body__text ul { padding-left: 1.25rem; }

/* Banner: text and button left, picture right. */
.pn-advice-banner { padding: 2rem 0; }
.pn-advice-banner__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; gap: 1.5rem; max-width: 60rem; margin: 0 auto; background: #fff; }
.pn-advice-banner__text { padding: 1.5rem 0 1.5rem 1.75rem; }
.pn-advice-banner__title { margin: 0 0 1rem; font-family: "Roboto Condensed", Roboto, sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--pn-green, #547351); }
.pn-advice-banner__button { display: inline-block; padding: .55rem 1.1rem; background: var(--pn-orange, #c6460e); color: #fff !important; font-family: "Roboto Condensed", Roboto, sans-serif; font-weight: 700; text-decoration: none; }
.pn-advice-banner__button:hover { background: #a93a0b; color: #fff; }
.pn-advice-banner__image { display: block; width: 100%; height: 100%; max-height: 300px; object-fit: cover; }

/* More articles of the topic: white band of cards. */
.pn-advice-more { padding: 2rem 0 2.5rem; background: #fff; }
.pn-advice-more .pn-section-title { margin-bottom: 1.5rem; }
.pn-advice-more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.pn-advice-card { display: flex; flex-direction: column; background: #efefef; color: var(--pn-text, #474746); text-decoration: none; }
.pn-advice-card:hover { color: var(--pn-text, #474746); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.pn-advice-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #d2d6cd; }
.pn-advice-card__media img { width: 100%; height: 100%; object-fit: cover; }
.pn-advice-card__body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1rem 1.25rem 1.25rem; }
.pn-advice-card__title { font-weight: 700; font-size: 1rem; line-height: 1.35; }
.pn-advice-card__excerpt { font-size: .85rem; }
.pn-advice-card__more { margin-top: auto; color: var(--pn-orange, #c6460e); font-weight: 700; font-size: .85rem; }

.pn-advice-products { padding-top: 2.5rem; }

.pn-advice-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pn-advice-tags__label { font-weight: 700; text-transform: uppercase; font-size: .8rem; }
.pn-advice-tags__tag { padding: .2rem .65rem; border: 1px solid #b8bfb2; background: #fff; color: var(--pn-text, #474746); font-size: .8rem; text-decoration: none; }
.pn-advice-tags__tag:hover { border-color: var(--pn-green, #547351); color: var(--pn-green, #547351); }

@media (max-width: 991.98px) {
    .pn-advice-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .pn-advice-banner__inner { grid-template-columns: minmax(0, 1fr); }
    .pn-advice-banner__text { padding: 1.25rem; }
    .pn-advice-banner__image { order: -1; max-height: 220px; }
    .pn-advice-more__grid { grid-template-columns: minmax(0, 1fr); }
    .pn-advice-toc__card { padding: 1.25rem; }
}

/* Closer to platinum.com (/en/Dog/Advice/Gastric-torsion): handwriting headline in green, the contents straight on the
   green-grey band in one column, and the text in a 700 px column with light Roboto Condensed headings. */
.pn-advice-hero__title { font-weight: 400; }
.pn-advice-hero__subtitle { font-weight: 400; }
.pn-advice .pn-advice__title,
.pn-advice .pn-advice__title span { font-family: "Dancing Script", Times, serif !important; font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.2; color: var(--pn-green, #547351); text-transform: none; }
.pn-advice-toc { padding: 2.25rem 0; }
.pn-advice-toc__card { max-width: 44rem; margin: 0 auto; padding: 0; background: transparent; }
.pn-advice-toc__title { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 300; color: var(--pn-green-light, #7d9074); }
.pn-advice-toc__list { padding-left: 0; list-style: none; columns: auto; }
.pn-advice-toc__list li { margin-bottom: .25rem; }
.pn-advice-toc__list a { font-family: Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 1rem; font-weight: 500; border-bottom: 0; }
.pn-advice-toc__list a:hover { text-decoration: underline; }
.pn-advice__lead { max-width: 44rem; }
/* The text as on platinum.com's advice articles (Healthy dog joints): light Roboto Condensed headings in the light green,
   14–15 px Roboto text, pictures small on the left with the text beside them. */
.pn-advice-body__text { max-width: 60rem; font-family: Roboto, "Helvetica Neue", Arial, sans-serif; font-size: .9375rem; line-height: 1.65; color: var(--pn-text, #474746); }
.pn-advice-body__text::after { content: ""; display: block; clear: both; }
.pn-advice-body__text h2 { clear: both; margin: 2.25rem 0 .75rem; font-size: 1.5rem; font-weight: 300; line-height: 1.25; color: var(--pn-green-light, #7d9074); }
.pn-advice-body__text h3 { clear: both; margin: 1.5rem 0 .5rem; font-size: 1.2rem; font-weight: 300; line-height: 1.3; color: var(--pn-green-light, #7d9074); }
.pn-advice-body__text h2 strong, .pn-advice-body__text h3 strong { font-weight: inherit; }
.pn-advice-body__text p { margin: 0 0 .9rem; }
.pn-advice-body__text table { clear: both; width: 100%; margin: 1rem 0 1.5rem; border-collapse: collapse; font-size: .875rem; }
.pn-advice-body__text th, .pn-advice-body__text td { padding: .45rem .6rem; border-bottom: 1px solid #d2d6cd; text-align: left; vertical-align: top; }
.pn-advice-body__text thead th { background: #eef0eb; font-family: "Roboto Condensed", Roboto, sans-serif; font-weight: 700; color: var(--pn-green, #547351); }
.pn-advice-body__text td img { max-width: 120px; }
@media (min-width: 768px) {
    /* A paragraph holding just a picture (or a linked picture) with no size or place set in the admin: a third of the
       width on the left, the text flows beside it. */
    .pn-advice-body__text p:has(> img:only-child:not([data-layout], [style])),
    .pn-advice-body__text p:has(> a:only-child > img:only-child:not([data-layout], [style])) { float: left; width: 33%; max-width: 300px; margin: .3rem 1.75rem 1rem 0; }
    .pn-advice-body__text p:has(> img:only-child:not([data-layout], [style])) img,
    .pn-advice-body__text p:has(> a:only-child > img:only-child:not([data-layout], [style])) img { display: block; width: 100%; height: auto; }
    .pn-advice-body__text ul, .pn-advice-body__text ol { overflow: hidden; }
}

/* The tasting banner picture (555 × 320) shown whole: the box follows its proportions instead of cropping the dog's head. */
.pn-advice-banner__inner { align-items: stretch; }
.pn-advice-banner__text { align-self: center; }
.pn-advice-banner__image { height: auto; max-height: none; aspect-ratio: 555 / 320; object-fit: cover; object-position: center top; }
@media (max-width: 767.98px) {
    .pn-advice-banner__image { max-height: none; }
}

/* Tanácsadás hub (blog/hub.blade.php), as platinum.com's /en/Dog/Advice/: intro on white, then each topic in a band,
   green-grey and white with paw prints down both sides in turn, its articles in a row of four. */
.pn-advice-hub { background: #fff; }
.pn-advice-hub__intro { padding: .5rem 0 2rem; background: #fff; }
.pn-advice-hub__lead { max-width: 44rem; margin: 0 auto; font-family: Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 1rem; line-height: 1.6; color: var(--pn-text, #474746); }
.pn-advice-hub__topic { position: relative; padding: 2rem 0 1rem; }
.pn-advice-hub__topic--green { background: #d2d6cd; }
.pn-advice-hub__topic--paws { background: #fff; overflow: hidden; }
.pn-advice-hub__topic--paws::before,
.pn-advice-hub__topic--paws::after { content: ""; position: absolute; top: 0; bottom: 0; width: 200px; background: url('/assets/img/platinum/mancsok-zold.webp') 0 -28px repeat-y; pointer-events: none; opacity: .9; }
.pn-advice-hub__topic--paws::before { left: 0; }
.pn-advice-hub__topic--paws::after { right: 0; transform: scaleX(-1); }
.pn-advice-hub__topic .container { position: relative; z-index: 1; }
.pn-advice-hub__topic-title { margin-bottom: 1.5rem; }
.pn-advice-hub__topic-title span { font-family: "Roboto Condensed", Roboto, sans-serif !important; font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 300; color: var(--pn-green-light, #7d9074); }
.pn-advice-hub .pn-carousel { margin-bottom: .75rem; }
.pn-advice-hub .pn-advice-card { background: #efefef; }
.pn-advice-hub__topic--green .pn-advice-card { background: #f3f3f1; }
.pn-advice-hub .pn-advice-card__title { font-family: "Roboto Condensed", Roboto, sans-serif; font-size: 1.1rem; text-transform: uppercase; color: #343333; }
.pn-advice-hub .pn-advice-card__excerpt { font-size: .9rem; line-height: 1.6; }
.pn-advice-hub .pn-advice-card__more { color: #343333; font-size: .9rem; }
.pn-advice-hub__all { margin: 0 0 1rem; text-align: right; font-size: .9rem; }
.pn-advice-hub__all a { color: var(--pn-orange, #c6460e); font-weight: 700; text-decoration: none; }
.pn-advice-hub__all a:hover { text-decoration: underline; }
.pn-advice-hub__description { padding: 2.5rem 0; background: #fff; }
.pn-advice-hub__description .html-description { max-width: 60rem; margin: 0 auto; }
@media (max-width: 991.98px) { .pn-advice-hub__topic--paws::before, .pn-advice-hub__topic--paws::after { width: 90px; background-size: 140px auto; opacity: .5; } }
.pn-advice-hub .pn-advice-hero__title { font-family: "Dancing Script", Times, serif !important; font-weight: 400; text-transform: none; }

/* A product recommended inside the text (the editor's "Termékajánló" block), as on platinum.com's advice pages. */
.pn-advice-product { clear: both; display: flex; gap: 1.75rem; align-items: flex-start; margin: 1.75rem 0 2rem; }
.pn-advice-product__media { position: relative; flex: 0 0 auto; display: block; width: 33%; max-width: 260px; border: 1px solid #d2d6cd; background: #fff; }
.pn-advice-product__media img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.pn-advice-product__label { display: block; padding: .2rem .5rem; background: var(--pn-green-light, #7d9074); color: #fff; font-family: "Roboto Condensed", Roboto, sans-serif; font-size: .8rem; font-weight: 700; text-align: center; }
.pn-advice-product__body { flex: 1 1 auto; min-width: 0; }
.pn-advice-body__text .pn-advice-product__title { margin: 0 0 .9rem; font-family: "Roboto Condensed", Roboto, sans-serif; font-size: 1.5rem; font-weight: 300; line-height: 1.25; }
/* !important: the article's general link style (orange, underlined; platinum-fixes.css) is more specific. */
.pn-advice-body__text .pn-advice-product__title a { color: var(--pn-green-light, #7d9074) !important; text-decoration: none !important; }
.pn-advice-body__text .pn-advice-product__title a:hover { text-decoration: underline !important; }
.pn-advice-body__text .pn-advice-product__price { margin: 0 0 .9rem; font-family: "Roboto Condensed", Roboto, sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--pn-green, #547351); }
.pn-advice-product__vat { display: block; font-family: Roboto, sans-serif; font-size: .875rem; font-weight: 400; color: var(--pn-text, #474746); }
.pn-advice-product__oos { color: #a33; font-size: .875rem; }
.pn-advice-product__actions { display: flex; }
/* !important throughout: the shop's small stepper field (styles.css, .cart-qty-input) fixes every size that way. */
.pn-advice-product__actions .cart-qty-input { flex: 0 0 8rem !important; width: 8rem !important; min-width: 0 !important; max-width: 8rem !important; height: auto !important; min-height: 0 !important; max-height: none !important; padding: .35rem .6rem !important; border: 1px solid #9aa094 !important; border-right: 0 !important; border-radius: 0; background: #fff !important; font-size: .95rem; font-weight: 400; text-align: left !important; }
.pn-advice-product__button, .pn-advice-body__text a.pn-advice-product__button { display: inline-block; padding: .5rem .9rem; border: 0; border-radius: 0; background: var(--pn-orange, #c6460e); color: #fff !important; font-family: "Roboto Condensed", Roboto, sans-serif; font-size: .9rem; font-weight: 700; text-transform: uppercase; text-decoration: none !important; cursor: pointer; }
.pn-advice-product__button:hover { filter: brightness(.92); }
@media (max-width: 575.98px) {
    .pn-advice-product { gap: 1rem; }
    .pn-advice-product__media { width: 40%; }
    .pn-advice-body__text .pn-advice-product__title { font-size: 1.2rem; }
}

/* Header text over a picture that is light where it stands: dark with a light glow. */
.pn-advice-hero--light .pn-advice-hero__title,
.pn-advice-hero--light .pn-advice-hero__subtitle { color: #3a3a38; text-shadow: 0 0 10px rgba(255, 255, 255, .9), 0 0 3px rgba(255, 255, 255, .8); }
/* Phones: a long article title must not cover the picture – smaller, two lines at most, one line under it. */
@media (max-width: 575.98px) {
    .pn-advice-hero__title { font-size: 1.55rem; line-height: 1.15; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
    .pn-advice-hero__subtitle { font-size: .95rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
}
