<?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_5eb3aecb-b4c2-4f25-88c0-2397608f78ec">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_5eb3aecb-b4c2-4f25-88c0-2397608f78ec"
      id="F_3119bf32-938c-43be-a918-6360f3bbe895">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5eb3aecb-b4c2-4f25-88c0-2397608f78ec"
      id="F_85fe5542-5ecd-4925-8797-271bb5a23fc9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5eb3aecb-b4c2-4f25-88c0-2397608f78ec"
      id="F_7fa9717b-ee2d-479e-9702-aa7aeed95a3d">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_5eb3aecb-b4c2-4f25-88c0-2397608f78ec"
      id="F_a8bd5b56-5449-45b7-bbf7-e1a4eebf92bd">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_5eb3aecb-b4c2-4f25-88c0-2397608f78ec"
      id="F_68d9e740-6228-4968-9f13-8495ce5e9375">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_5eb3aecb-b4c2-4f25-88c0-2397608f78ec"
      id="F_0d56254f-2164-4960-acb6-b4e470f6ff3d">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_5eb3aecb-b4c2-4f25-88c0-2397608f78ec"
      id="F_88938831-a512-4a28-b522-ef05ba1c5a47">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_5eb3aecb-b4c2-4f25-88c0-2397608f78ec"
      id="F_e497d388-007e-4c5c-bed8-348e5992fbdd">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5eb3aecb-b4c2-4f25-88c0-2397608f78ec"
      id="F_ef8118f9-1b35-4679-87df-5e2fe70dab03">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_5eb3aecb-b4c2-4f25-88c0-2397608f78ec"
      id="F_48895b1a-fec1-498c-9975-cc6b9b5da1bf">&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;41,616,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_5eb3aecb-b4c2-4f25-88c0-2397608f78ec"
      decimals="-3"
      id="F_b8f95312-1784-4d66-adb3-2cce6ad64dc1"
      unitRef="U_USD">41616000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
