<?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_9b785bc8-a34a-46b4-a3be-6198c2751552">
        <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:FeeExhibitTp
      contextRef="C_9b785bc8-a34a-46b4-a3be-6198c2751552"
      id="F_d4d0cd7a-64d8-4152-9d2e-5c51ef631af0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_9b785bc8-a34a-46b4-a3be-6198c2751552"
      id="F_22ef4cea-3687-468d-9e00-73ae4c147bc5">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9b785bc8-a34a-46b4-a3be-6198c2751552"
      id="F_8f8456c8-3727-45bb-88fe-fff454b62b43">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_9b785bc8-a34a-46b4-a3be-6198c2751552"
      id="F_5057d3a9-5e02-4885-b6dd-6ab2f1d8d4ad">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_9b785bc8-a34a-46b4-a3be-6198c2751552"
      id="F_918327ad-b211-4ae5-8f0e-3b8da0d97667">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9b785bc8-a34a-46b4-a3be-6198c2751552"
      id="F_03d95314-fb24-4f0f-8cac-68f39df0a3cd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_9b785bc8-a34a-46b4-a3be-6198c2751552"
      id="F_0787d10f-972e-4ed3-b3be-de9a2da7399b">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_9b785bc8-a34a-46b4-a3be-6198c2751552"
      id="F_ead43657-a37b-4006-aba7-f1fd503f80cf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_9b785bc8-a34a-46b4-a3be-6198c2751552"
      id="F_e417eeeb-93f6-4e65-97b8-541c89f6ba75">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9b785bc8-a34a-46b4-a3be-6198c2751552"
      id="F_b174dc09-c25c-4499-8de5-4c3a5e0be657">&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;697,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_9b785bc8-a34a-46b4-a3be-6198c2751552"
      decimals="-3"
      id="F_cb840690-4838-40db-8ade-acdef077f657"
      unitRef="U_USD">697000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
