<?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_1c789e55-bfae-499e-a596-5dfc11bd3a5d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-18</startDate>
            <endDate>2026-06-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_1c789e55-bfae-499e-a596-5dfc11bd3a5d"
      id="F_f26102d9-1a4e-4e15-a614-67e4b1243165">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_1c789e55-bfae-499e-a596-5dfc11bd3a5d"
      id="F_7166bf7f-d8d0-48a9-9451-5af595388cd0">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_1c789e55-bfae-499e-a596-5dfc11bd3a5d"
      id="F_774fc0b3-8d5b-458f-913b-6798817a7325">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_1c789e55-bfae-499e-a596-5dfc11bd3a5d"
      id="F_f94e8269-e795-430e-bed6-decfa5a9c7e6">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1c789e55-bfae-499e-a596-5dfc11bd3a5d"
      id="F_d5dbdbd0-98b5-45ab-a1d9-9c335d44a482">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_1c789e55-bfae-499e-a596-5dfc11bd3a5d"
      id="F_465c4857-1e0e-4df0-9176-404dfd5fec92">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1c789e55-bfae-499e-a596-5dfc11bd3a5d"
      id="F_4a02da2f-b915-49b9-87c0-8e91b347fe79">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_1c789e55-bfae-499e-a596-5dfc11bd3a5d"
      id="F_3271fffa-6ee9-4645-86fc-8fec6208e2fd">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_1c789e55-bfae-499e-a596-5dfc11bd3a5d"
      id="F_890af652-7f1f-4ee8-ae26-0bd6ac3e4d24">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1c789e55-bfae-499e-a596-5dfc11bd3a5d"
      id="F_b0975d1d-a0c2-4765-8331-5bce4db7e979">&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;1,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_1c789e55-bfae-499e-a596-5dfc11bd3a5d"
      decimals="-6"
      id="F_47387c23-75a6-46ac-8fdb-4cae8d970da1"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
