<?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_0d27aacb-beca-4566-b440-17b01677b145">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_0d27aacb-beca-4566-b440-17b01677b145"
      id="F_ec8ca8e5-2e95-4e08-b677-c29e62cd43c1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_0d27aacb-beca-4566-b440-17b01677b145"
      id="F_1df05be6-7fa7-4eaa-a1c8-b45c1048d581">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_0d27aacb-beca-4566-b440-17b01677b145"
      id="F_8ae59381-d79a-4af6-ab90-c9fab85c4ec5">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0d27aacb-beca-4566-b440-17b01677b145"
      id="F_acd4cf43-7892-441a-9392-0a9ba01d0260">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_0d27aacb-beca-4566-b440-17b01677b145"
      id="F_bd9bc185-9d68-400e-b86d-3a1ff69b801e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0d27aacb-beca-4566-b440-17b01677b145"
      id="F_bbc77efb-b32a-4316-8baf-49a24f07b6f3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_0d27aacb-beca-4566-b440-17b01677b145"
      id="F_d99abb56-3145-4875-ad39-4bdffab7cd71">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_0d27aacb-beca-4566-b440-17b01677b145"
      id="F_0ed59176-4fec-4799-baca-4bb5e001bf98">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_0d27aacb-beca-4566-b440-17b01677b145"
      id="F_ab1a7b62-8781-418c-a25c-54cfb4c5fdad">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0d27aacb-beca-4566-b440-17b01677b145"
      id="F_3628a1cb-5e29-43a0-b226-b0b4e4204d1a">&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;115,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_0d27aacb-beca-4566-b440-17b01677b145"
      decimals="-3"
      id="F_cb053204-e144-4c7b-9e22-95efc810d369"
      unitRef="U_USD">115000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
