<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_3d63c93b-9d20-4a97-9a5d-bb383f974310">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-09</startDate>
            <endDate>2026-07-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_3d63c93b-9d20-4a97-9a5d-bb383f974310"
      id="F_4767ca59-6f3e-4068-8bd6-20a5b29087fb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3d63c93b-9d20-4a97-9a5d-bb383f974310"
      id="F_23996578-d62c-4ab7-8e54-7482d42a0219">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3d63c93b-9d20-4a97-9a5d-bb383f974310"
      id="F_3597b678-3f82-48f5-a82d-97f0c835c43d">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_3d63c93b-9d20-4a97-9a5d-bb383f974310"
      id="F_792efeae-975d-4bea-afcd-e521f1b54abe">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3d63c93b-9d20-4a97-9a5d-bb383f974310"
      id="F_4d340397-e979-4354-b9ca-78725adbb657">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_3d63c93b-9d20-4a97-9a5d-bb383f974310"
      id="F_fc8f6e68-0ceb-43de-9272-b9a78843828a">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_3d63c93b-9d20-4a97-9a5d-bb383f974310"
      id="F_f8681706-1c52-4d55-8232-754d52110baa">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3d63c93b-9d20-4a97-9a5d-bb383f974310"
      id="F_1e814953-6687-43dd-a661-3445ba2a9a51">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_3d63c93b-9d20-4a97-9a5d-bb383f974310"
      id="F_c6052397-e0e8-4773-b43b-e5d0fbed9a5a">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_3d63c93b-9d20-4a97-9a5d-bb383f974310"
      id="F_db17dd13-8991-47a7-9f06-0d281c7edaa3">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering. The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;958,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_3d63c93b-9d20-4a97-9a5d-bb383f974310"
      decimals="-3"
      id="F_9ff84d4d-3eec-4787-9fb0-0a609f459a52"
      unitRef="U_USD">958000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
