/* Register.gy — "Refined" site style (3.4.0, 2026-10-13).
   Loaded after site.css only when Appearance → Site style is "Refined"; "Classic" leaves it out.
   Subtle polish: one-line header nav, page titles aligned with the text, calmer reading type, tidier tables and lists. */

/* ================= HEADER ================= */
body.rgy-refined .sh-wrap { max-width: 1240px; gap: 20px; }
body.rgy-refined .sh-nav a { white-space: nowrap; font-size: .9rem; padding: 8px 11px; }
@media (min-width: 1101px) and (max-width: 1240px) {
  body.rgy-refined .sh-nav ul { gap: 0; }
  body.rgy-refined .sh-nav a { font-size: .86rem; padding: 7px 9px; }
}
/* Between tablet and small laptop the full menu can't fit on one line: use the menu button (same as phones). */
@media (min-width: 901px) and (max-width: 1100px) {
  body.rgy-refined .main-nav.sh-nav { display: block; position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 68px); overflow: auto; background: rgba(7,10,8,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 24px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s linear .3s; }
  body.rgy-refined .sh.scrolled .main-nav.sh-nav { height: calc(100dvh - 60px); }
  body.rgy-refined .sh.nav-open .main-nav.sh-nav { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .25s, transform .3s var(--ease), visibility 0s; }
  body.rgy-refined .sh-nav ul { flex-direction: column; gap: 4px; max-width: 560px; margin: 0 auto; }
  body.rgy-refined .sh-nav a { display: block; font-size: 1.2rem; font-family: var(--display); font-weight: 600; padding: 14px 16px; border-radius: 12px; color: var(--hd-text); }
  body.rgy-refined .nav-toggle { display: flex; }
}

/* ================= INNER PAGES ================= */
/* Title band and text share one column, so the title lines up with the words below it. */
body.rgy-refined .page-hero .container,
body.rgy-refined .page-content > .container { max-width: 860px !important; }
body.rgy-refined .page-hero--article .container,
body.rgy-refined .page-content > .container.entry { max-width: 760px !important; }

body.rgy-refined .page-hero {
  background: linear-gradient(180deg, #f3f7f4 0%, #fbfcfb 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 44px;
  position: relative;
}
body.rgy-refined .page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-dark) 20%, var(--gold) 80%, transparent);
  opacity: .55;
}
body.rgy-refined .page-hero h1 {
  font-size: clamp(1.85rem, 1.25rem + 2vw, 2.6rem);
  line-height: 1.15; letter-spacing: -0.02em; font-weight: 800;
  margin-bottom: 12px; text-wrap: balance;
}
body.rgy-refined .page-hero p { font-size: 1.05rem; line-height: 1.6; color: #4a5650; max-width: 62ch; }
body.rgy-refined .page-hero p p { margin: 0; }
body.rgy-refined .page-kicker {
  display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px;
  background: rgba(26,92,42,.08); color: var(--green-dark) !important;
  font-size: .75rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
body.rgy-refined .page-meta { margin: 0; font-size: .9rem !important; color: #6b766f !important; }

body.rgy-refined .page-content { padding: 48px 0 80px; }
/* Article text only (direct children of the content column); plugin widgets and coloured boxes keep their own styles. */
body.rgy-refined .page-content > .container > p,
body.rgy-refined .page-content > .container > :is(ul, ol) > li { color: #38443d; font-size: 1.0625rem; line-height: 1.75; }
body.rgy-refined .page-content > .container > p { margin-bottom: 1.1em; }
body.rgy-refined .page-content > .container > :is(p, ul, ol) strong { color: #18211b; font-weight: 650; }
body.rgy-refined .page-content > .container > h2 {
  font-size: clamp(1.35rem, 1.1rem + .9vw, 1.65rem); line-height: 1.25; letter-spacing: -0.015em;
  margin: 2.2em 0 .55em; color: #121a15; text-wrap: balance;
}
body.rgy-refined .page-content > .container > h3 { font-size: 1.15rem; line-height: 1.35; margin: 1.8em 0 .5em; }
body.rgy-refined .page-content > .container > :first-child { margin-top: 0; }
body.rgy-refined .page-content > .container > :is(ul, ol) { padding-left: 1.3em; margin: 0 0 1.3em; }
body.rgy-refined .page-content > .container > :is(ul, ol) > li { margin-bottom: .45em; padding-left: .2em; }
body.rgy-refined .page-content > .container > :is(ul, ol) > li::marker { color: var(--green-mid); }

/* Text links get a quiet underline; button-style links (they carry a class) are left alone. */
body.rgy-refined .page-content > .container > p > a:not([class]),
body.rgy-refined .page-content > .container > :is(ul, ol) > li > a:not([class]) {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgba(26,92,42,.35);
}
body.rgy-refined .page-content > .container > p > a:not([class]):hover,
body.rgy-refined .page-content > .container > :is(ul, ol) > li > a:not([class]):hover { text-decoration-color: currentColor; }

/* Tables: rounded, lighter grid, readable on phones (scrolls sideways instead of squashing). */
body.rgy-refined :is(.page-content .container > table, .page-content .container > figure > table, .page-content .rgy-price-table-wrap > table) {
  border-collapse: separate; border-spacing: 0; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; font-size: .97rem;
}
body.rgy-refined :is(.page-content .container > table, .page-content .container > figure > table, .page-content .rgy-price-table-wrap > table) th { border: 0; padding: 13px 16px; font-weight: 600; }
body.rgy-refined :is(.page-content .container > table, .page-content .container > figure > table, .page-content .rgy-price-table-wrap > table) td { border: 0; border-top: 1px solid var(--border); padding: 13px 16px; color: #38443d; }
body.rgy-refined :is(.page-content .container > table, .page-content .container > figure > table, .page-content .rgy-price-table-wrap > table) :is(td + td, th + th) { border-left: 1px solid var(--border); }
body.rgy-refined :is(.page-content .container > table, .page-content .container > figure > table, .page-content .rgy-price-table-wrap > table) th + th { border-left-color: rgba(255,255,255,.14); }
body.rgy-refined :is(.page-content .container > table, .page-content .container > figure > table, .page-content .rgy-price-table-wrap > table) tbody tr:nth-child(even) td { background: #fafcfa; }
body.rgy-refined .rgy-price-table-wrap, body.rgy-refined .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* "Related guides" box at the end of guides. */
body.rgy-refined .rgy-related-links { border-radius: 14px !important; padding: 22px 24px !important; margin-top: 40px !important; }
body.rgy-refined .rgy-related-links a { display: inline-block; margin: 4px 14px 4px 0; text-decoration: none; }

/* Guide lists (category / search pages). */
body.rgy-refined .post-card { padding: 22px 0; border-bottom: 1px solid var(--border); }
body.rgy-refined .post-card h2 { margin: 0 0 6px; font-size: 1.25rem; }
body.rgy-refined .post-card h2 a { color: #121a15; }
body.rgy-refined .post-card h2 a:hover { color: var(--green-dark); }
body.rgy-refined .post-card p { margin: 0; }

body.rgy-refined ::selection { background: rgba(61,220,119,.28); }
body.rgy-refined :focus-visible { outline: 2px solid var(--green-mid); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 600px) {
  body.rgy-refined .page-hero { padding: 40px 0 30px; }
  body.rgy-refined .page-content { padding: 32px 0 56px; }
  body.rgy-refined .page-content > .container > p, body.rgy-refined .page-content > .container > :is(ul, ol) > li { font-size: 1.02rem; line-height: 1.7; }
  body.rgy-refined :is(.page-content .container > table, .page-content .container > figure > table, .page-content .rgy-price-table-wrap > table) { font-size: .92rem; }
  body.rgy-refined :is(.page-content .container > table, .page-content .container > figure > table, .page-content .rgy-price-table-wrap > table) :is(th, td) { padding: 11px 12px; }
}
