/* The Melbourne Energy Field Guide — product range, comparison, buying guide and product pages. */

/* Catalogue cards, restyled in the edition's language. */
.field-guide-service .catalogue .catalog-grid { gap: 0; border-top: 1px solid var(--green); border-left: 1px solid var(--fg-line); }
.field-guide-service .catalogue .product-card { position: relative; display: flex; flex-direction: column; border: 0; border-right: 1px solid var(--fg-line); border-bottom: 1px solid var(--fg-line); border-radius: 0; background: var(--sg-card); transition: background .3s var(--sg-ease); }
.field-guide-service .catalogue .product-card:hover { box-shadow: none; background: #fff; }
.field-guide-service .catalogue .product-image { height: 250px; background: transparent; border-bottom: 1px solid var(--fg-line); }
.field-guide-service .catalogue .product-image img { transition: transform .6s var(--sg-ease); }
.field-guide-service .catalogue .product-number { border-radius: 0; background: transparent; padding: 0; top: 14px; left: 16px; font-size: 10px; letter-spacing: .1em; }
.field-guide-service .catalogue .product-card-copy { display: flex; flex: 1; flex-direction: column; padding: 20px 18px 18px; }
.field-guide-service .catalogue .product-card h3 { min-height: 0; margin: 10px 0 6px; font-family: Geist, sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.field-guide-service .catalogue .product-links { margin-top: auto; padding-top: 18px; gap: 10px; }
.product-model { font-size: 13px; color: #5a6b5b; }
.product-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.product-tags li { padding: 3px 8px; border: 1px solid #c3cbbf; font-size: 11px; line-height: 1.5; color: #3d5245; }
.product-tags .is-verified { border-color: var(--green); background: var(--green); color: var(--lime); }
.product-compare { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; margin-top: 12px; padding: 0; border: 0; background: transparent; color: var(--green); font-size: 13px; font-weight: 600; cursor: pointer; }
.product-compare > span[aria-hidden] { width: 18px; height: 18px; border: 1.5px solid var(--green); display: grid; place-items: center; transition: background .2s; }
.product-compare[aria-pressed="true"] > span[aria-hidden] { background: var(--green); }
.product-compare[aria-pressed="true"] > span[aria-hidden]::after { content: ""; width: 8px; height: 4px; border: 2px solid var(--lime); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.product-compare:disabled { opacity: .45; cursor: not-allowed; }
.product-compare:focus-visible { outline: 3px solid #4c7022; outline-offset: 3px; }
.product-card:has([aria-pressed="true"]) { background: #fff; box-shadow: inset 0 0 0 2px var(--green); }
.product-card[hidden] { display: none !important; }
.catalog-features { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.catalog-features button { min-height: 40px; padding: 8px 15px; border: 1px solid #b9c2b5; background: #fff; color: var(--green); font-size: 13px; cursor: pointer; }
.catalog-features button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--lime); }
.field-guide-service .catalogue .catalog-search { border-radius: 0; background: #fff; }
.field-guide-service .catalogue .catalog-guidance { border-radius: 0; }

/* Compare tray and table */
.cmp-tray { position: sticky; bottom: 16px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 12px 12px 12px 22px; background: var(--sg-deep); color: var(--fg-paper); box-shadow: 0 14px 34px rgba(5, 20, 14, .25); animation: sg-rise .35s var(--sg-ease); }
.cmp-tray[hidden] { display: none; }
.cmp-tray p { font-size: 14px; }
.cmp-tray b { color: var(--lime); font-size: 18px; }
.cmp-tray-actions { display: flex; align-items: center; gap: 12px; }
.cmp-clear { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: #d3ddcf; text-decoration: underline; cursor: pointer; }
.cmp-tray .button:disabled { opacity: .5; cursor: not-allowed; }
.cmp-dialog { width: min(1040px, 94vw); max-height: 90dvh; padding: clamp(20px, 3vw, 36px); border: 0; background: var(--fg-paper); color: var(--green); }
.cmp-dialog::backdrop { background: rgba(14, 41, 30, .78); backdrop-filter: blur(5px); }
.cmp-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.cmp-head h2 { font-size: clamp(26px, 2.1vw, 30px); font-weight: 600; letter-spacing: -.03em; }
.cmp-scroll { overflow-x: auto; border-top: 1px solid var(--green); }
.cmp-scroll:focus-visible { outline: 3px solid #4c7022; outline-offset: 2px; }
.cmp-dialog table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.cmp-dialog th, .cmp-dialog td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--fg-line); text-align: left; vertical-align: top; }
.cmp-dialog thead th { font-family: Geist, sans-serif; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.cmp-dialog thead a { text-decoration: underline; text-underline-offset: 4px; }
.cmp-dialog tbody th { width: 22%; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #5a6b5b; font-weight: 650; }
.cmp-dialog td a { text-decoration: underline; }
.cmp-dialog .is-pending { color: #7c8a79; font-style: italic; }
.cmp-note { margin: 16px 0 20px; font-size: 13px; color: #5a6b5b; max-width: 620px; }

/* Buying guide */
.sg-chapter-buying { background: var(--sg-pale); }
.bg-layout { display: grid; grid-template-columns: .9fr 1.1fr; border: 1px solid var(--fg-line); background: var(--sg-card); }
.bg-options { display: flex; flex-direction: column; padding: clamp(14px, 2vw, 24px); border-right: 1px solid var(--fg-line); }
.bg-options button { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--fg-line); background: transparent; color: var(--green); font-size: 16px; font-weight: 550; text-align: left; cursor: pointer; transition: background .25s var(--sg-ease), color .25s; }
.bg-options button:last-child { border-bottom: 0; }
.bg-options button span:last-child { opacity: .4; transition: transform .25s var(--sg-ease); }
.bg-options button:hover span:last-child { transform: translateX(3px); }
.bg-options button[aria-selected="true"] { background: var(--green); color: var(--lime); }
.bg-options button[aria-selected="true"] span:last-child { opacity: 1; }
.bg-options button:focus-visible { outline: 3px solid #4c7022; outline-offset: -3px; }
.bg-panel { padding: clamp(24px, 3.4vw, 44px); background: var(--green); color: #f3f5f0; }
.bg-panel:not([data-sg-hidden]) { animation: sg-rise .4s var(--sg-ease); }
.bg-panel ol { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: bg; }
.bg-panel li { counter-increment: bg; display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #3f604f; font-size: 16px; line-height: 1.5; }
.bg-panel li::before { content: counter(bg, decimal-leading-zero); flex: 0 0 auto; padding-top: 3px; font-size: 11px; color: var(--lime); }
.bg-ask { margin-top: 18px; font-size: 15px; color: #d0dbcd; }
.bg-ask b { color: #fff; }
.bg-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }
.bg-links .sg-text-link { color: var(--lime); }

/* Product page */
.pd-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; padding: 34px 0 48px; align-items: center; }
.pd-hero h1 { margin: 18px 0 8px; font-size: clamp(35px, 3.92vw, 59px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; overflow-wrap: anywhere; }
.pd-hero .sg-kicker { margin: 26px 0 0; }
.pd-model { font-size: 16px; color: #4f6054; font-weight: 550; }
.pd-hero .sg-intro { margin-top: 16px; }
.pd-tags { margin-top: 16px; }
.pd-stage { position: relative; margin: 0; height: clamp(360px, 42vw, 600px); display: grid; place-items: center; padding: 8%; background: radial-gradient(circle at 50% 55%, #fff 0, #eef0e8 55%, #e3e7dc 100%); overflow: hidden; }
.pd-stage::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 9%; height: 16px; border-radius: 50%; background: rgba(21, 60, 46, .14); filter: blur(10px); }
.pd-stage img, .pd-stage picture { position: relative; max-width: 100%; max-height: 100%; width: auto; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-stage-batteries img[src$=".jpg"], .pd-stage-batteries img[src$=".jpeg"], .pd-stage-batteries img[src$=".webp"] { mix-blend-mode: normal; }
.pd-stage .fg-photo-registration span { border-color: #5f6e5d; }
.pd-stage figcaption { position: absolute; left: 22px; bottom: 18px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #5a6b5b; }
.pd-specs, .pd-install { display: grid; grid-template-columns: .85fr 1.15fr; gap: 6%; align-items: start; }
.pd-specs > div:first-child p, .pd-compat p { margin: 16px 0 18px; max-width: 460px; font-size: 15px; line-height: 1.75; color: #4f6054; }
.pd-spec-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--green); }
.pd-spec-table th, .pd-spec-table td { padding: 14px 0; border-bottom: 1px solid var(--fg-line); text-align: left; vertical-align: top; font-size: 15px; }
.pd-spec-table th { width: 42%; padding-right: 16px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #5a6b5b; font-weight: 650; }
.pd-spec-table td { font-weight: 550; font-variant-numeric: normal; }
.pd-checked { margin-top: 12px; font-size: 12px; color: #5a6b5b; }
.pd-checklist { list-style: none; margin: 0; padding: 0; counter-reset: pd; border-top: 1px solid var(--green); }
.pd-checklist li { counter-increment: pd; display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--fg-line); font-size: 17px; }
.pd-checklist li::before { content: counter(pd, decimal-leading-zero); font: 400 24px/1 Geist, sans-serif; color: #536c49; min-width: 34px; }
.pd-chapter-install { background: var(--sg-pale); }
.pd-compat-notes { padding: 14px 16px; background: var(--sg-card); border-left: 3px solid var(--green); color: var(--green) !important; }
.pd-install-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #aebaac; }
.pd-install-list li { padding: 24px 22px 22px 0; border-bottom: 1px solid #bac6b7; }
.pd-install-list li:nth-child(odd) { border-right: 1px solid #bac6b7; }
.pd-install-list li:nth-child(even) { padding-left: 22px; }
.pd-install-list .sg-step-number { font-size: 34px; }
.pd-install-list h3 { margin: 14px 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.pd-install-list p { font-size: 14px; line-height: 1.7; color: #52644f; }
.pd-about { max-width: 760px; }
.pd-others { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--green); }
.pd-others li { border-right: 1px solid var(--fg-line); border-bottom: 1px solid var(--fg-line); }
.pd-others li:last-child { border-right: 0; }
.pd-others a { display: grid; gap: 8px; padding: 18px; height: 100%; transition: background .3s var(--sg-ease); }
.pd-others a:hover { background: #fff; }
.pd-others-media { height: 170px; overflow: hidden; background: #fff; }
.pd-others-media picture, .pd-others-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-others-media img[src$=".png"] { object-fit: contain; padding: 12px; mix-blend-mode: multiply; }
.pd-others strong { font-family: Geist, sans-serif; font-size: 19px; font-weight: 500; letter-spacing: -.015em; }
.pd-others span { font-size: 12px; color: #5a6b5b; }

@media (max-width: 1100px) {
	.field-guide-service .catalogue .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pd-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pd-others li:nth-child(2) { border-right: 0; }
}
@media (max-width: 900px) {
	.bg-layout, .pd-hero-grid, .pd-specs, .pd-install { grid-template-columns: 1fr; }
	.bg-options { border-right: 0; border-bottom: 1px solid var(--fg-line); }
	.pd-hero-grid { gap: 28px; }
	.pd-stage { height: 340px; }
}
@media (max-width: 760px) {
	.field-guide-service .catalogue .product-image { height: 200px; }
	.field-guide-service .catalogue .product-card-copy { padding: 16px 14px; }
	.field-guide-service .catalogue .product-card h3 { font-size: 18px; }
	.catalog-features { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.catalog-features button { flex: 0 0 auto; }
	.cmp-tray { bottom: 76px; padding-left: 16px; }
	.cmp-tray p span { display: none; }
	.bg-options button { min-height: 52px; font-size: 15px; }
	.pd-install-list { grid-template-columns: 1fr; }
	.pd-install-list li, .pd-install-list li:nth-child(even) { padding: 20px 0; border-right: 0; }
	.pd-hero h1 { font-size: clamp(38px, 11vw, 56px); }
}
@media (max-width: 420px) {
	.field-guide-service .catalogue .catalog-grid { grid-template-columns: 1fr; }
	.pd-others { grid-template-columns: 1fr; }
	.pd-others li { border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.cmp-tray, .bg-panel:not([data-sg-hidden]) { animation: none; }
}
