<?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_04b5753c-c864-4b23-82c0-9bb76a3f3ac7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_04b5753c-c864-4b23-82c0-9bb76a3f3ac7"
      id="F_6a2c72a9-abe2-4b9b-8a9e-686971135442">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_04b5753c-c864-4b23-82c0-9bb76a3f3ac7"
      id="F_1ceac4f6-f7b6-44e9-a458-0808b1f014b0">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_04b5753c-c864-4b23-82c0-9bb76a3f3ac7"
      id="F_f5c49f8b-0111-46f5-ad23-8635bad95d97">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_04b5753c-c864-4b23-82c0-9bb76a3f3ac7"
      id="F_12728543-ec9f-4ec6-8fda-a56e3880c32d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_04b5753c-c864-4b23-82c0-9bb76a3f3ac7"
      id="F_7286b7eb-70ca-4d8a-8e0c-bb45823141b7">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_04b5753c-c864-4b23-82c0-9bb76a3f3ac7"
      id="F_64ea0555-1203-44e3-8d6c-a500752522f4">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_04b5753c-c864-4b23-82c0-9bb76a3f3ac7"
      id="F_fd738cda-1dd0-4883-9cf2-9151dbd63c45">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_04b5753c-c864-4b23-82c0-9bb76a3f3ac7"
      id="F_b69aa5b6-8dec-4821-ad12-8c07826c3dbd">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_04b5753c-c864-4b23-82c0-9bb76a3f3ac7"
      id="F_61e77f53-bb15-4ef2-a212-4d44acf8e945">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_04b5753c-c864-4b23-82c0-9bb76a3f3ac7"
      id="F_386e531a-7756-4011-8149-e8f478ded307">&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;1,095,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_04b5753c-c864-4b23-82c0-9bb76a3f3ac7"
      decimals="-3"
      id="F_35e83674-5aed-4671-81eb-0ee9897edb85"
      unitRef="U_USD">1095000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
