<?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_af53437d-81f0-46f1-95fe-a26a7cf6aaee">
        <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>
    <ffd:RegnFileNb
      contextRef="C_af53437d-81f0-46f1-95fe-a26a7cf6aaee"
      id="F_924d998a-c739-4438-a79e-0b7d1d5805f7">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_af53437d-81f0-46f1-95fe-a26a7cf6aaee"
      id="F_3a3d254f-d3b2-4066-a6a2-bc6ed69e6e8f">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_af53437d-81f0-46f1-95fe-a26a7cf6aaee"
      id="F_233b7d88-0187-4ff1-9d10-c256fd36630a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_af53437d-81f0-46f1-95fe-a26a7cf6aaee"
      id="F_bf7b6ccd-41b2-4de4-bd24-293fe577a4d6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_af53437d-81f0-46f1-95fe-a26a7cf6aaee"
      id="F_c777d00d-b964-4df2-968d-31ed6a6ca063">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_af53437d-81f0-46f1-95fe-a26a7cf6aaee"
      id="F_06576261-f053-4cb2-b057-1578d82be9f9">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_af53437d-81f0-46f1-95fe-a26a7cf6aaee"
      id="F_eaa59913-604e-4701-be19-05674fa06575">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_af53437d-81f0-46f1-95fe-a26a7cf6aaee"
      id="F_34d02ed7-d74b-4d90-ab30-6cf6c77cd3cc">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_af53437d-81f0-46f1-95fe-a26a7cf6aaee"
      id="F_a3ad9e3a-a54b-4a12-b659-40e6f448f921">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_af53437d-81f0-46f1-95fe-a26a7cf6aaee"
      id="F_a1054f92-06ea-442e-bc73-e5f6be8d30dd">&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,265,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_af53437d-81f0-46f1-95fe-a26a7cf6aaee"
      decimals="-3"
      id="F_410d245e-f735-4605-8df6-825823a05633"
      unitRef="U_USD">1265000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
