/* Shared paths and inner pages */
/* The wordmark occupies x=327..1181, y=33..221 in the 1192 × 260 header artwork. */
.brand-word {
  display: inline-block;
  width: 4.1em;
  height: .9063em;
  vertical-align: -.055em;
  overflow: hidden;
  white-space: nowrap;
  color: transparent;
  background: url("assets/baramgaebi-logo.png") 97.03% 46.48% / 139.42% auto no-repeat;
}
.site-foot .brand-word {
  font-size: clamp(1.65rem, 2.1vw, 1.9rem);
  margin-inline-start: .13em;
  vertical-align: middle;
}
@media print, (forced-colors: active) {
  .brand-word, .site-foot .brand-word {
    display: inline;
    color: inherit;
    background: none;
    box-shadow: none;
    margin: 0;
    font-size: inherit;
    filter: none;
    vertical-align: baseline;
  }
}
.nav .logo img { height: auto; }
.nav a[aria-current="page"] {
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 700;
  text-decoration: none;
}
.rightnav a.locale { white-space: nowrap; }
.nav .rightnav .darkbtn[aria-current="page"] {
  color: #fff;
  background: var(--blue);
  text-decoration: none;
}
.nav .rightnav { gap: 10px; }

/* Footer */
.site-foot {
  background: #efe2d0;
  color: var(--ink);
  border-top: 2px solid #d9c6ae;
}
.site-foot .shell {
  padding-block: 48px 44px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 28px;
}
.site-foot strong, .site-foot b {
  display: block;
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--ink);
}
.site-foot strong:has(> .brand-word) {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.site-foot p, .site-foot .company-address {
  color: var(--ink-soft);
  margin: 0 0 8px;
  font-size: .96rem;
  line-height: 1.6;
}
.site-foot .shell > div:nth-child(2) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 4px 28px;
  align-content: start;
}
.site-foot .shell > div:nth-child(2) b {
  grid-column: 1 / -1;
}
.site-foot a {
  display: inline-block;
  margin-right: 12px;
  padding: 4px 0;
  font-size: .96rem;
  font-weight: 500;
  color: var(--ink);
  transition: color .18s var(--ease);
}
.site-foot a:hover, .site-foot a:focus-visible, .inner-link:hover {
  text-decoration: underline;
  color: var(--blue-dark);
}
.site-foot a.yt-channel-link {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 8px 0 0;
  padding: 7px 14px 7px 11px;
  background: #fff;
  border: 1px solid #d7c4ac;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(28, 25, 23, .06);
  transition: border-color .18s var(--ease), background-color .18s var(--ease), transform .18s var(--ease);
}
.site-foot a.yt-channel-link:hover,
.site-foot a.yt-channel-link:focus-visible {
  text-decoration: none;
  border-color: #ef4444;
  background: #fff8f8;
  color: var(--ink);
  transform: translateY(-1px);
}
.site-foot a.yt-channel-link .yt-arrow {
  color: var(--muted);
  font-weight: 700;
}
.site-foot .reach a {
  display: block;
  width: fit-content;
  overflow-wrap: anywhere;
}
.site-foot .reach a[href^="tel:"] {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

/* Inner Page Typography & Intro */
.inner-page { padding-block: 32px clamp(48px, 6vw, 84px); }
.inner-page h1 {
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.14;
  letter-spacing: -.03em;
  font-weight: 800;
}
.inner-page .lede {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 44em;
  margin: 14px 0 0;
}
.inner-link {
  font-weight: 700;
  color: var(--blue);
  padding-block: 9px;
  display: inline-block;
}
.inner-page h2, .support-shell h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -.025em;
}
.inner-intro {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.contact-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.contact-intro-copy {
  min-width: 0;
  flex: 1;
}
.contact-fruits {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.contact-fruits span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px 4px 7px;
  border-radius: 999px;
  background: var(--pale);
  border: 1px solid var(--line);
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.contact-fruits img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.contact-mascot {
  margin: 0;
  width: 132px;
  height: 132px;
  border-radius: 28px;
  background: linear-gradient(145deg, #fbf4ea 0%, #f4e6d5 100%);
  border: 1px solid #e7d5bf;
  padding: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.contact-mascot img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Catalog Page */
.catalog-page #catalog { padding-top: 28px; }
.catalog-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 11px 20px;
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-sm);
  color: var(--blue);
  font-weight: 700;
  transition: all .18s var(--ease);
}
.catalog-cta:hover {
  background: var(--blue);
  color: #fff;
  text-decoration: none;
}

/* Product Specs Card */
.product-specs {
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 28px);
  margin: 0 0 28px;
}
.coring-demo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #10171d;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.spec-jump { display: none; }
#spec-title { scroll-margin-top: 6rem; }
.product-specs h3 {
  font-size: 1rem;
  line-height: 1.5;
  margin: .75rem 0 .25rem;
  color: var(--blue);
}
.product-specs dl {
  margin: 10px 0 0;
  border-top: 1px solid var(--line-strong);
}
.product-specs dl > div {
  display: grid;
  grid-template-columns: minmax(6.5em, 34%) minmax(0, 1fr);
  gap: .75rem;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.product-specs dt, .product-specs dd { margin: 0; line-height: 1.55; }
.product-specs dt, .holder-detail figcaption, .spec-source { color: var(--muted); }
.product-specs dd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.product-specs .spec-source, .holder-detail figcaption {
  font-size: .92rem;
  line-height: 1.55;
  margin-top: .75rem;
}
.holder-detail { margin: 0 0 1.5rem; }
.product-demos-grid .holder-detail { margin: 0; }
.holder-detail img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

@media (max-width: 720px) {
  .spec-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--blue);
    font-weight: 650;
    padding: .4rem 0;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .detailgrid { row-gap: 1.4rem; }
  .detailgrid > aside { min-width: 0; }
  .product-specs dl > div {
    grid-template-columns: minmax(4.8em, 28%) minmax(0, 1fr);
    gap: .45rem;
  }
  .product-specs dt, .product-specs dd {
    font-size: .9rem;
  }
}

/* Company Page & Timeline */
.company-cover {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
.company-cover h1 {
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.18;
  text-wrap: balance;
}
.company-cover .lede {
  margin: 16px 0;
}
.company-cover .company-story {
  max-width: 39em;
  margin: 0 0 18px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.company-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 2290 / 1775;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.company-cover > * { min-width: 0; }
.company-cover figcaption, .contact-visual figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: .92rem;
}
.history-layout {
  display: grid;
  grid-template-columns: .75fr 1.45fr;
  gap: clamp(24px, 6vw, 72px);
  padding-top: 48px;
  align-items: start;
}
.history-list {
  margin: 0;
  border-left: 2px solid var(--blue-border);
  padding-left: 24px;
}
.history-list div {
  position: relative;
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.history-list div:first-child { padding-top: 6px; }
.history-list div:last-child { border-bottom: 0; }
.history-list div::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 23px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--blue-border);
}
.history-list div:first-child::before { top: 13px; }
.history-list dt {
  font-size: 1.08rem;
  font-weight: 750;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.history-list dd {
  margin: 0;
  color: var(--ink-soft);
}

/* Contact Page */
.reach-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  margin: 30px 0;
}
.reach-panel {
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 40px);
}
.reach-panel h2 { margin-bottom: 16px; }
.reach-panel dl { margin: 0; }
.reach-panel dl div {
  padding: 14px 0;
  border-top: 1px solid var(--line-strong);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.reach-panel dt { color: var(--muted); font-weight: 600; }
.reach-panel dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.reach-panel dd a[href^="tel:"] {
  font-size: 1.12rem;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.reach-panel a:hover { color: var(--blue-dark); text-decoration: underline; }
.visit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 40px);
}
.visit address {
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  margin: 16px 0;
  line-height: 1.6;
}

/* Continue Links */
.continue-links {
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 26px;
  margin-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
}
.continue-links h2 {
  font-size: 1rem;
  margin: 0 12px 0 0;
  color: var(--ink-soft);
}
.continue-links a {
  font-weight: 700;
  padding: 5px 0;
  color: var(--blue);
}
.continue-links a:hover { text-decoration: underline; }

/* Japanese text can wrap at character boundaries without spaces. */
html:lang(ja) body { word-break: normal; overflow-wrap: anywhere; line-break: strict; }

/* Shared international navigation layout */
html:not([lang=ko]) { word-break: normal; overflow-wrap: break-word; }
html:not([lang=ko]) .nav nav { gap: 10px; }
html:not([lang=ko]) .field-feature h1 { font-size: clamp(38px, 4.3vw, 68px); }

@media (max-width: 1180px) {
  html:not([lang=ko]) header .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
    min-height: 0;
    padding-top: 8px;
  }
  html:not([lang=ko]) header .logo { flex: none; padding-block: 4px; }
  html:not([lang=ko]) header .rightnav {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    max-width: 100%;
    gap: 8px;
    padding-block: 4px;
  }
  html:not([lang=ko]) header .nav nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
    border-top: 1px solid var(--line);
    margin-top: 6px;
    padding: 4px 0;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .nav { gap: 16px; }
  .nav nav, html:not([lang=ko]) .nav nav { gap: 4px; }
}

@media (max-width: 720px) {
  .site-foot .shell, .company-cover, .history-layout, .reach-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .site-foot .shell { padding-block: 36px; }
  .nav .rightnav { gap: 8px; }
  .inner-page { padding-top: 20px; }
  .history-layout { padding-top: 32px; }
  .history-list { padding-left: 18px; }
  .history-list div { grid-template-columns: 84px 1fr; gap: 10px; }
  .history-list div::before { left: -25px; }
  .company-cover img { height: auto; }
  .company-cover h1 { font-size: clamp(28px, 7.6vw, 44px); overflow-wrap: anywhere; }
  .continue-links { padding: 18px 20px; gap: 8px 20px; margin-bottom: 36px; }
  .contact-intro { gap: 16px; align-items: flex-start; }
  .contact-mascot { width: 84px; height: 84px; border-radius: 20px; padding: 6px; }
  html:not([lang=ko]) header .nav nav { flex-wrap: nowrap; justify-content: space-between; gap: 2px; }
  html:not([lang=ko]) .nav nav a { font-size: .8rem; padding: 8px 4px; }
}

/* Flag-only control: accessible names remain available to keyboard and screen-reader users. */
.language-picker { position: relative; z-index: 12; color: var(--ink); }
.language-picker summary, .language-picker .flag-link {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 6px; border-radius: 8px; cursor: pointer;
}
.language-picker summary { list-style: none; gap: 6px; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.language-picker img { width: 24px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px #0002; }
.language-picker .flag-menu { position: absolute; top: calc(100% + 3px); right: 0; display: grid; grid-template-columns: repeat(3, 44px); gap: 3px; padding: 6px; background: white; border: 1px solid #ddd4ca; border-radius: 12px; box-shadow: 0 5px 18px #1d160d24; }
.language-picker:not([open]) .flag-menu { display: none; }
.flag-link[aria-current], .flag-link:hover, .language-picker summary:hover { background: #f1e6d6; }
.language-picker :focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.product-demos-grid > *, .fruit-preview-head > *, .detailgrid > *, .contact-intro > * { min-width: 0; }
.fruit-preview-head { flex-wrap: wrap; }
.fruit-original, .fruit-original-text { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 1200px) {
  .nav nav { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 720px) {
  header .nav { height: auto; grid-template-columns: minmax(0,1fr) auto; }
  header .nav nav { width: 100%; min-width: 0; flex-wrap: wrap; justify-content: flex-start; overflow: visible; gap: 3px 6px; }
  header .nav nav a { flex: 0 1 auto; min-width: 0; max-width: 100%; white-space: normal; }
  .site-foot .shell > div { min-width: 0; }
  :is(main,.continue-links,.site-foot) :is(p,h1,h2,h3,dt,dd,a,button,figcaption) { overflow-wrap: anywhere; }
  .fruit-preview-head { align-items: flex-start; }
  .fruit-preview-head .fruit-original { flex-wrap: wrap; justify-content: flex-start; }
}

