<?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_fd75b095-3559-48c4-8e38-2cfd5e4310eb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_fd75b095-3559-48c4-8e38-2cfd5e4310eb"
      id="F_7caddf3b-eddc-452c-b179-a85df07eb6e3">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_fd75b095-3559-48c4-8e38-2cfd5e4310eb"
      id="F_6fdfe715-621a-4475-9195-52df3602657c">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_fd75b095-3559-48c4-8e38-2cfd5e4310eb"
      id="F_10e50280-ee56-4a9e-a4f1-d5f3d700c93a">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_fd75b095-3559-48c4-8e38-2cfd5e4310eb"
      id="F_f716a4bc-4010-4081-92ee-08626694547d">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_fd75b095-3559-48c4-8e38-2cfd5e4310eb"
      id="F_46861f08-dc74-4017-9839-30da4858d76a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_fd75b095-3559-48c4-8e38-2cfd5e4310eb"
      id="F_b4bc21f3-ce9d-4c3a-978a-6b0c0580abee">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_fd75b095-3559-48c4-8e38-2cfd5e4310eb"
      id="F_6ac569a2-e3b5-4982-a783-ca0acd379a69">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fd75b095-3559-48c4-8e38-2cfd5e4310eb"
      id="F_adfd342c-51c9-4a1d-972c-9905331f1cf7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_fd75b095-3559-48c4-8e38-2cfd5e4310eb"
      id="F_5d98ef45-48e0-4f06-9c36-3351ec061c34">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_fd75b095-3559-48c4-8e38-2cfd5e4310eb"
      id="F_bc1b6482-5f55-4a9b-a3b0-0865260820aa">&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;7,986,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_fd75b095-3559-48c4-8e38-2cfd5e4310eb"
      decimals="-3"
      id="F_dfdb7c07-bad4-4fbb-99f6-6a32d3f0f505"
      unitRef="U_USD">7986000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
