<?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_479887ad-6425-4d56-9cb2-53d2f7595287">
        <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_479887ad-6425-4d56-9cb2-53d2f7595287"
      id="F_c663d516-e14f-48d8-a6bb-66f9730126eb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_479887ad-6425-4d56-9cb2-53d2f7595287"
      id="F_4cfcdc22-89c8-4da6-b04b-f90e928746a5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_479887ad-6425-4d56-9cb2-53d2f7595287"
      id="F_a195dac0-9031-4802-b21c-83c49904ecef">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_479887ad-6425-4d56-9cb2-53d2f7595287"
      id="F_0e9b89f5-1ca4-489d-a13b-07a45b5bcb51">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_479887ad-6425-4d56-9cb2-53d2f7595287"
      id="F_40ad04d2-4dc9-402f-a0a3-be375475f292">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_479887ad-6425-4d56-9cb2-53d2f7595287"
      id="F_30171443-d336-4c58-9dac-7f93e264bfee">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_479887ad-6425-4d56-9cb2-53d2f7595287"
      id="F_db1fc89b-d289-413c-bcdf-66a794daf589">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_479887ad-6425-4d56-9cb2-53d2f7595287"
      id="F_85d59605-d80c-411e-9c96-e2549a87cde0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_479887ad-6425-4d56-9cb2-53d2f7595287"
      id="F_9126ac98-177f-4b0a-8066-f8a54b4a51ff">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_479887ad-6425-4d56-9cb2-53d2f7595287"
      id="F_aaaf809f-830b-4e02-b1df-2b7d5471f9a9">&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;3,439,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_479887ad-6425-4d56-9cb2-53d2f7595287"
      decimals="-3"
      id="F_8adfa295-5a39-41f5-a697-27656c805350"
      unitRef="U_USD">3439000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
