<?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_1d8b4bae-9762-45e4-b88a-494fc78e1820">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-17</startDate>
            <endDate>2026-06-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_1d8b4bae-9762-45e4-b88a-494fc78e1820"
      id="F_052de363-cc29-4464-b09a-5702db5b892f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1d8b4bae-9762-45e4-b88a-494fc78e1820"
      id="F_d7653409-d150-4db0-b388-fd9c5d859819">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1d8b4bae-9762-45e4-b88a-494fc78e1820"
      id="F_91d28610-e583-425a-b41d-7c1a0b65c655">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_1d8b4bae-9762-45e4-b88a-494fc78e1820"
      id="F_12c91983-5edb-4597-b51f-9f50de48c751">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_1d8b4bae-9762-45e4-b88a-494fc78e1820"
      id="F_e28cc971-05c7-4cc7-b41c-dc5d460e99fd">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_1d8b4bae-9762-45e4-b88a-494fc78e1820"
      id="F_537ce872-bef9-4090-b707-8b20704bb503">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_1d8b4bae-9762-45e4-b88a-494fc78e1820"
      id="F_421c94e8-0f08-48f8-8c65-849a4d6c899c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_1d8b4bae-9762-45e4-b88a-494fc78e1820"
      id="F_edd4c738-f7ce-402b-b4f7-ef6b4f7de65b">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_1d8b4bae-9762-45e4-b88a-494fc78e1820"
      id="F_60b72a58-8e9d-4c40-b799-b1165c09df2e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1d8b4bae-9762-45e4-b88a-494fc78e1820"
      id="F_79a00f22-acce-4ac7-aab9-44e85ef0da22">&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;525,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_1d8b4bae-9762-45e4-b88a-494fc78e1820"
      decimals="-3"
      id="F_811d4c7c-8280-42a2-9631-c1312b33e460"
      unitRef="U_USD">525000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
