<?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_0e55fce9-eacf-48f0-99c0-570578072188">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0e55fce9-eacf-48f0-99c0-570578072188"
      id="F_b21ac2dc-47bf-45c4-9457-f82011b50308">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_0e55fce9-eacf-48f0-99c0-570578072188"
      id="F_dbcc6eb4-03e3-4a82-84ca-0debee369027">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_0e55fce9-eacf-48f0-99c0-570578072188"
      id="F_3cabe500-d848-4ef9-974a-1c82968eb441">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_0e55fce9-eacf-48f0-99c0-570578072188"
      id="F_957ed795-e05c-44fe-8e75-f4b5afa09e00">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_0e55fce9-eacf-48f0-99c0-570578072188"
      id="F_c3e6e408-dfce-4d8d-9603-c9670050ea0e">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0e55fce9-eacf-48f0-99c0-570578072188"
      id="F_a97bdb0e-1e5d-456c-a070-85d08b0cbbe2">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_0e55fce9-eacf-48f0-99c0-570578072188"
      id="F_dfeccaf2-73d4-4c6f-8ae5-386f00a0bef2">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0e55fce9-eacf-48f0-99c0-570578072188"
      id="F_fc229b72-0fa6-46c8-bfcc-70c9186cb2cd">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_0e55fce9-eacf-48f0-99c0-570578072188"
      id="F_c8ce38a0-78c4-4651-9564-085efa905b94">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_0e55fce9-eacf-48f0-99c0-570578072188"
      id="F_d57920c2-c6dc-4a18-abe1-3ef04d7c3155">&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;2,036,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_0e55fce9-eacf-48f0-99c0-570578072188"
      decimals="-3"
      id="F_d565c450-0711-412d-a974-7313bd5aee4d"
      unitRef="U_USD">2036000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
