/* Iron Republic PH: buyer guides (/guides/). Pages are generated by scripts/build-guides.mjs; base.css does the rest. */

/* ---------- Head ---------- */
.g-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.g-hero h1 { font-size: clamp(1.7rem, 9.4vw, 4.4rem); }
@media (min-width: 901px) { .g-hero h1 { font-size: clamp(2.2rem, 4.6vw, 4.1rem); } }
.g-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 16px; font: 600 .86rem var(--f-body); }
.g-meta span + span::before { content: "·"; margin-right: 16px; }
@media (max-width: 560px) { .g-meta span:last-child { display: none; } }
.g-art { position: relative; min-height: 300px; }
.g-art .xmarks { position: absolute; left: 0; top: 8%; font-size: 38px; }
.g-art img { position: absolute; right: 4%; top: 50%; width: 76%; max-height: 300px; transform: translateY(-50%) rotate(-6deg); }
.g-art.two img:first-of-type { right: 30%; top: 40%; width: 58%; transform: translateY(-50%) rotate(-8deg); }
.g-art.two img:last-of-type { right: 0; top: 64%; width: 52%; transform: translateY(-50%) rotate(7deg); }
.g-art.three img:nth-of-type(1) { right: 34%; top: 36%; width: 52%; }
.g-art.three img:nth-of-type(2) { right: 0; top: 30%; width: 42%; transform: translateY(-50%) rotate(8deg); }
.g-art.three img:nth-of-type(3) { right: 14%; top: 72%; width: 44%; transform: translateY(-50%) rotate(-3deg); }
@media (max-width: 900px) {
  .g-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .g-art { min-height: 200px; max-width: 420px; width: 100%; justify-self: center; }
  .g-art img { max-height: 200px; }
}

/* ---------- Article + side rail ---------- */
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.g-aside { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 20px; order: 2; }
.g-toc { padding: 20px 22px; border: 2px solid var(--k); border-radius: var(--r); }
.g-toc h2 { margin-bottom: 10px; }
.g-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.g-toc li { counter-increment: toc; }
.g-toc a { display: flex; gap: 10px; min-height: 36px; align-items: center; font: 600 .9rem/1.3 var(--f-body); text-decoration: none; }
.g-toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font: 900 italic .9rem var(--f-display); font-stretch: 75%; color: var(--ink-3); }
.g-toc a:hover { text-decoration: underline; }
.g-rfq { padding: 22px; border-radius: var(--r); }
.g-rfq p { margin: 10px 0 16px; font-size: .92rem; color: var(--on-k-2); }
.g-rfq .btn { width: 100%; }
.g-rfq .g-tel { display: block; margin-top: 14px; font-size: .86rem; color: var(--on-k-2); }
.g-rfq .g-tel a { color: var(--y); font-weight: 700; text-decoration: none; }
@media (max-width: 1000px) {
  .g-layout { grid-template-columns: minmax(0, 1fr); }
  .g-aside { position: static; order: 0; }
  .g-rfq { display: none; }
}

/* ---------- Prose ---------- */
.g-body { max-width: 74ch; font-size: 1.05rem; line-height: 1.7; color: var(--ink-2); }
.g-body > * + * { margin-top: 1.05em; }
.g-body h2 { margin-top: 2.2em; padding-top: .9em; border-top: 3px solid var(--k); color: var(--ink); font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1; scroll-margin-top: calc(var(--nav-h) + 16px); }
.g-body h3 { margin-top: 1.7em; color: var(--ink); font-size: 1.05rem; line-height: 1.1; }
.g-body h2 + *, .g-body h3 + * { margin-top: .8em; }
.g-body b { color: var(--ink); }
.g-body a { color: var(--ink); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--y-2); }
.g-body a:hover { text-decoration-color: var(--k); }
.g-body ul, .g-body ol { padding-left: 1.25em; }
.g-body li + li { margin-top: .45em; }
.g-small { font-size: .86rem; color: var(--ink-3); }
.g-answer { padding: 20px 22px; border-left: 6px solid var(--k); border-radius: 0 var(--r) var(--r) 0; background: var(--y-soft); color: var(--ink); }
.g-note { padding: 16px 20px; border-radius: var(--r); background: var(--g); color: var(--ink); }
.g-steps { counter-reset: st; list-style: none; padding-left: 0 !important; }
.g-steps li { counter-increment: st; position: relative; padding-left: 44px; }
.g-steps li::before { content: counter(st); position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--k); color: var(--y); font: 900 italic .95rem/1 var(--f-display); font-stretch: 80%; }
.g-check { list-style: none; padding-left: 0 !important; }
.g-check li { position: relative; padding-left: 32px; }
.g-check li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 4px; background: var(--k) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23ffd028' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Tables scroll inside their own box on small screens; the page never scrolls sideways */
.g-tbl { overflow-x: auto; border: 2px solid var(--k); border-radius: var(--r); background: var(--w); -webkit-overflow-scrolling: touch; }
.g-tbl table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; line-height: 1.45; color: var(--ink); }
.g-tbl th, .g-tbl td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--g-2); }
.g-tbl tbody tr:last-child > * { border-bottom: 0; }
.g-tbl thead th { background: var(--k); color: var(--y); font: 800 .74rem/1.2 var(--f-display); font-stretch: 112%; letter-spacing: .04em; text-transform: uppercase; }
.g-tbl tbody th { font-weight: 700; white-space: nowrap; }
.g-tbl tbody tr:nth-child(even) { background: #fafafa; }
@media (max-width: 560px) { .g-tbl tbody th { white-space: normal; min-width: 110px; } }

/* ---------- Products, FAQ, more guides ---------- */
.g-sec-h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.g-faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.g-faq-grid > div:first-child p { margin: 14px 0 18px; font-weight: 600; }
.g-faq-grid > div:first-child .num { font-size: 1.4rem; }
.g-faq-grid > div:first-child p a { color: var(--k); text-decoration: none; }
.g-faq-i { border-top: 2px solid var(--k); }
.g-faq-i:last-child { border-bottom: 2px solid var(--k); }
.g-faq-i summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 10px; cursor: pointer; list-style: none; }
.g-faq-i summary::-webkit-details-marker { display: none; }
.g-faq-i summary h3 { font-size: clamp(.95rem, 1.4vw, 1.1rem); font-stretch: 112%; line-height: 1.15; }
.g-faq-i summary i { flex: none; font-size: 22px; transition: transform .2s var(--ease); }
.g-faq-i[open] summary i { transform: rotate(45deg); }
.g-faq-i p { padding: 0 0 20px; max-width: 64ch; line-height: 1.6; }
@media (max-width: 900px) { .g-faq-grid { grid-template-columns: minmax(0, 1fr); } }

.g-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.g-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: clamp(20px, 3vw, 32px); border: 2px solid var(--k); border-radius: var(--r); background: var(--w); color: var(--k); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.g-card:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(0,0,0,.55); }
.g-card .g-k { font: 700 .72rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.g-card p { color: var(--ink-2); }
.g-card .link { margin-top: auto; align-self: flex-start; }
.g-card.on-k { background: var(--k); color: var(--w); }
@media (max-width: 1000px) { .g-cards.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .g-cards { grid-template-columns: minmax(0, 1fr); } }
.g-cta-side .btn { margin-top: 20px; }
