<?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_b7041a91-f7bd-4a56-9dbb-c36d0d5f1d58">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-10</startDate>
            <endDate>2026-06-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_b7041a91-f7bd-4a56-9dbb-c36d0d5f1d58"
      id="F_6f59f830-9550-45c7-8e04-ceda14769648">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b7041a91-f7bd-4a56-9dbb-c36d0d5f1d58"
      id="F_4874f0c6-88dd-4e27-933f-91958d0c3262">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_b7041a91-f7bd-4a56-9dbb-c36d0d5f1d58"
      id="F_45e5ba10-e449-4f05-880d-0ac52324438f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b7041a91-f7bd-4a56-9dbb-c36d0d5f1d58"
      id="F_6f8e06d8-87e1-49f6-8a3a-f6dbb7addbdb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_b7041a91-f7bd-4a56-9dbb-c36d0d5f1d58"
      id="F_eed56c79-748c-40ea-b6fe-8830afaa9ac7">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_b7041a91-f7bd-4a56-9dbb-c36d0d5f1d58"
      id="F_972eb01c-f62c-4c80-a5c3-09de86c6fb65">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_b7041a91-f7bd-4a56-9dbb-c36d0d5f1d58"
      id="F_f914236f-18da-40b3-b009-82b559aa1114">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b7041a91-f7bd-4a56-9dbb-c36d0d5f1d58"
      id="F_1eab64bf-a7a9-4837-bd2d-30207acd9e7e">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b7041a91-f7bd-4a56-9dbb-c36d0d5f1d58"
      id="F_fe3092d6-2786-4985-a575-664b7fd4fa2d">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_b7041a91-f7bd-4a56-9dbb-c36d0d5f1d58"
      id="F_d58bed72-56a6-4fcb-a63b-8819c2117267">&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;5,665,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_b7041a91-f7bd-4a56-9dbb-c36d0d5f1d58"
      decimals="-3"
      id="F_2d7c053e-85e2-4f46-b10d-ade0ae340548"
      unitRef="U_USD">5665000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
