<?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_8584d7e5-63bf-4db8-a089-93838257d571">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-25</startDate>
            <endDate>2026-09-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_8584d7e5-63bf-4db8-a089-93838257d571"
      id="F_1760f120-776f-430c-b6f7-555b81d5e72e">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_8584d7e5-63bf-4db8-a089-93838257d571"
      id="F_a763edbb-cbe3-42ec-99db-80b52b8a0506">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8584d7e5-63bf-4db8-a089-93838257d571"
      id="F_dfddb5b4-603e-478a-8d54-2314ece56d50">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_8584d7e5-63bf-4db8-a089-93838257d571"
      id="F_99113227-157d-47a0-9ebf-3c2b06af0010">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_8584d7e5-63bf-4db8-a089-93838257d571"
      id="F_bc3bf81f-11a7-4490-a8e0-21dbeb5fa764">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_8584d7e5-63bf-4db8-a089-93838257d571"
      id="F_72338017-2e2a-42c4-b26d-e68b85539a7d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_8584d7e5-63bf-4db8-a089-93838257d571"
      id="F_3ccdeb9f-9f6f-4490-99fe-b2f4f6547db0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_8584d7e5-63bf-4db8-a089-93838257d571"
      id="F_9de70811-b60f-42a1-8a38-021405b67c80">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_8584d7e5-63bf-4db8-a089-93838257d571"
      id="F_caa9b1b8-0d57-46d0-b736-088ba01ba605">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8584d7e5-63bf-4db8-a089-93838257d571"
      id="F_2a583263-add6-4154-a857-e0a2bbcd72fa">&lt;p style="tab-size:26.66px;font-size:12pt;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;8,846,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_8584d7e5-63bf-4db8-a089-93838257d571"
      decimals="-3"
      id="F_c6dc03a9-9239-4231-92a8-e20ef2b21ffe"
      unitRef="U_USD">8846000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
