<?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_d0b3557e-2902-4a56-8371-d68b859d98a6">
        <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_d0b3557e-2902-4a56-8371-d68b859d98a6"
      id="F_99171742-7505-402f-841a-d405843c2371">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_d0b3557e-2902-4a56-8371-d68b859d98a6"
      id="F_d2fd5a5e-5790-4cd6-88f2-54ade6c44f9b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d0b3557e-2902-4a56-8371-d68b859d98a6"
      id="F_74bf832f-c737-4925-9851-8c2485adc548">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d0b3557e-2902-4a56-8371-d68b859d98a6"
      id="F_756a075f-3df3-4d47-bd78-8b3324b85b71">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_d0b3557e-2902-4a56-8371-d68b859d98a6"
      id="F_fabefd61-d3bb-4f4b-9a7c-55e9a64127e5">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d0b3557e-2902-4a56-8371-d68b859d98a6"
      id="F_8e5b7785-38cb-4085-93d7-70a342e720d6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_d0b3557e-2902-4a56-8371-d68b859d98a6"
      id="F_1168451d-db56-4e44-af8c-2329121ffa46">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_d0b3557e-2902-4a56-8371-d68b859d98a6"
      id="F_4d1b2a20-14dc-4dba-9bb7-9f033042e1a3">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_d0b3557e-2902-4a56-8371-d68b859d98a6"
      id="F_826d046e-f48b-4ec9-b32f-6abd0cb68843">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_d0b3557e-2902-4a56-8371-d68b859d98a6"
      id="F_1a37b907-7f6f-4b3c-874e-aa706b8c67e0">&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;40,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_d0b3557e-2902-4a56-8371-d68b859d98a6"
      decimals="-3"
      id="F_32690902-d5b1-4b40-8001-200332c2c374"
      unitRef="U_USD">40000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
