<?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_18230122-1145-4a34-a815-cf0e12e8acd3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-05</startDate>
            <endDate>2026-06-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_18230122-1145-4a34-a815-cf0e12e8acd3"
      id="F_fe09508c-1df6-4c92-86bb-71737d46f838">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_18230122-1145-4a34-a815-cf0e12e8acd3"
      id="F_36528012-c0b5-46fd-9d26-81dfe2233006">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_18230122-1145-4a34-a815-cf0e12e8acd3"
      id="F_b908ef75-220d-49dd-8a46-dcfd8c7d419d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_18230122-1145-4a34-a815-cf0e12e8acd3"
      id="F_cb333e9d-d4dd-4e03-acdc-ff70f98bddd8">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_18230122-1145-4a34-a815-cf0e12e8acd3"
      id="F_7906e595-af1f-4e13-9475-1f00fe079b15">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_18230122-1145-4a34-a815-cf0e12e8acd3"
      id="F_1d7053c8-b733-47d2-a55e-2fb7093e6300">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_18230122-1145-4a34-a815-cf0e12e8acd3"
      id="F_de63969d-742f-4071-9e5d-9532cd7f206e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_18230122-1145-4a34-a815-cf0e12e8acd3"
      id="F_7266f5c3-b2e6-4c26-9918-d8b51be0490d">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_18230122-1145-4a34-a815-cf0e12e8acd3"
      id="F_c009c8ef-57b2-49f5-b0fe-7d197e706f95">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_18230122-1145-4a34-a815-cf0e12e8acd3"
      id="F_48182a26-00b4-463f-a724-ff827f7d81e0">&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;329,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_18230122-1145-4a34-a815-cf0e12e8acd3"
      decimals="-3"
      id="F_b348b168-5f3c-4466-a48a-1a30f3d8d69f"
      unitRef="U_USD">329000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
