<?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_9126a9fd-a7a1-4229-be73-e02c5df0bff4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_9126a9fd-a7a1-4229-be73-e02c5df0bff4"
      id="F_9ac5c281-06be-4fae-b2ee-3005f2af8277">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9126a9fd-a7a1-4229-be73-e02c5df0bff4"
      id="F_0c376f6f-40e6-4fa8-930b-14ea1032adf7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9126a9fd-a7a1-4229-be73-e02c5df0bff4"
      id="F_38115521-236b-4182-90db-f4d04ca4de4b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_9126a9fd-a7a1-4229-be73-e02c5df0bff4"
      id="F_378dd99e-2c3d-4eb0-ad34-9d37dd96660d">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9126a9fd-a7a1-4229-be73-e02c5df0bff4"
      id="F_003948a8-cdf6-4c7e-89b0-3f984574e9d2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_9126a9fd-a7a1-4229-be73-e02c5df0bff4"
      id="F_8c9a615b-7f41-4545-8987-95540d1a6c8d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9126a9fd-a7a1-4229-be73-e02c5df0bff4"
      id="F_8bd61e04-67ac-42be-bcf6-68ddfb1cd83c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_9126a9fd-a7a1-4229-be73-e02c5df0bff4"
      id="F_e29ce408-639a-4896-8403-2e58bca8d002">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_9126a9fd-a7a1-4229-be73-e02c5df0bff4"
      id="F_f9aed3aa-995c-4703-84ca-aacc95d9efbb">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_9126a9fd-a7a1-4229-be73-e02c5df0bff4"
      id="F_914f2c83-16b2-4548-8843-aee2c2eecace">&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;6,000,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_9126a9fd-a7a1-4229-be73-e02c5df0bff4"
      decimals="-6"
      id="F_56b6e295-b30a-4efb-a93a-ee4df474445a"
      unitRef="U_USD">6000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
