<?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_c9dd1a91-edc3-49ad-9154-41c9f5b2394b">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_c9dd1a91-edc3-49ad-9154-41c9f5b2394b"
      id="F_bee49cd7-53c2-4262-8696-28fded693246">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_c9dd1a91-edc3-49ad-9154-41c9f5b2394b"
      id="F_a6448ac4-5c8e-4765-816d-34eed4a37458">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_c9dd1a91-edc3-49ad-9154-41c9f5b2394b"
      id="F_02ddab4c-6752-47a0-a63a-618d8dda0485">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_c9dd1a91-edc3-49ad-9154-41c9f5b2394b"
      id="F_8d0e3b1c-019f-4980-8182-46fe12e9c34c">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c9dd1a91-edc3-49ad-9154-41c9f5b2394b"
      id="F_3ae43cb7-5056-4f61-844e-cef8ad2ab916">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c9dd1a91-edc3-49ad-9154-41c9f5b2394b"
      id="F_92c6a139-609e-4efa-ab73-d05b920298aa">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_c9dd1a91-edc3-49ad-9154-41c9f5b2394b"
      id="F_ae7ad145-5198-4f3e-8b53-dde3b66cb8ee">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_c9dd1a91-edc3-49ad-9154-41c9f5b2394b"
      id="F_949908cf-e8d8-4c48-9ad5-da4580c750ab">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c9dd1a91-edc3-49ad-9154-41c9f5b2394b"
      id="F_462db077-7e41-4e30-b8ad-1bce840c418c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c9dd1a91-edc3-49ad-9154-41c9f5b2394b"
      id="F_13435948-acb1-48a6-bc36-dec859fd0f4f">&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;9,691,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_c9dd1a91-edc3-49ad-9154-41c9f5b2394b"
      decimals="-3"
      id="F_7acc64a9-ecc7-41f3-a400-4ec12ff9eb3f"
      unitRef="U_USD">9691000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
