body:has(.calorie-page) { background: #f6f5ee; color: #173630; }
.page-calorie-calculator.has-breadcrumb { --breadcrumb-width: 1120px; display: block; padding: 14px clamp(12px, 3vw, 28px) 78px; }
.calorie-page { width: min(1120px, 100%); margin: 0 auto; font-family: Arial, sans-serif; }
.calorie-page * { box-sizing: border-box; }
.calorie-page :is(button, input, select) { font: inherit; }
.calorie-page button { cursor: pointer; }
.calorie-page :is(button, input, select, a):focus-visible { outline: 3px solid #d5825a; outline-offset: 3px; }
.calorie-page [hidden] { display: none !important; }

.cc-hero { position: relative; min-height: 194px; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(23px, 3.8vw, 44px); border-radius: 24px; color: #fffdf3; background: radial-gradient(circle at 83% 8%, #eeb47655, transparent 35%), linear-gradient(116deg, #123c37, #235b4d 64%, #42665c); box-shadow: 0 20px 45px #15423920; }
.cc-hero::after { position: absolute; right: -78px; bottom: -148px; width: 330px; height: 330px; border: 1px solid #ffffff31; border-radius: 50%; box-shadow: 0 0 0 39px #ffffff08, 0 0 0 90px #ffffff05; content: ''; pointer-events: none; }
.cc-hero-copy { position: relative; z-index: 1; max-width: 690px; }
.cc-result-kicker, .cc-portion-copy > span { color: #e9cf98; font-size: 10px; font-weight: 850; letter-spacing: .17em; }
.cc-hero h1 { margin: 0 0 8px; font: 700 clamp(32px, 4vw, 52px)/1 Georgia, serif; letter-spacing: -.055em; }
.cc-hero p { max-width: 66ch; margin: 0; color: #e5f0e8; font-size: 14px; line-height: 1.55; }
.cc-hero-art { position: relative; z-index: 1; flex: 0 0 160px; width: 160px; height: 146px; display: grid; place-items: center; }
.cc-hero-ring { position: absolute; width: 135px; height: 135px; border: 2px solid #fff7df7a; border-radius: 50%; box-shadow: 0 0 0 13px #ffffff0e, 0 0 0 31px #ffffff0b; }
.cc-hero-core { position: relative; color: #fff7d9; font: 700 38px/1 Georgia, serif; }
.cc-hero-core small { display: block; margin-top: 4px; color: #d8eaca; font: 800 10px/1 Arial, sans-serif; letter-spacing: .17em; text-align: center; text-transform: uppercase; }
.cc-spark { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #f5c680; box-shadow: 0 0 0 7px #f5c68027; }
.cc-spark-one { top: 5px; right: 10px; }.cc-spark-two { bottom: 9px; left: 9px; width: 6px; height: 6px; }

.cc-workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(310px, .92fr); align-items: stretch; gap: 16px; margin-top: 17px; }
.cc-input-card, .cc-result-card { min-width: 0; border-radius: 21px; }
.cc-input-card { padding: clamp(22px, 3vw, 32px); border: 1px solid #dfE6df; background: #fffefa; box-shadow: 0 12px 30px #264a3c0a; }
.cc-section-top h2 { margin: 0 0 7px; color: #173d37; font: 700 clamp(26px, 2.6vw, 35px)/1.12 Georgia, serif; letter-spacing: -.04em; }
.cc-section-top p { margin: 0; color: #667b73; font-size: 13px; line-height: 1.55; }
.cc-equation-choice { min-width: 0; margin: 23px 0 0; padding: 0; border: 0; }
.cc-equation-choice legend, .cc-field > span, .cc-portion-tool label > span { margin-bottom: 8px; color: #294941; font-size: 12px; font-weight: 800; }
.cc-equation-choice > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-equation-choice label { display: block; }
.cc-equation-choice input { position: absolute; opacity: 0; }
.cc-equation-choice label span { display: block; min-height: 42px; padding: 11px 13px; border: 1px solid #d8e2d9; border-radius: 11px; color: #31524a; background: #f7f9f4; font-size: 13px; font-weight: 800; text-align: center; }
.cc-equation-choice input:checked + span { border-color: #275f4f; color: #fff; background: #275f4f; }
.cc-equation-choice input:focus-visible + span { outline: 3px solid #d5825a; outline-offset: 3px; }
.cc-equation-choice small { display: block; margin-top: 8px; color: #77877f; font-size: 11px; line-height: 1.4; }
.cc-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.cc-field { min-width: 0; display: grid; align-content: start; }
.cc-field > div, .cc-portion-tool label > div { position: relative; }
.cc-field input, .cc-field select, .cc-portion-tool :is(input, select) { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfddd3; border-radius: 11px; outline: 0; color: #173d37; background: #fff; font-size: 15px; font-weight: 700; }
.cc-field input, .cc-portion-tool input { padding-right: 39px; }
.cc-field :is(input, select):focus, .cc-portion-tool :is(input, select):focus { border-color: #498d70; box-shadow: 0 0 0 3px #76b8942c; }
.cc-field em, .cc-portion-tool em { position: absolute; top: 50%; right: 12px; color: #83958b; font-size: 12px; font-style: normal; transform: translateY(-50%); pointer-events: none; }
.cc-field-wide { grid-column: 1 / -1; }
.cc-field select { font-size: 13px; }
.cc-calculate { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; margin-top: 20px; padding: 0 17px; border: 0; border-radius: 11px; color: #fff; background: #d86e51; font-weight: 850; box-shadow: 0 8px 18px #d86e5129; }
.cc-calculate:hover { background: #c7583d; }
.cc-calculate span { font-size: 20px; }
.cc-form-error { margin: 12px 0 0; color: #a33830; font-size: 12px; font-weight: 700; line-height: 1.5; }
.cc-result-card { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 34px); color: #fff; background: radial-gradient(circle at 95% 4%, #8eaf8140, transparent 37%), linear-gradient(145deg, #143f3b, #1e5b51); box-shadow: 0 20px 40px #153e3725; }
.cc-result-card::before { position: absolute; right: -105px; bottom: -110px; width: 310px; height: 310px; border: 1px solid #ffffff1c; border-radius: 50%; box-shadow: 0 0 0 47px #ffffff08; content: ''; pointer-events: none; }
.cc-result-card > * { position: relative; z-index: 1; }
.cc-result-kicker { color: #f6d793; }
.cc-result-card h2 { max-width: 17ch; margin: 17px 0 0; font: 700 clamp(27px, 3vw, 36px)/1.1 Georgia, serif; letter-spacing: -.04em; }
.cc-result-number { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin: 22px 0 6px; }
.cc-result-number strong { font: 700 clamp(66px, 8vw, 105px)/.9 Georgia, serif; letter-spacing: -.075em; font-variant-numeric: tabular-nums; }
.cc-result-number span { color: #e7d49b; font-size: 18px; font-weight: 800; }
.cc-result-number small { display: block; margin-top: 4px; color: #d1e8d8; font-size: 11px; font-weight: 600; }
.cc-result-description { max-width: 44ch; margin: 10px 0 22px; color: #d5e9dd; font-size: 13px; line-height: 1.6; }
.cc-result-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.cc-result-detail > div { min-width: 0; padding: 14px; border: 1px solid #ffffff31; border-radius: 13px; background: #ffffff10; }
.cc-result-detail span, .cc-result-detail small { display: block; color: #c7dfd0; font-size: 10px; line-height: 1.35; }
.cc-result-detail strong { display: block; margin: 7px 0 3px; font-size: 25px; font-variant-numeric: tabular-nums; }
.cc-range { margin-top: 18px; }
.cc-range > div:first-child { display: flex; justify-content: space-between; gap: 12px; color: #d1e5d7; font-size: 11px; }
.cc-range strong { color: #fff2c8; }
.cc-range-track { height: 7px; margin-top: 9px; border-radius: 99px; background: #ffffff2c; }
.cc-range-track i { display: block; width: 58%; height: 100%; margin-left: 21%; border-radius: inherit; background: linear-gradient(90deg, #f8d995, #f4af84); }
.cc-result-foot { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid #ffffff29; color: #c7ded1; font-size: 11px; line-height: 1.5; }
.cc-safety-note { margin: 13px 0 0; padding: 11px 15px; border: 1px solid #e5dfcc; border-radius: 11px; color: #6b6455; background: #fffaf0; font-size: 12px; line-height: 1.55; }
.calorie-page > .share-panel { margin-top: 15px; }
.calorie-page > .share-panel .share-button.primary { background: #20594c; border-color: #20594c; }

.cc-portion { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 4vw, 52px); align-items: center; margin-top: 28px; padding: clamp(22px, 3vw, 34px); border: 1px solid #eedbc9; border-radius: 20px; background: linear-gradient(110deg, #fff9ef, #fff4eb); }
.cc-portion-copy > span { color: #bd7654; }
.cc-portion-copy h2 { margin: 10px 0; color: #593c32; font: 700 clamp(25px, 3vw, 36px)/1.12 Georgia, serif; letter-spacing: -.04em; }
.cc-portion-copy p { max-width: 55ch; margin: 0; color: #806f63; font-size: 13px; line-height: 1.65; }
.cc-portion-tool { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(105px, .7fr) minmax(110px, .7fr); gap: 9px; align-items: end; }
.cc-portion-tool label { display: grid; min-width: 0; }
.cc-portion-tool select { font-size: 13px; }
.cc-portion-result { display: grid; align-content: center; min-height: 47px; padding: 5px 10px; border-radius: 11px; color: #fff; background: #bf684b; text-align: center; }
.cc-portion-result strong { font-size: 23px; line-height: 1; font-variant-numeric: tabular-nums; }
.cc-portion-result span { margin-top: 3px; font-size: 9px; font-weight: 700; }
.cc-food-content, .cc-guide { margin-top: 18px; padding: clamp(22px, 3vw, 34px); border: 1px solid #dfe6dc; border-radius: 20px; background: #fff; }
.cc-food-content h2, .cc-guide h2 { margin: 0 0 10px; color: #21493e; font: 700 clamp(25px, 2.7vw, 34px)/1.15 Georgia, serif; letter-spacing: -.04em; }
.cc-food-content h2:not(:first-child), .cc-guide h2:not(:first-child) { margin-top: 25px; }
.cc-food-content h3, .cc-guide h3 { margin: 23px 0 7px; color: #285244; font-size: 17px; }
.cc-food-content p, .cc-guide p, .cc-guide li { max-width: 78ch; margin: 0 0 14px; color: #5f7169; font-size: 13px; line-height: 1.7; }
.cc-food-content .editor-content-table-wrap { margin: 18px 0; }
.cc-food-content .editor-content-table { min-width: 540px; width: 100%; }
.cc-food-content .editor-content-table :is(th, td) { padding: 13px 14px; font-size: 13px; }
.cc-food-content .editor-content-table tbody th { color: #234d3f; font-weight: 800; }
.cc-food-content .editor-content-table tbody td:nth-child(2) { color: #b45d43; font-size: 17px; font-weight: 850; font-variant-numeric: tabular-nums; }
.cc-guide blockquote { margin: 17px 0 0; padding: 17px 19px; border-left: 4px solid #d38760; border-radius: 0 12px 12px 0; background: #fff7ee; }
.cc-guide blockquote h3 { margin-top: 0; }
.cc-guide blockquote p:last-child { margin-bottom: 0; }
.cc-guide a, .cc-food-content a { color: #20634f; font-weight: 800; }
.cc-more { margin-top: 19px; text-align: right; }
.cc-more a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid #d5e1d9; border-radius: 10px; color: #205247; background: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.cc-more a:hover { border-color: #8eb9a0; background: #f5fbf4; }
.cc-noscript { padding: 15px; color: #734d40; }

@media (max-width: 820px) { .cc-workspace, .cc-portion { grid-template-columns: 1fr; }.cc-result-card { min-height: 420px; }.cc-portion-tool { grid-template-columns: minmax(0, 1.4fr) minmax(105px, .7fr) minmax(110px, .7fr); } }
@media (max-width: 600px) { .page-calorie-calculator.has-breadcrumb { padding: 9px 12px 54px; }.cc-hero { min-height: 160px; padding: 20px; border-radius: 17px; }.cc-hero h1 { font-size: 31px; }.cc-hero p { font-size: 12px; }.cc-hero-art { flex-basis: 72px; width: 72px; height: 72px; }.cc-hero-ring { width: 69px; height: 69px; box-shadow: 0 0 0 9px #ffffff0e; }.cc-hero-core { font-size: 21px; }.cc-hero-core small { font-size: 7px; }.cc-spark { display: none; }.cc-workspace { gap: 11px; margin-top: 12px; }.cc-field-grid { gap: 8px; }.cc-field input { font-size: 14px; }.cc-result-card { min-height: 0; }.cc-result-number strong { font-size: 72px; }.cc-portion { margin-top: 19px; }.cc-portion-tool { grid-template-columns: minmax(0, 1fr) 95px; }.cc-portion-tool label:first-child { grid-column: 1 / -1; }.cc-food-content .editor-content-table { min-width: 490px; } }
@media (max-width: 390px) { .cc-hero-art { display: none; }.cc-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.cc-field-wide { grid-column: 1 / -1; }.cc-result-number strong { font-size: 62px; }.cc-range > div:first-child { display: grid; gap: 4px; } }
