/* Pet tools share one editorial palette without changing the other tools. */
body.growth-page:has(.pet-workspace) {
  --pet-ink: #20362f; --pet-muted: #4f6157; --pet-paper: #f4f0e5;
  --pet-line: #bcc9b5; --pet-green: #195d4b; --pet-gold: #dfc18a;
  background: #0c191c;
  background-image: radial-gradient(ellipse at 82% 7%, #25443a70, transparent 42%);
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}
.growth-page:has(.pet-workspace) main { max-width: 1160px; }
.growth-page:has(.pet-workspace) header { max-width: 1200px; border-color: #52675080; }
.growth-page:has(.pet-workspace) .article-body { max-width: none; }
.growth-page:has(.pet-workspace) .breadcrumbs { color: #afc0b5; font-size: 13px; padding-top: 18px; }
.growth-page:has(.pet-workspace) .page-hero {
  position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px;
  align-items: center; padding: 16px 0 24px; margin-bottom: 0; min-height: 192px; border: 0;
}
.growth-page:has(.pet-workspace) .page-hero .overline { color: #cdbb89; font-size: 12px; letter-spacing: .08em; }
.growth-page:has(.pet-workspace) .page-hero h1 {
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(28px, 3.2vw, 39px); font-weight: 600; line-height: 1.5;
  color: #f3edda; letter-spacing: .015em; margin: 10px 0;
}
.pet-hero-copy { position: relative; z-index: 1; min-width: 0; }
.pet-hero-copy > p { display: none; }
.pet-hero-art { position: relative; margin: 0; height: 176px; min-width: 0; }
.pet-hero-art .pet-hero-main {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 48%; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 95%, transparent);
}
.pet-hero-art figcaption { position: absolute; right: 0; bottom: -16px; color: #afc0b5; font-size: 11px; line-height: 1.5; }
.pet-hero-art figcaption a { color: #becbb7; }
.pet-workspace {
  padding: 24px; margin: 0 0 36px; color: var(--pet-ink); background: var(--pet-paper);
  border: 1px solid #fff8; border-radius: 10px; box-shadow: 0 18px 45px #0003;
}
.pet-tool-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.article-body .pet-workspace .pet-tool-heading h2,
.article-body .pet-analysis .pet-tool-heading h2 {
  margin: 0; font: 700 25px/1.5 "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; letter-spacing: .01em;
}
.article-body .pet-workspace .pet-tool-heading h2 { color: var(--pet-ink); }
.pet-badge { border: 1px solid #9da991; border-radius: 3px; padding: 6px 9px; color: #4e604b; font-size: 13px; white-space: nowrap; }
.article-body .pet-workspace p { color: var(--pet-muted); }
.article-body .pet-intro { font-size: 15px; margin: 7px 0 18px; line-height: 1.7; }
.pet-context { border-left: 3px solid #8b9f7c; padding: 0 0 0 12px; }
.article-body .pet-context .pet-reference { margin: 0; font-size: 14px; line-height: 1.8; }
.article-body .pet-context .pet-help { margin: 3px 0 0; }
.pet-workspace a { color: #286351; }
.pet-workspace a:visited { color: #685a37; }
.pet-workspace label, .pet-analysis label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; line-height: 1.6; font-weight: 600; min-width: 0; }
.pet-field { min-width: 0; }
.pet-workspace select, .pet-workspace input, .pet-workspace textarea {
  background: #fffdf7; color: #22382e; border: 1px solid #778b77; border-radius: 5px;
  box-sizing: border-box; min-width: 0; min-height: 46px; width: 100%; padding: 10px 12px;
  font: 16px/1.5 "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}
.pet-workspace input::placeholder { color: #59695d; }
.pet-workspace :is(select, input, button, summary, a, textarea):focus-visible { outline: 3px solid #39765e; outline-offset: 3px; }
.pet-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pet-plan-card { min-width: 0; margin: 0; padding: 16px 18px 18px; border: 1px solid #a5b59b; border-radius: 6px; background: #fdfbf3; }
.pet-plan-card legend { padding: 0 8px; color: #36563f; font-size: 15px; font-weight: 700; }
.pet-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pet-span { grid-column: 1 / -1; }
.pet-comparison-options { min-width: 0; margin: 0; padding: 0; border: 0; }
.pet-comparison-options > summary { min-height: 48px; padding: 10px 0; align-items: center; flex-wrap: wrap; gap: 2px 12px; color: #365b48; font-size: 15px; line-height: 1.65; font-weight: 700; }
.pet-comparison-options > summary span { color: #4f6157; font-size: 14px; font-weight: 400; overflow-wrap: anywhere; }
.pet-comparison-options > summary::after { color: #365b48; margin-left: auto; }
.pet-comparison-options .pet-plan-card { margin-top: 4px; }
.pet-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
.pet-primary-actions { margin-top: 18px; }
.pet-workspace .button { min-height: 48px; border: 1px solid #18523f; border-radius: 5px; padding: 11px 22px; margin: 0; color: #fffcef; background: #195d4b; box-shadow: 0 2px 0 #103c30; font: 600 15px/1.6 "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; }
.pet-workspace .button:hover { background: #114b3a; text-decoration: none; }
.pet-workspace .button:active { transform: translateY(1px); box-shadow: 0 1px 0 #103c30; }
.pet-text-button { min-height: 44px; border: 0; padding: 9px 0; background: transparent; color: #275e4b; font: 14px/1.7 "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; text-decoration: underline; text-underline-offset: 4px; }
.pet-text-button:disabled, .pet-actions button:disabled { opacity: .55; cursor: not-allowed; }
.article-body .pet-workspace .pet-help { margin: 10px 0 0; font-size: 14px; line-height: 1.8; color: #4f6157; max-width: none; }
.pet-parameters { border: 0; padding: 0; margin: 7px 0 12px; }
.pet-parameters summary { color: #345640; font-size: 14px; line-height: 1.65; min-height: 44px; padding: 10px 0; align-items: center; }
.pet-parameters summary::after { color: #345640; }
.pet-parameters p { font-size: 14px; line-height: 1.8; }
.pet-profile-control { max-width: 430px; margin: 10px 0; }
.pet-parameter-table { table-layout: fixed; width: 100%; min-width: 0; border-collapse: collapse; margin: 14px 0; }
.pet-parameter-table :is(th, td) { min-width: 0; padding: 9px 10px; vertical-align: top; overflow-wrap: anywhere; }
.pet-parameter-table th { background: #e4e9dc; color: #345640; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.pet-parameter-table td { border-color: #c0cdb7; color: #345640; font-size: 14px; }
.pet-parameter-table td:last-child { color: #345640; font-size: 14px; }
.pet-parameter-table th:first-child { width: 31%; }
.pet-results { margin-top: 24px; padding: 22px; background: #e4eadb; border: 1px solid #a5b99a; border-radius: 6px; scroll-margin-top: 20px; }
.article-body .pet-results h3 { margin: 0 0 14px; color: #254f3a; font-size: 19px; font-weight: 700; }
.pet-results p { font-size: 14px; line-height: 1.85; margin: 9px 0; overflow-wrap: anywhere; }
.pet-result-table { table-layout: fixed; width: 100%; min-width: 0; border-collapse: collapse; }
.pet-result-table :is(th, td) { padding: 13px 12px; vertical-align: top; overflow-wrap: anywhere; white-space: normal; }
.pet-result-table th { background: transparent; color: #345640; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.pet-result-table thead th { border-bottom: 2px solid #a5b99a; }
.pet-result-table th:first-child { width: 31%; }
.pet-result-table tbody :is(th, td) { border-top: 1px solid #bdcbb5; }
.pet-result-table td, .pet-result-table td:last-child, .pet-result-table tr:first-child td:last-child { color: #244731; font-size: 15px; line-height: 1.65; font-variant-numeric: tabular-nums; text-align: left; }
.pet-result-stage { display: block; color: #4f6157; font-size: 14px; line-height: 1.7; font-weight: 400; margin-top: 4px; }
.pet-result-table .pet-key-row th { padding-top: 19px; color: #244731; }
.pet-result-table .pet-key-row strong { display: block; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; color: #164e35; letter-spacing: -.025em; overflow-wrap: anywhere; }
.pet-summary { border-top: 1px solid #a5b99a; padding-top: 14px; margin-top: 12px; }
.article-body .pet-error { border: 1px solid #aa4c40; border-radius: 5px; background: #f6e5df; color: #7b2929 !important; padding: 12px 15px; font-size: 14px; line-height: 1.7; }
.article-body .pet-workspace .pet-field-error, .article-body .pet-analysis .pet-field-error { margin: 2px 0 0; color: #8b2525; font-size: 14px; line-height: 1.6; font-weight: 500; overflow-wrap: anywhere; }
.article-body .pet-workspace .pet-feedback { min-height: 1.7em; font-size: 14px; line-height: 1.7; color: #41674c; margin-top: 12px; }
.pet-workspace textarea { font-size: 14px; line-height: 1.8; padding: 14px; resize: vertical; }
.pet-analysis { margin: 0 0 30px; padding: 25px 0 28px; border-top: 1px solid #58735f; border-bottom: 1px solid #58735f; color: #e4eddf; }
.article-body .pet-analysis .pet-tool-heading h2 { color: #e5eddf; }
.pet-analysis > p { font-size: 15px; line-height: 1.85; }
.pet-analysis label { color: #d3dfcf; }
.pet-analysis input, .pet-analysis select { box-sizing: border-box; min-width: 0; min-height: 46px; width: 100%; padding: 10px 12px; color: #edf2e5; background: #132a27; border: 1px solid #84987c; border-radius: 5px; font: 16px/1.5 "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; }
.pet-analysis input::placeholder { color: #b6c5af; }
.pet-analysis :is(input, select, button, a):focus-visible { outline: 3px solid #dfc18a; outline-offset: 3px; }
.pet-analysis-mode { width: 100%; max-width: 650px; margin: 20px 0; }
.pet-analysis-group { min-width: 0; margin: 22px 0; padding: 16px 20px 20px; border: 1px solid #61795d; border-radius: 5px; }
.pet-analysis-group legend { padding-inline: 8px; color: #e0e6ce; font-size: 15px; font-weight: 600; }
.pet-currency-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pet-attempts { max-width: 300px; margin: 20px 0; }
.pet-analysis .pet-text-button { color: #dfc18a; }
.pet-analysis .button { min-height: 48px; background: #d5bd85; color: #20362b; border: 1px solid #e8d4a5; border-radius: 5px; font: 600 15px/1.6 "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; padding: 11px 20px; }
.article-body .pet-analysis .pet-help { margin: 0 0 12px; font-size: 14px; color: #c0cfba; line-height: 1.8; }
.article-body .pet-analysis .pet-field-error { color: #ffc1b6; }
.pet-analysis-result { margin-top: 24px; padding: 18px 22px; border: 1px solid #647f60; background: #172f27; border-radius: 5px; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.pet-analysis-result p { margin: 5px 0; }
.pet-jump-links { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 5px 0 22px; border-bottom: 1px solid #526750; font-size: 14px; }
.pet-jump-links a { color: #d0bf97; padding-block: 9px; }
.growth-page:has(.pet-workspace) .article-body > section:not(.pet-workspace):not(.pet-analysis) { max-width: 880px; margin-inline: auto; }
.growth-page:has(.pet-workspace) .article-body > section:not(.pet-workspace):not(.pet-analysis) > h2 { color: #dfe7d8; margin-top: 42px; font-size: 25px; font-family: "Noto Serif JP", "Yu Mincho", serif; line-height: 1.7; }
.growth-page:has(.pet-workspace) .article-body > section:not(.pet-workspace):not(.pet-analysis) :is(p, li) { color: #becdb9; font-size: 15px; line-height: 2; }
.growth-page:has(.pet-workspace) .article-body a:visited { color: #b1aa83; }
.growth-page:has(.pet-workspace) .article-body .pet-workspace a:visited { color: #685a37; }
.pet-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; margin-top: 22px; }
.pet-guide-grid article { padding: 10px 0 15px; border-top: 2px solid #889775; }
.article-body .pet-guide-grid h3 { color: #d5dfc9; font-size: 19px; margin: 12px 0; }
.pet-guide-grid p { margin: 0; }
.pet-definitions { margin: 20px 0; }
.pet-definitions > div { display: grid; grid-template-columns: 150px 1fr; gap: 25px; padding: 18px 0; border-top: 1px solid #526750; }
.pet-definitions dt { font-size: 15px; font-weight: 600; color: #dedfc3; }
.pet-definitions dd { color: #becdb9; font-size: 15px; line-height: 1.9; margin: 0; }
.pet-example-card { padding: 18px 24px; background: #152c26; border: 1px solid #526750; border-radius: 4px; }
.pet-sources { margin-top: 40px; padding-top: 10px; border-top: 1px solid #526750; }
.pet-workspace [aria-invalid="true"] { border: 2px solid #a33535; }
.pet-analysis [aria-invalid="true"] { border: 2px solid #f4a395; }
.pet-workspace [hidden], .pet-analysis [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 720px) {
  .pet-comparison-options[open] > summary { display: none; }
  .pet-comparison-options[open] .pet-plan-card { margin-top: 0; box-sizing: border-box; height: 100%; }
}
@media (max-width: 760px) {
  .growth-page:has(.pet-workspace) main { padding-inline: 16px; }
  .growth-page:has(.pet-workspace) header { padding: 7px 16px; flex-wrap: nowrap; align-items: center; gap: 12px; }
  .growth-page:has(.pet-workspace) header .brand { gap: 7px; }
  .growth-page:has(.pet-workspace) header .brand-text { font-size: 13px; letter-spacing: .02em; }
  .growth-page:has(.pet-workspace) header .brand-text small { display: none; }
  .growth-page:has(.pet-workspace) header .site-navigation { display: flex; width: auto; min-width: 0; flex: 0 1 auto; margin-left: auto; }
  .growth-page:has(.pet-workspace) header .site-navigation a { display: none; }
  .growth-page:has(.pet-workspace) header .site-navigation a:last-child { display: block; white-space: nowrap; font-size: 13px; line-height: 1.6; padding: 12px 0; }
  .growth-page:has(.pet-workspace) .breadcrumbs { display: none; }
  .growth-page:has(.pet-workspace) .page-hero { grid-template-columns: minmax(0, 1fr) 108px; gap: 7px; padding: 12px 0 18px; min-height: 120px; }
  .growth-page:has(.pet-workspace) .page-hero .overline { font-size: 11px; letter-spacing: 0; }
  .growth-page:has(.pet-workspace) .page-hero h1 { font-size: 22px; margin: 6px 0 0; line-height: 1.5; letter-spacing: 0; }
  .pet-hero-art { height: 112px; margin-right: -8px; }
  .pet-hero-art .pet-hero-main { object-position: 50% 50%; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 95%, transparent); }
  .pet-hero-art figcaption { display: none; }
  .pet-workspace { padding: 18px 14px; border-radius: 7px; margin-bottom: 26px; }
  .article-body .pet-workspace .pet-tool-heading h2, .article-body .pet-analysis .pet-tool-heading h2 { font-size: 21px; }
  .pet-badge { display: none; }
  .article-body .pet-intro { font-size: 14px; margin: 5px 0 14px; line-height: 1.75; }
  .pet-context { padding-left: 9px; }
  .article-body .pet-context .pet-reference { font-size: 14px; }
  .pet-workspace label, .pet-analysis label { gap: 6px; }
  .pet-workspace select, .pet-workspace input, .pet-analysis input, .pet-analysis select { min-height: 44px; font-size: 16px; padding: 8px; }
  .pet-plan-card { padding: 10px 10px 12px; }
  .pet-field-grid { gap: 10px; }
  .pet-primary-actions { margin-top: 12px; gap: 6px 16px; }
  .pet-workspace .button { flex: 1; min-height: 48px; padding: 10px 12px; font-size: 15px; }
  .pet-text-button { font-size: 14px; }
  .pet-parameters { margin-bottom: 10px; }
  .pet-parameter-table :is(th, td) { padding: 8px 4px; font-size: 14px; }
  .pet-parameter-table input { padding: 8px 4px; }
  .pet-results { padding: 16px 10px; margin-top: 20px; }
  .pet-result-table :is(th, td) { padding: 11px 6px; }
  .pet-result-table th:first-child { width: 31%; }
  .pet-result-table .pet-key-row strong { font-size: 25px; line-height: 1.4; }
  .pet-analysis { padding: 22px 0; }
  .pet-analysis-group { padding: 14px 12px 16px; margin: 20px 0; }
  .pet-currency-pair { gap: 12px; }
  .pet-analysis-result { padding: 15px; }
  .pet-jump-links { gap: 4px 20px; }
  .pet-guide-grid { grid-template-columns: 1fr; gap: 12px; }
  .pet-definitions > div { grid-template-columns: 1fr; gap: 6px; }
  .growth-page:has(.pet-workspace) .article-body > section:not(.pet-workspace):not(.pet-analysis) > h2 { font-size: 22px; margin-top: 34px; }
}
@media (max-width: 719px) { .pet-plan-grid { grid-template-columns: 1fr; gap: 4px; } }
@media (prefers-reduced-motion: no-preference) {
  .pet-hero-art .pet-hero-main { animation: pet-appear .65s ease-out both; }
  .pet-workspace .button { transition: background .18s ease, box-shadow .18s ease; }
}
@keyframes pet-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Keep the readable reference values in the initial HTML, below the workspace. */
.pet-reference-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; margin: 20px 0; }
.pet-reference-table caption { text-align: left; color: #d5dfc9; font-size: 14px; line-height: 1.8; margin-bottom: 10px; }
.pet-reference-table :is(th, td) { padding: 12px 10px; white-space: normal; overflow-wrap: anywhere; }
.pet-reference-table th { color: #e0e8d7; background: #193028; font-size: 14px; line-height: 1.7; text-transform: none; letter-spacing: 0; }
.pet-reference-table :is(td, td:last-child, tr:first-child td:last-child) { color: #e0e8d7; font-size: 16px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.growth-page:has(.pet-workspace) .pet-source-caption { font-size: 14px; }
@media(max-width: 760px) { .pet-reference-table :is(th, td) { padding: 10px 6px; } }
