<?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_02aa87c2-2ee5-4636-b00d-3b8f44cf981b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_02aa87c2-2ee5-4636-b00d-3b8f44cf981b"
      id="F_00a2a797-477c-4751-b535-fdf8b5d1aac3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_02aa87c2-2ee5-4636-b00d-3b8f44cf981b"
      id="F_3608c096-0940-4195-a0e4-a57b14f170b1">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_02aa87c2-2ee5-4636-b00d-3b8f44cf981b"
      id="F_5f2db437-662c-4d60-9ba6-d3affa3cb05b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_02aa87c2-2ee5-4636-b00d-3b8f44cf981b"
      id="F_10bfeca9-89f2-4f6c-83bc-201f6273e225">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_02aa87c2-2ee5-4636-b00d-3b8f44cf981b"
      id="F_3987a259-f061-41c5-aafe-ae742326cefd">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_02aa87c2-2ee5-4636-b00d-3b8f44cf981b"
      id="F_b6dc0e97-9154-42d1-94a8-8be95c08334a">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_02aa87c2-2ee5-4636-b00d-3b8f44cf981b"
      id="F_e5e70765-7469-4b82-964c-2f4189e66d88">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_02aa87c2-2ee5-4636-b00d-3b8f44cf981b"
      id="F_3933a429-5c5a-4423-ab6d-d4ce1b9af6d5">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_02aa87c2-2ee5-4636-b00d-3b8f44cf981b"
      id="F_69ed3f3e-84cd-4be3-b9d7-dbed99b38036">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_02aa87c2-2ee5-4636-b00d-3b8f44cf981b"
      id="F_6cf57e48-b845-4a4b-b5da-73453f1ad358">&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;892,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_02aa87c2-2ee5-4636-b00d-3b8f44cf981b"
      decimals="-3"
      id="F_c10a0d0a-7155-4210-9922-879da041f5ae"
      unitRef="U_USD">892000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
